From 0a14fe5424728a60dc7ffc1e2ffbc1377ec1d298 Mon Sep 17 00:00:00 2001 From: prial Date: Tue, 31 Aug 2021 15:10:54 +0700 Subject: [PATCH 1/9] Add new generated proto from chain2.2.0, cosmos0.43.0, ibc-go 1.0.1 --- pyband/proto/.DS_Store | Bin 8196 -> 10244 bytes pyband/proto/confio/proofs_pb2.pyi | 362 ----- pyband/proto/confio/proofs_pb2_grpc.pyi | 6 - pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi | 84 -- .../cosmos/auth/v1beta1/auth_pb2_grpc.pyi | 6 - .../proto/cosmos/auth/v1beta1/genesis_pb2.pyi | 34 - .../cosmos/auth/v1beta1/genesis_pb2_grpc.pyi | 6 - pyband/proto/cosmos/auth/v1beta1/query_pb2.py | 130 +- .../proto/cosmos/auth/v1beta1/query_pb2.pyi | 62 - .../cosmos/auth/v1beta1/query_pb2_grpc.py | 34 + .../cosmos/auth/v1beta1/query_pb2_grpc.pyi | 34 - .../proto/cosmos/authz/v1beta1/authz_pb2.py | 128 ++ .../cosmos/authz/v1beta1/authz_pb2_grpc.py | 4 + .../proto/cosmos/authz/v1beta1/event_pb2.py | 139 ++ .../cosmos/authz/v1beta1/event_pb2_grpc.py | 4 + .../proto/cosmos/authz/v1beta1/genesis_pb2.py | 143 ++ .../cosmos/authz/v1beta1/genesis_pb2_grpc.py | 4 + .../proto/cosmos/authz/v1beta1/query_pb2.py | 172 +++ .../cosmos/authz/v1beta1/query_pb2_grpc.py | 70 + pyband/proto/cosmos/authz/v1beta1/tx_pb2.py | 349 +++++ .../proto/cosmos/authz/v1beta1/tx_pb2_grpc.py | 144 ++ pyband/proto/cosmos/bank/v1beta1/authz_pb2.py | 78 ++ .../cosmos/bank/v1beta1/authz_pb2_grpc.py | 4 + pyband/proto/cosmos/bank/v1beta1/bank_pb2.py | 28 +- pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi | 136 -- .../cosmos/bank/v1beta1/bank_pb2_grpc.pyi | 6 - .../proto/cosmos/bank/v1beta1/genesis_pb2.pyi | 61 - .../cosmos/bank/v1beta1/genesis_pb2_grpc.pyi | 6 - pyband/proto/cosmos/bank/v1beta1/query_pb2.py | 63 +- .../proto/cosmos/bank/v1beta1/query_pb2.pyi | 215 --- .../cosmos/bank/v1beta1/query_pb2_grpc.pyi | 84 -- pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi | 67 - .../proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi | 34 - .../cosmos/base/abci/v1beta1/abci_pb2.pyi | 229 --- .../base/abci/v1beta1/abci_pb2_grpc.pyi | 6 - .../proto/cosmos/base/kv/v1beta1/kv_pb2.pyi | 41 - .../cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi | 6 - .../base/query/v1beta1/pagination_pb2.py | 15 +- .../base/query/v1beta1/pagination_pb2.pyi | 46 - .../query/v1beta1/pagination_pb2_grpc.pyi | 6 - .../reflection/v1beta1/reflection_pb2.pyi | 59 - .../v1beta1/reflection_pb2_grpc.pyi | 34 - .../reflection/v2alpha1/reflection_pb2.py | 1231 +++++++++++++++++ .../v2alpha1/reflection_pb2_grpc.py | 242 ++++ .../base/snapshots/v1beta1/snapshot_pb2.pyi | 53 - .../snapshots/v1beta1/snapshot_pb2_grpc.pyi | 6 - .../base/store/v1beta1/commit_info_pb2.pyi | 62 - .../store/v1beta1/commit_info_pb2_grpc.pyi | 6 - .../base/store/v1beta1/listening_pb2.py | 92 ++ .../base/store/v1beta1/listening_pb2_grpc.py | 4 + .../base/store/v1beta1/snapshot_pb2.pyi | 65 - .../base/store/v1beta1/snapshot_pb2_grpc.pyi | 6 - .../base/tendermint/v1beta1/query_pb2.pyi | 278 ---- .../tendermint/v1beta1/query_pb2_grpc.pyi | 74 - pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi | 65 - .../cosmos/base/v1beta1/coin_pb2_grpc.pyi | 6 - .../capability/v1beta1/capability_pb2.pyi | 53 - .../v1beta1/capability_pb2_grpc.pyi | 6 - .../cosmos/capability/v1beta1/genesis_pb2.pyi | 48 - .../capability/v1beta1/genesis_pb2_grpc.pyi | 6 - .../cosmos/crisis/v1beta1/genesis_pb2.pyi | 27 - .../crisis/v1beta1/genesis_pb2_grpc.pyi | 6 - pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi | 36 - .../cosmos/crisis/v1beta1/tx_pb2_grpc.pyi | 24 - .../proto/cosmos/crypto/ed25519/keys_pb2.pyi | 34 - .../cosmos/crypto/ed25519/keys_pb2_grpc.pyi | 6 - .../proto/cosmos/crypto/multisig/keys_pb2.pyi | 30 - .../cosmos/crypto/multisig/keys_pb2_grpc.pyi | 6 - .../crypto/multisig/v1beta1/multisig_pb2.pyi | 41 - .../multisig/v1beta1/multisig_pb2_grpc.pyi | 6 - .../cosmos/crypto/secp256k1/keys_pb2.pyi | 34 - .../cosmos/crypto/secp256k1/keys_pb2_grpc.pyi | 6 - .../proto/cosmos/crypto/secp256r1/keys_pb2.py | 115 ++ .../cosmos/crypto/secp256r1/keys_pb2_grpc.py | 4 + .../distribution/v1beta1/distribution_pb2.pyi | 221 --- .../v1beta1/distribution_pb2_grpc.pyi | 6 - .../distribution/v1beta1/genesis_pb2.pyi | 206 --- .../distribution/v1beta1/genesis_pb2_grpc.pyi | 6 - .../cosmos/distribution/v1beta1/query_pb2.pyi | 266 ---- .../distribution/v1beta1/query_pb2_grpc.pyi | 104 -- .../cosmos/distribution/v1beta1/tx_pb2.pyi | 100 -- .../distribution/v1beta1/tx_pb2_grpc.pyi | 54 - .../cosmos/evidence/v1beta1/evidence_pb2.pyi | 36 - .../evidence/v1beta1/evidence_pb2_grpc.pyi | 6 - .../cosmos/evidence/v1beta1/genesis_pb2.pyi | 27 - .../evidence/v1beta1/genesis_pb2_grpc.pyi | 6 - .../cosmos/evidence/v1beta1/query_pb2.pyi | 76 - .../evidence/v1beta1/query_pb2_grpc.pyi | 34 - .../proto/cosmos/evidence/v1beta1/tx_pb2.pyi | 42 - .../cosmos/evidence/v1beta1/tx_pb2_grpc.pyi | 24 - .../cosmos/feegrant/v1beta1/feegrant_pb2.py | 275 ++++ .../feegrant/v1beta1/feegrant_pb2_grpc.py | 4 + .../cosmos/feegrant/v1beta1/genesis_pb2.py | 76 + .../feegrant/v1beta1/genesis_pb2_grpc.py | 4 + .../cosmos/feegrant/v1beta1/query_pb2.py | 256 ++++ .../cosmos/feegrant/v1beta1/query_pb2_grpc.py | 104 ++ .../proto/cosmos/feegrant/v1beta1/tx_pb2.py | 240 ++++ .../cosmos/feegrant/v1beta1/tx_pb2_grpc.py | 106 ++ .../cosmos/genutil/v1beta1/genesis_pb2.pyi | 26 - .../genutil/v1beta1/genesis_pb2_grpc.pyi | 6 - .../proto/cosmos/gov/v1beta1/genesis_pb2.pyi | 56 - .../cosmos/gov/v1beta1/genesis_pb2_grpc.pyi | 6 - pyband/proto/cosmos/gov/v1beta1/gov_pb2.py | 103 +- pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi | 235 ---- .../proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi | 6 - pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi | 285 ---- .../cosmos/gov/v1beta1/query_pb2_grpc.pyi | 94 -- pyband/proto/cosmos/gov/v1beta1/tx_pb2.py | 117 +- pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi | 102 -- .../proto/cosmos/gov/v1beta1/tx_pb2_grpc.py | 34 + .../proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi | 44 - .../proto/cosmos/mint/v1beta1/genesis_pb2.pyi | 32 - .../cosmos/mint/v1beta1/genesis_pb2_grpc.pyi | 6 - pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi | 53 - .../cosmos/mint/v1beta1/mint_pb2_grpc.pyi | 6 - .../proto/cosmos/mint/v1beta1/query_pb2.pyi | 72 - .../cosmos/mint/v1beta1/query_pb2_grpc.pyi | 44 - .../cosmos/params/v1beta1/params_pb2.pyi | 50 - .../cosmos/params/v1beta1/params_pb2_grpc.pyi | 6 - .../proto/cosmos/params/v1beta1/query_pb2.pyi | 42 - .../cosmos/params/v1beta1/query_pb2_grpc.pyi | 24 - .../cosmos/slashing/v1beta1/genesis_pb2.pyi | 88 -- .../slashing/v1beta1/genesis_pb2_grpc.pyi | 6 - .../cosmos/slashing/v1beta1/query_pb2.pyi | 98 -- .../slashing/v1beta1/query_pb2_grpc.pyi | 44 - .../cosmos/slashing/v1beta1/slashing_pb2.pyi | 70 - .../slashing/v1beta1/slashing_pb2_grpc.pyi | 6 - .../proto/cosmos/slashing/v1beta1/tx_pb2.pyi | 30 - .../cosmos/slashing/v1beta1/tx_pb2_grpc.pyi | 24 - .../proto/cosmos/staking/v1beta1/authz_pb2.py | 195 +++ .../cosmos/staking/v1beta1/authz_pb2_grpc.py | 4 + .../cosmos/staking/v1beta1/genesis_pb2.pyi | 74 - .../staking/v1beta1/genesis_pb2_grpc.pyi | 6 - .../cosmos/staking/v1beta1/query_pb2.pyi | 474 ------- .../cosmos/staking/v1beta1/query_pb2_grpc.pyi | 154 --- .../cosmos/staking/v1beta1/staking_pb2.pyi | 452 ------ .../staking/v1beta1/staking_pb2_grpc.pyi | 6 - .../proto/cosmos/staking/v1beta1/tx_pb2.pyi | 195 --- .../cosmos/staking/v1beta1/tx_pb2_grpc.pyi | 64 - .../cosmos/tx/signing/v1beta1/signing_pb2.pyi | 122 -- .../tx/signing/v1beta1/signing_pb2_grpc.pyi | 6 - pyband/proto/cosmos/tx/v1beta1/service_pb2.py | 36 +- .../proto/cosmos/tx/v1beta1/service_pb2.pyi | 193 --- .../cosmos/tx/v1beta1/service_pb2_grpc.pyi | 54 - pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi | 229 --- .../proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi | 6 - .../proto/cosmos/upgrade/v1beta1/query_pb2.py | 104 +- .../cosmos/upgrade/v1beta1/query_pb2.pyi | 86 -- .../cosmos/upgrade/v1beta1/query_pb2_grpc.py | 34 + .../cosmos/upgrade/v1beta1/query_pb2_grpc.pyi | 44 - .../cosmos/upgrade/v1beta1/upgrade_pb2.py | 72 +- .../cosmos/upgrade/v1beta1/upgrade_pb2.pyi | 78 -- .../upgrade/v1beta1/upgrade_pb2_grpc.pyi | 6 - .../proto/cosmos/vesting/v1beta1/tx_pb2.pyi | 46 - .../cosmos/vesting/v1beta1/tx_pb2_grpc.pyi | 24 - .../cosmos/vesting/v1beta1/vesting_pb2.py | 45 +- .../cosmos/vesting/v1beta1/vesting_pb2.pyi | 120 -- .../vesting/v1beta1/vesting_pb2_grpc.pyi | 6 - pyband/proto/cosmos_proto/cosmos_pb2.pyi | 13 - pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi | 6 - pyband/proto/gogoproto/gogo_pb2.pyi | 161 --- pyband/proto/gogoproto/gogo_pb2_grpc.pyi | 6 - pyband/proto/google/api/annotations_pb2.pyi | 9 - .../proto/google/api/annotations_pb2_grpc.pyi | 6 - pyband/proto/google/api/http_pb2.pyi | 89 -- pyband/proto/google/api/http_pb2_grpc.pyi | 6 - pyband/proto/google/api/httpbody_pb2.pyi | 33 - pyband/proto/google/api/httpbody_pb2_grpc.pyi | 6 - pyband/proto/google/protobuf/any_pb2.pyi | 27 - pyband/proto/google/protobuf/any_pb2_grpc.pyi | 6 - .../applications/transfer/v1/genesis_pb2.py | 8 +- .../applications/transfer/v1/genesis_pb2.pyi | 36 - .../transfer/v1/genesis_pb2_grpc.pyi | 6 - .../ibc/applications/transfer/v1/query_pb2.py | 12 +- .../applications/transfer/v1/query_pb2.pyi | 98 -- .../transfer/v1/query_pb2_grpc.pyi | 44 - .../applications/transfer/v1/transfer_pb2.py | 4 +- .../applications/transfer/v1/transfer_pb2.pyi | 62 - .../transfer/v1/transfer_pb2_grpc.pyi | 6 - .../ibc/applications/transfer/v1/tx_pb2.py | 4 +- .../ibc/applications/transfer/v1/tx_pb2.pyi | 55 - .../applications/transfer/v1/tx_pb2_grpc.pyi | 24 - .../proto/ibc/core/channel/v1/channel_pb2.py | 4 +- .../proto/ibc/core/channel/v1/channel_pb2.pyi | 201 --- .../ibc/core/channel/v1/channel_pb2_grpc.pyi | 6 - .../proto/ibc/core/channel/v1/genesis_pb2.py | 4 +- .../proto/ibc/core/channel/v1/genesis_pb2.pyi | 78 -- .../ibc/core/channel/v1/genesis_pb2_grpc.pyi | 6 - pyband/proto/ibc/core/channel/v1/query_pb2.py | 32 +- .../proto/ibc/core/channel/v1/query_pb2.pyi | 547 -------- .../ibc/core/channel/v1/query_pb2_grpc.py | 7 +- .../ibc/core/channel/v1/query_pb2_grpc.pyi | 144 -- pyband/proto/ibc/core/channel/v1/tx_pb2.py | 4 +- pyband/proto/ibc/core/channel/v1/tx_pb2.pyi | 360 ----- .../proto/ibc/core/channel/v1/tx_pb2_grpc.py | 3 +- .../proto/ibc/core/channel/v1/tx_pb2_grpc.pyi | 114 -- pyband/proto/ibc/core/client/v1/client_pb2.py | 111 +- .../proto/ibc/core/client/v1/client_pb2.pyi | 121 -- .../ibc/core/client/v1/client_pb2_grpc.pyi | 6 - .../proto/ibc/core/client/v1/genesis_pb2.py | 4 +- .../proto/ibc/core/client/v1/genesis_pb2.pyi | 81 -- .../ibc/core/client/v1/genesis_pb2_grpc.pyi | 6 - pyband/proto/ibc/core/client/v1/query_pb2.py | 286 +++- pyband/proto/ibc/core/client/v1/query_pb2.pyi | 189 --- .../ibc/core/client/v1/query_pb2_grpc.py | 102 ++ .../ibc/core/client/v1/query_pb2_grpc.pyi | 64 - pyband/proto/ibc/core/client/v1/tx_pb2.py | 4 +- pyband/proto/ibc/core/client/v1/tx_pb2.pyi | 137 -- .../proto/ibc/core/client/v1/tx_pb2_grpc.pyi | 54 - .../ibc/core/commitment/v1/commitment_pb2.py | 4 +- .../ibc/core/commitment/v1/commitment_pb2.pyi | 65 - .../commitment/v1/commitment_pb2_grpc.pyi | 6 - .../ibc/core/connection/v1/connection_pb2.py | 49 +- .../ibc/core/connection/v1/connection_pb2.pyi | 161 --- .../connection/v1/connection_pb2_grpc.pyi | 6 - .../ibc/core/connection/v1/genesis_pb2.py | 15 +- .../ibc/core/connection/v1/genesis_pb2.pyi | 35 - .../core/connection/v1/genesis_pb2_grpc.pyi | 6 - .../proto/ibc/core/connection/v1/query_pb2.py | 16 +- .../ibc/core/connection/v1/query_pb2.pyi | 205 --- .../ibc/core/connection/v1/query_pb2_grpc.pyi | 64 - pyband/proto/ibc/core/connection/v1/tx_pb2.py | 4 +- .../proto/ibc/core/connection/v1/tx_pb2.pyi | 200 --- .../ibc/core/connection/v1/tx_pb2_grpc.py | 3 +- .../ibc/core/connection/v1/tx_pb2_grpc.pyi | 54 - pyband/proto/ibc/core/types/v1/genesis_pb2.py | 4 +- .../proto/ibc/core/types/v1/genesis_pb2.pyi | 39 - .../ibc/core/types/v1/genesis_pb2_grpc.pyi | 6 - .../localhost/v1/localhost_pb2.py | 4 +- .../localhost/v1/localhost_pb2.pyi | 30 - .../localhost/v1/localhost_pb2_grpc.pyi | 6 - .../solomachine/v1/solomachine_pb2.py | 4 +- .../solomachine/v1/solomachine_pb2.pyi | 349 ----- .../solomachine/v1/solomachine_pb2_grpc.pyi | 6 - .../solomachine/v2/solomachine_pb2.py | 1002 ++++++++++++++ .../solomachine/v2/solomachine_pb2_grpc.py | 4 + .../tendermint/v1/tendermint_pb2.py | 4 +- .../tendermint/v1/tendermint_pb2.pyi | 169 --- .../tendermint/v1/tendermint_pb2_grpc.pyi | 6 - pyband/proto/oracle/v1/genesis_pb2.py | 13 +- pyband/proto/oracle/v1/genesis_pb2.pyi | 43 - pyband/proto/oracle/v1/genesis_pb2_grpc.pyi | 6 - pyband/proto/oracle/v1/oracle_pb2.py | 169 +-- pyband/proto/oracle/v1/oracle_pb2.pyi | 472 ------- pyband/proto/oracle/v1/oracle_pb2_grpc.pyi | 6 - pyband/proto/oracle/v1/query_pb2.py | 366 +++-- pyband/proto/oracle/v1/query_pb2.pyi | 432 ------ pyband/proto/oracle/v1/query_pb2_grpc.py | 69 +- pyband/proto/oracle/v1/query_pb2_grpc.pyi | 154 --- pyband/proto/oracle/v1/tx_pb2.py | 249 +--- pyband/proto/oracle/v1/tx_pb2.pyi | 310 ----- pyband/proto/oracle/v1/tx_pb2_grpc.py | 68 - pyband/proto/oracle/v1/tx_pb2_grpc.pyi | 104 -- pyband/proto/tendermint/abci/types_pb2.pyi | 1047 -------------- .../proto/tendermint/abci/types_pb2_grpc.pyi | 164 --- pyband/proto/tendermint/crypto/keys_pb2.pyi | 28 - .../proto/tendermint/crypto/keys_pb2_grpc.pyi | 6 - pyband/proto/tendermint/crypto/proof_pb2.pyi | 103 -- .../tendermint/crypto/proof_pb2_grpc.pyi | 6 - .../proto/tendermint/libs/bits/types_pb2.pyi | 29 - .../tendermint/libs/bits/types_pb2_grpc.pyi | 6 - pyband/proto/tendermint/p2p/types_pb2.pyi | 100 -- .../proto/tendermint/p2p/types_pb2_grpc.pyi | 6 - pyband/proto/tendermint/types/block_pb2.pyi | 43 - .../proto/tendermint/types/block_pb2_grpc.pyi | 6 - .../proto/tendermint/types/evidence_pb2.pyi | 112 -- .../tendermint/types/evidence_pb2_grpc.pyi | 6 - pyband/proto/tendermint/types/params_pb2.pyi | 123 -- .../tendermint/types/params_pb2_grpc.pyi | 6 - pyband/proto/tendermint/types/types_pb2.pyi | 387 ------ .../proto/tendermint/types/types_pb2_grpc.pyi | 6 - .../proto/tendermint/types/validator_pb2.pyi | 78 -- .../tendermint/types/validator_pb2_grpc.pyi | 6 - pyband/proto/tendermint/version/types_pb2.pyi | 41 - .../tendermint/version/types_pb2_grpc.pyi | 6 - 275 files changed, 6794 insertions(+), 16756 deletions(-) delete mode 100644 pyband/proto/confio/proofs_pb2.pyi delete mode 100644 pyband/proto/confio/proofs_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi delete mode 100644 pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/authz_pb2.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/event_pb2.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/genesis_pb2.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/query_pb2.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/tx_pb2.py create mode 100644 pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.py create mode 100644 pyband/proto/cosmos/bank/v1beta1/authz_pb2.py create mode 100644 pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.py delete mode 100644 pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi delete mode 100644 pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.py create mode 100644 pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.py delete mode 100644 pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/store/v1beta1/listening_pb2.py create mode 100644 pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.py delete mode 100644 pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi delete mode 100644 pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi delete mode 100644 pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi delete mode 100644 pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi delete mode 100644 pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi delete mode 100644 pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi delete mode 100644 pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/crypto/secp256r1/keys_pb2.py create mode 100644 pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.py delete mode 100644 pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi delete mode 100644 pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi delete mode 100644 pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.py create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.py create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.py create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.py create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/query_pb2.py create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.py create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.py create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.py delete mode 100644 pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi delete mode 100644 pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi delete mode 100644 pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/params/v1beta1/params_pb2.pyi delete mode 100644 pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/params/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi delete mode 100644 pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/authz_pb2.py create mode 100644 pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.py delete mode 100644 pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi delete mode 100644 pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi delete mode 100644 pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi delete mode 100644 pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi delete mode 100644 pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi delete mode 100644 pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi delete mode 100644 pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi delete mode 100644 pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi delete mode 100644 pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi delete mode 100644 pyband/proto/cosmos_proto/cosmos_pb2.pyi delete mode 100644 pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi delete mode 100644 pyband/proto/gogoproto/gogo_pb2.pyi delete mode 100644 pyband/proto/gogoproto/gogo_pb2_grpc.pyi delete mode 100644 pyband/proto/google/api/annotations_pb2.pyi delete mode 100644 pyband/proto/google/api/annotations_pb2_grpc.pyi delete mode 100644 pyband/proto/google/api/http_pb2.pyi delete mode 100644 pyband/proto/google/api/http_pb2_grpc.pyi delete mode 100644 pyband/proto/google/api/httpbody_pb2.pyi delete mode 100644 pyband/proto/google/api/httpbody_pb2_grpc.pyi delete mode 100644 pyband/proto/google/protobuf/any_pb2.pyi delete mode 100644 pyband/proto/google/protobuf/any_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi delete mode 100644 pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi delete mode 100644 pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi delete mode 100644 pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi delete mode 100644 pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/channel/v1/channel_pb2.pyi delete mode 100644 pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi delete mode 100644 pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/channel/v1/query_pb2.pyi delete mode 100644 pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/channel/v1/tx_pb2.pyi delete mode 100644 pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/client/v1/client_pb2.pyi delete mode 100644 pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/client/v1/genesis_pb2.pyi delete mode 100644 pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/client/v1/query_pb2.pyi delete mode 100644 pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/client/v1/tx_pb2.pyi delete mode 100644 pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi delete mode 100644 pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/connection/v1/connection_pb2.pyi delete mode 100644 pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi delete mode 100644 pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/connection/v1/query_pb2.pyi delete mode 100644 pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/connection/v1/tx_pb2.pyi delete mode 100644 pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/core/types/v1/genesis_pb2.pyi delete mode 100644 pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi delete mode 100644 pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi delete mode 100644 pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi delete mode 100644 pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.py create mode 100644 pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.py delete mode 100644 pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi delete mode 100644 pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi delete mode 100644 pyband/proto/oracle/v1/genesis_pb2.pyi delete mode 100644 pyband/proto/oracle/v1/genesis_pb2_grpc.pyi delete mode 100644 pyband/proto/oracle/v1/oracle_pb2.pyi delete mode 100644 pyband/proto/oracle/v1/oracle_pb2_grpc.pyi delete mode 100644 pyband/proto/oracle/v1/query_pb2.pyi delete mode 100644 pyband/proto/oracle/v1/query_pb2_grpc.pyi delete mode 100644 pyband/proto/oracle/v1/tx_pb2.pyi delete mode 100644 pyband/proto/oracle/v1/tx_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/abci/types_pb2.pyi delete mode 100644 pyband/proto/tendermint/abci/types_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/crypto/keys_pb2.pyi delete mode 100644 pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/crypto/proof_pb2.pyi delete mode 100644 pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/libs/bits/types_pb2.pyi delete mode 100644 pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/p2p/types_pb2.pyi delete mode 100644 pyband/proto/tendermint/p2p/types_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/types/block_pb2.pyi delete mode 100644 pyband/proto/tendermint/types/block_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/types/evidence_pb2.pyi delete mode 100644 pyband/proto/tendermint/types/evidence_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/types/params_pb2.pyi delete mode 100644 pyband/proto/tendermint/types/params_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/types/types_pb2.pyi delete mode 100644 pyband/proto/tendermint/types/types_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/types/validator_pb2.pyi delete mode 100644 pyband/proto/tendermint/types/validator_pb2_grpc.pyi delete mode 100644 pyband/proto/tendermint/version/types_pb2.pyi delete mode 100644 pyband/proto/tendermint/version/types_pb2_grpc.pyi diff --git a/pyband/proto/.DS_Store b/pyband/proto/.DS_Store index 2f823fc188106dc82f1225877eb21b27cc3b1054..903326a474b4aebb51120356e64fafad7f5277ed 100644 GIT binary patch literal 10244 zcmeHM%WD%s7@z5LlU9tNwV=XY#2!kUw5FPh5Nj2R2tq^;TH3s914%X{sipQoJP97W zh=LEKC>}g19=#}d5}{ZB0MDMRSL<&cNoF?LS}8&(GhybN-T8ep-}n1wXLlxq5IV7t z3K3!xLM&t^1HCAkB-YMyLu!+E#vm#53CWN$nZa*}6dKUxhGD=kU>GnA7zPXjt-t`@ z*(_N-LYmSrU>GnA)EHpvgN@8&RLY8weCa^Jw*ZhGxXlyl*avVOTgs@E6(PAQ`V_kd zDpjf6Vo;%ucALQ=qf%Cc6zYTubwcIHRPInHA02u&hZ7nV(v*e)!$2bgZ13K~_v{&x z*Y@vAQ&}gO$T|ri*h6&=d1#9#)T&wqvP6<3jyzA&tRI)w+ns4;=R&chldGN@{PylY z=S)sYtE}i~J(=i3ZE^S-zP-|MK!!WOUFDhfc2!+RKrV z;GlhSbZm9iXB|EsIy*I+Te`Envby$!d5ra5z8A=Taa}8)q9#a{PHKTU;JfT@R|E62 z=b;`L*@rr>m$OffNzGa>JzC1U9S$&{MC) zf*Cp$4kLn*T?f$|won zv-ABA5Y!Z>26bxlarFuFz}DA-zhSi?cLy+h^YLB5W;l}!1BL;^K&vy*E)2BU`9HqH zy#D`hbvKNCh5^ICE*PL4ld;JObWlA*arec}+HK@nWR@7NA|zKq!H?r1`Efih*m3*- zGQ;vOWLb|&SrL+}1H;uJ#cBS3|1-c*zZ!S4pI5g9JHcyTk7obRPBYB@zoqv7e*iZP BnsopG delta 174 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aKKssfS+@);PC84`gwgCUh6eq-S@ z_K6L=o7p*7I2ctXUl5R*JV{{LFPnT_ zqI&XUDbdMGq$Y1H-N7Wt3^W%AB)EZuE6Bc$h2NPc^Q#1M0Br-gf?;wz&(z5irGzK{ Lkh0%cx|In4@e3_# diff --git a/pyband/proto/confio/proofs_pb2.pyi b/pyband/proto/confio/proofs_pb2.pyi deleted file mode 100644 index e12b662..0000000 --- a/pyband/proto/confio/proofs_pb2.pyi +++ /dev/null @@ -1,362 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class HashOp(metaclass=_HashOp): - V = typing.NewType('V', builtins.int) - -global___HashOp = HashOp - -NO_HASH = HashOp.V(0) -SHA256 = HashOp.V(1) -SHA512 = HashOp.V(2) -KECCAK = HashOp.V(3) -RIPEMD160 = HashOp.V(4) -BITCOIN = HashOp.V(5) - -class _HashOp(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[HashOp.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - NO_HASH = HashOp.V(0) - SHA256 = HashOp.V(1) - SHA512 = HashOp.V(2) - KECCAK = HashOp.V(3) - RIPEMD160 = HashOp.V(4) - BITCOIN = HashOp.V(5) - -class LengthOp(metaclass=_LengthOp): - V = typing.NewType('V', builtins.int) - -global___LengthOp = LengthOp - -NO_PREFIX = LengthOp.V(0) -VAR_PROTO = LengthOp.V(1) -VAR_RLP = LengthOp.V(2) -FIXED32_BIG = LengthOp.V(3) -FIXED32_LITTLE = LengthOp.V(4) -FIXED64_BIG = LengthOp.V(5) -FIXED64_LITTLE = LengthOp.V(6) -REQUIRE_32_BYTES = LengthOp.V(7) -REQUIRE_64_BYTES = LengthOp.V(8) - -class _LengthOp(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[LengthOp.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - NO_PREFIX = LengthOp.V(0) - VAR_PROTO = LengthOp.V(1) - VAR_RLP = LengthOp.V(2) - FIXED32_BIG = LengthOp.V(3) - FIXED32_LITTLE = LengthOp.V(4) - FIXED64_BIG = LengthOp.V(5) - FIXED64_LITTLE = LengthOp.V(6) - REQUIRE_32_BYTES = LengthOp.V(7) - REQUIRE_64_BYTES = LengthOp.V(8) - -class ExistenceProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - LEAF_FIELD_NUMBER: builtins.int - PATH_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - value: builtins.bytes = ... - - @property - def leaf(self) -> global___LeafOp: ... - - @property - def path(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InnerOp]: ... - - def __init__(self, - *, - key : builtins.bytes = ..., - value : builtins.bytes = ..., - leaf : typing.Optional[global___LeafOp] = ..., - path : typing.Optional[typing.Iterable[global___InnerOp]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"leaf",b"leaf"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"leaf",b"leaf",u"path",b"path",u"value",b"value"]) -> None: ... -global___ExistenceProof = ExistenceProof - -class NonExistenceProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - LEFT_FIELD_NUMBER: builtins.int - RIGHT_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - - @property - def left(self) -> global___ExistenceProof: ... - - @property - def right(self) -> global___ExistenceProof: ... - - def __init__(self, - *, - key : builtins.bytes = ..., - left : typing.Optional[global___ExistenceProof] = ..., - right : typing.Optional[global___ExistenceProof] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"left",b"left",u"right",b"right"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"left",b"left",u"right",b"right"]) -> None: ... -global___NonExistenceProof = NonExistenceProof - -class CommitmentProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EXIST_FIELD_NUMBER: builtins.int - NONEXIST_FIELD_NUMBER: builtins.int - BATCH_FIELD_NUMBER: builtins.int - COMPRESSED_FIELD_NUMBER: builtins.int - - @property - def exist(self) -> global___ExistenceProof: ... - - @property - def nonexist(self) -> global___NonExistenceProof: ... - - @property - def batch(self) -> global___BatchProof: ... - - @property - def compressed(self) -> global___CompressedBatchProof: ... - - def __init__(self, - *, - exist : typing.Optional[global___ExistenceProof] = ..., - nonexist : typing.Optional[global___NonExistenceProof] = ..., - batch : typing.Optional[global___BatchProof] = ..., - compressed : typing.Optional[global___CompressedBatchProof] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"batch",b"batch",u"compressed",b"compressed",u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"batch",b"batch",u"compressed",b"compressed",u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist","batch","compressed"]]: ... -global___CommitmentProof = CommitmentProof - -class LeafOp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HASH_FIELD_NUMBER: builtins.int - PREHASH_KEY_FIELD_NUMBER: builtins.int - PREHASH_VALUE_FIELD_NUMBER: builtins.int - LENGTH_FIELD_NUMBER: builtins.int - PREFIX_FIELD_NUMBER: builtins.int - hash: global___HashOp.V = ... - prehash_key: global___HashOp.V = ... - prehash_value: global___HashOp.V = ... - length: global___LengthOp.V = ... - prefix: builtins.bytes = ... - - def __init__(self, - *, - hash : global___HashOp.V = ..., - prehash_key : global___HashOp.V = ..., - prehash_value : global___HashOp.V = ..., - length : global___LengthOp.V = ..., - prefix : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"length",b"length",u"prefix",b"prefix",u"prehash_key",b"prehash_key",u"prehash_value",b"prehash_value"]) -> None: ... -global___LeafOp = LeafOp - -class InnerOp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HASH_FIELD_NUMBER: builtins.int - PREFIX_FIELD_NUMBER: builtins.int - SUFFIX_FIELD_NUMBER: builtins.int - hash: global___HashOp.V = ... - prefix: builtins.bytes = ... - suffix: builtins.bytes = ... - - def __init__(self, - *, - hash : global___HashOp.V = ..., - prefix : builtins.bytes = ..., - suffix : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"prefix",b"prefix",u"suffix",b"suffix"]) -> None: ... -global___InnerOp = InnerOp - -class ProofSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - LEAF_SPEC_FIELD_NUMBER: builtins.int - INNER_SPEC_FIELD_NUMBER: builtins.int - MAX_DEPTH_FIELD_NUMBER: builtins.int - MIN_DEPTH_FIELD_NUMBER: builtins.int - max_depth: builtins.int = ... - min_depth: builtins.int = ... - - @property - def leaf_spec(self) -> global___LeafOp: ... - - @property - def inner_spec(self) -> global___InnerSpec: ... - - def __init__(self, - *, - leaf_spec : typing.Optional[global___LeafOp] = ..., - inner_spec : typing.Optional[global___InnerSpec] = ..., - max_depth : builtins.int = ..., - min_depth : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"inner_spec",b"inner_spec",u"leaf_spec",b"leaf_spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"inner_spec",b"inner_spec",u"leaf_spec",b"leaf_spec",u"max_depth",b"max_depth",u"min_depth",b"min_depth"]) -> None: ... -global___ProofSpec = ProofSpec - -class InnerSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHILD_ORDER_FIELD_NUMBER: builtins.int - CHILD_SIZE_FIELD_NUMBER: builtins.int - MIN_PREFIX_LENGTH_FIELD_NUMBER: builtins.int - MAX_PREFIX_LENGTH_FIELD_NUMBER: builtins.int - EMPTY_CHILD_FIELD_NUMBER: builtins.int - HASH_FIELD_NUMBER: builtins.int - - @property - def child_order(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - child_size: builtins.int = ... - min_prefix_length: builtins.int = ... - max_prefix_length: builtins.int = ... - empty_child: builtins.bytes = ... - hash: global___HashOp.V = ... - - def __init__(self, - *, - child_order : typing.Optional[typing.Iterable[builtins.int]] = ..., - child_size : builtins.int = ..., - min_prefix_length : builtins.int = ..., - max_prefix_length : builtins.int = ..., - empty_child : builtins.bytes = ..., - hash : global___HashOp.V = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"child_order",b"child_order",u"child_size",b"child_size",u"empty_child",b"empty_child",u"hash",b"hash",u"max_prefix_length",b"max_prefix_length",u"min_prefix_length",b"min_prefix_length"]) -> None: ... -global___InnerSpec = InnerSpec - -class BatchProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ENTRIES_FIELD_NUMBER: builtins.int - - @property - def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchEntry]: ... - - def __init__(self, - *, - entries : typing.Optional[typing.Iterable[global___BatchEntry]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries"]) -> None: ... -global___BatchProof = BatchProof - -class BatchEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EXIST_FIELD_NUMBER: builtins.int - NONEXIST_FIELD_NUMBER: builtins.int - - @property - def exist(self) -> global___ExistenceProof: ... - - @property - def nonexist(self) -> global___NonExistenceProof: ... - - def __init__(self, - *, - exist : typing.Optional[global___ExistenceProof] = ..., - nonexist : typing.Optional[global___NonExistenceProof] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist"]]: ... -global___BatchEntry = BatchEntry - -class CompressedBatchProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ENTRIES_FIELD_NUMBER: builtins.int - LOOKUP_INNERS_FIELD_NUMBER: builtins.int - - @property - def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CompressedBatchEntry]: ... - - @property - def lookup_inners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InnerOp]: ... - - def __init__(self, - *, - entries : typing.Optional[typing.Iterable[global___CompressedBatchEntry]] = ..., - lookup_inners : typing.Optional[typing.Iterable[global___InnerOp]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries",u"lookup_inners",b"lookup_inners"]) -> None: ... -global___CompressedBatchProof = CompressedBatchProof - -class CompressedBatchEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EXIST_FIELD_NUMBER: builtins.int - NONEXIST_FIELD_NUMBER: builtins.int - - @property - def exist(self) -> global___CompressedExistenceProof: ... - - @property - def nonexist(self) -> global___CompressedNonExistenceProof: ... - - def __init__(self, - *, - exist : typing.Optional[global___CompressedExistenceProof] = ..., - nonexist : typing.Optional[global___CompressedNonExistenceProof] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist"]]: ... -global___CompressedBatchEntry = CompressedBatchEntry - -class CompressedExistenceProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - LEAF_FIELD_NUMBER: builtins.int - PATH_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - value: builtins.bytes = ... - - @property - def path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - @property - def leaf(self) -> global___LeafOp: ... - - def __init__(self, - *, - key : builtins.bytes = ..., - value : builtins.bytes = ..., - leaf : typing.Optional[global___LeafOp] = ..., - path : typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"leaf",b"leaf"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"leaf",b"leaf",u"path",b"path",u"value",b"value"]) -> None: ... -global___CompressedExistenceProof = CompressedExistenceProof - -class CompressedNonExistenceProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - LEFT_FIELD_NUMBER: builtins.int - RIGHT_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - - @property - def left(self) -> global___CompressedExistenceProof: ... - - @property - def right(self) -> global___CompressedExistenceProof: ... - - def __init__(self, - *, - key : builtins.bytes = ..., - left : typing.Optional[global___CompressedExistenceProof] = ..., - right : typing.Optional[global___CompressedExistenceProof] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"left",b"left",u"right",b"right"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"left",b"left",u"right",b"right"]) -> None: ... -global___CompressedNonExistenceProof = CompressedNonExistenceProof diff --git a/pyband/proto/confio/proofs_pb2_grpc.pyi b/pyband/proto/confio/proofs_pb2_grpc.pyi deleted file mode 100644 index 2941a34..0000000 --- a/pyband/proto/confio/proofs_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .proofs_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi deleted file mode 100644 index 9ec63db..0000000 --- a/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class BaseAccount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - PUB_KEY_FIELD_NUMBER: builtins.int - ACCOUNT_NUMBER_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - address: typing.Text = ... - account_number: builtins.int = ... - sequence: builtins.int = ... - - @property - def pub_key(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - address : typing.Text = ..., - pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., - account_number : builtins.int = ..., - sequence : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"account_number",b"account_number",u"address",b"address",u"pub_key",b"pub_key",u"sequence",b"sequence"]) -> None: ... -global___BaseAccount = BaseAccount - -class ModuleAccount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BASE_ACCOUNT_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - PERMISSIONS_FIELD_NUMBER: builtins.int - name: typing.Text = ... - - @property - def permissions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - @property - def base_account(self) -> global___BaseAccount: ... - - def __init__(self, - *, - base_account : typing.Optional[global___BaseAccount] = ..., - name : typing.Text = ..., - permissions : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account",u"name",b"name",u"permissions",b"permissions"]) -> None: ... -global___ModuleAccount = ModuleAccount - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MAX_MEMO_CHARACTERS_FIELD_NUMBER: builtins.int - TX_SIG_LIMIT_FIELD_NUMBER: builtins.int - TX_SIZE_COST_PER_BYTE_FIELD_NUMBER: builtins.int - SIG_VERIFY_COST_ED25519_FIELD_NUMBER: builtins.int - SIG_VERIFY_COST_SECP256K1_FIELD_NUMBER: builtins.int - max_memo_characters: builtins.int = ... - tx_sig_limit: builtins.int = ... - tx_size_cost_per_byte: builtins.int = ... - sig_verify_cost_ed25519: builtins.int = ... - sig_verify_cost_secp256k1: builtins.int = ... - - def __init__(self, - *, - max_memo_characters : builtins.int = ..., - tx_sig_limit : builtins.int = ..., - tx_size_cost_per_byte : builtins.int = ..., - sig_verify_cost_ed25519 : builtins.int = ..., - sig_verify_cost_secp256k1 : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max_memo_characters",b"max_memo_characters",u"sig_verify_cost_ed25519",b"sig_verify_cost_ed25519",u"sig_verify_cost_secp256k1",b"sig_verify_cost_secp256k1",u"tx_sig_limit",b"tx_sig_limit",u"tx_size_cost_per_byte",b"tx_size_cost_per_byte"]) -> None: ... -global___Params = Params diff --git a/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi deleted file mode 100644 index 2ff2af3..0000000 --- a/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .auth_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi deleted file mode 100644 index d3d1eb2..0000000 --- a/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,34 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.auth.v1beta1.auth_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - ACCOUNTS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: ... - - @property - def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.auth.v1beta1.auth_pb2.Params] = ..., - accounts : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"accounts",b"accounts",u"params",b"params"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/query_pb2.py b/pyband/proto/cosmos/auth/v1beta1/query_pb2.py index 19d0652..a7ee95a 100644 --- a/pyband/proto/cosmos/auth/v1beta1/query_pb2.py +++ b/pyband/proto/cosmos/auth/v1beta1/query_pb2.py @@ -11,6 +11,7 @@ _sym_db = _symbol_database.Default() +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 @@ -24,13 +25,84 @@ syntax='proto3', serialized_options=b'Z)github.com/cosmos/cosmos-sdk/x/auth/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1f\x63osmos/auth/v1beta1/query.proto\x12\x13\x63osmos.auth.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/auth/v1beta1/auth.proto\x1a\x19\x63osmos_proto/cosmos.proto\"0\n\x13QueryAccountRequest\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"K\n\x14QueryAccountResponse\x12\x33\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x0c\xca\xb4-\x08\x41\x63\x63ountI\"\x14\n\x12QueryParamsRequest\"H\n\x13QueryParamsResponse\x12\x31\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.auth.v1beta1.ParamsB\x04\xc8\xde\x1f\x00\x32\x9c\x02\n\x05Query\x12\x8f\x01\n\x07\x41\x63\x63ount\x12(.cosmos.auth.v1beta1.QueryAccountRequest\x1a).cosmos.auth.v1beta1.QueryAccountResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/auth/v1beta1/accounts/{address}\x12\x80\x01\n\x06Params\x12\'.cosmos.auth.v1beta1.QueryParamsRequest\x1a(.cosmos.auth.v1beta1.QueryParamsResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/auth/v1beta1/paramsB+Z)github.com/cosmos/cosmos-sdk/x/auth/typesb\x06proto3' + serialized_pb=b'\n\x1f\x63osmos/auth/v1beta1/query.proto\x12\x13\x63osmos.auth.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/auth/v1beta1/auth.proto\x1a\x19\x63osmos_proto/cosmos.proto\"R\n\x14QueryAccountsRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\x8a\x01\n\x15QueryAccountsResponse\x12\x34\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyB\x0c\xca\xb4-\x08\x41\x63\x63ountI\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"0\n\x13QueryAccountRequest\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"K\n\x14QueryAccountResponse\x12\x33\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x0c\xca\xb4-\x08\x41\x63\x63ountI\"\x14\n\x12QueryParamsRequest\"H\n\x13QueryParamsResponse\x12\x31\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.auth.v1beta1.ParamsB\x04\xc8\xde\x1f\x00\x32\xa7\x03\n\x05Query\x12\x88\x01\n\x08\x41\x63\x63ounts\x12).cosmos.auth.v1beta1.QueryAccountsRequest\x1a*.cosmos.auth.v1beta1.QueryAccountsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cosmos/auth/v1beta1/accounts\x12\x8f\x01\n\x07\x41\x63\x63ount\x12(.cosmos.auth.v1beta1.QueryAccountRequest\x1a).cosmos.auth.v1beta1.QueryAccountResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/auth/v1beta1/accounts/{address}\x12\x80\x01\n\x06Params\x12\'.cosmos.auth.v1beta1.QueryParamsRequest\x1a(.cosmos.auth.v1beta1.QueryParamsResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/auth/v1beta1/paramsB+Z)github.com/cosmos/cosmos-sdk/x/auth/typesb\x06proto3' , - dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,cosmos_dot_auth_dot_v1beta1_dot_auth__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,]) + dependencies=[cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,cosmos_dot_auth_dot_v1beta1_dot_auth__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,]) +_QUERYACCOUNTSREQUEST = _descriptor.Descriptor( + name='QueryAccountsRequest', + full_name='cosmos.auth.v1beta1.QueryAccountsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='pagination', full_name='cosmos.auth.v1beta1.QueryAccountsRequest.pagination', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=238, + serialized_end=320, +) + + +_QUERYACCOUNTSRESPONSE = _descriptor.Descriptor( + name='QueryAccountsResponse', + full_name='cosmos.auth.v1beta1.QueryAccountsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='accounts', full_name='cosmos.auth.v1beta1.QueryAccountsResponse.accounts', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\312\264-\010AccountI', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pagination', full_name='cosmos.auth.v1beta1.QueryAccountsResponse.pagination', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=323, + serialized_end=461, +) + + _QUERYACCOUNTREQUEST = _descriptor.Descriptor( name='QueryAccountRequest', full_name='cosmos.auth.v1beta1.QueryAccountRequest', @@ -58,8 +130,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=194, - serialized_end=242, + serialized_start=463, + serialized_end=511, ) @@ -90,8 +162,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=244, - serialized_end=319, + serialized_start=513, + serialized_end=588, ) @@ -115,8 +187,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=321, - serialized_end=341, + serialized_start=590, + serialized_end=610, ) @@ -147,18 +219,37 @@ extension_ranges=[], oneofs=[ ], - serialized_start=343, - serialized_end=415, + serialized_start=612, + serialized_end=684, ) +_QUERYACCOUNTSREQUEST.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGEREQUEST +_QUERYACCOUNTSRESPONSE.fields_by_name['accounts'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_QUERYACCOUNTSRESPONSE.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGERESPONSE _QUERYACCOUNTRESPONSE.fields_by_name['account'].message_type = google_dot_protobuf_dot_any__pb2._ANY _QUERYPARAMSRESPONSE.fields_by_name['params'].message_type = cosmos_dot_auth_dot_v1beta1_dot_auth__pb2._PARAMS +DESCRIPTOR.message_types_by_name['QueryAccountsRequest'] = _QUERYACCOUNTSREQUEST +DESCRIPTOR.message_types_by_name['QueryAccountsResponse'] = _QUERYACCOUNTSRESPONSE DESCRIPTOR.message_types_by_name['QueryAccountRequest'] = _QUERYACCOUNTREQUEST DESCRIPTOR.message_types_by_name['QueryAccountResponse'] = _QUERYACCOUNTRESPONSE DESCRIPTOR.message_types_by_name['QueryParamsRequest'] = _QUERYPARAMSREQUEST DESCRIPTOR.message_types_by_name['QueryParamsResponse'] = _QUERYPARAMSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) +QueryAccountsRequest = _reflection.GeneratedProtocolMessageType('QueryAccountsRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYACCOUNTSREQUEST, + '__module__' : 'cosmos.auth.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.QueryAccountsRequest) + }) +_sym_db.RegisterMessage(QueryAccountsRequest) + +QueryAccountsResponse = _reflection.GeneratedProtocolMessageType('QueryAccountsResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYACCOUNTSRESPONSE, + '__module__' : 'cosmos.auth.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.QueryAccountsResponse) + }) +_sym_db.RegisterMessage(QueryAccountsResponse) + QueryAccountRequest = _reflection.GeneratedProtocolMessageType('QueryAccountRequest', (_message.Message,), { 'DESCRIPTOR' : _QUERYACCOUNTREQUEST, '__module__' : 'cosmos.auth.v1beta1.query_pb2' @@ -189,6 +280,7 @@ DESCRIPTOR._options = None +_QUERYACCOUNTSRESPONSE.fields_by_name['accounts']._options = None _QUERYACCOUNTREQUEST._options = None _QUERYACCOUNTRESPONSE.fields_by_name['account']._options = None _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None @@ -200,13 +292,23 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=418, - serialized_end=702, + serialized_start=687, + serialized_end=1110, methods=[ + _descriptor.MethodDescriptor( + name='Accounts', + full_name='cosmos.auth.v1beta1.Query.Accounts', + index=0, + containing_service=None, + input_type=_QUERYACCOUNTSREQUEST, + output_type=_QUERYACCOUNTSRESPONSE, + serialized_options=b'\202\323\344\223\002\037\022\035/cosmos/auth/v1beta1/accounts', + create_key=_descriptor._internal_create_key, + ), _descriptor.MethodDescriptor( name='Account', full_name='cosmos.auth.v1beta1.Query.Account', - index=0, + index=1, containing_service=None, input_type=_QUERYACCOUNTREQUEST, output_type=_QUERYACCOUNTRESPONSE, @@ -216,7 +318,7 @@ _descriptor.MethodDescriptor( name='Params', full_name='cosmos.auth.v1beta1.Query.Params', - index=1, + index=2, containing_service=None, input_type=_QUERYPARAMSREQUEST, output_type=_QUERYPARAMSRESPONSE, diff --git a/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi deleted file mode 100644 index 2b422e6..0000000 --- a/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.auth.v1beta1.auth_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryAccountRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - address: typing.Text = ... - - def __init__(self, - *, - address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address"]) -> None: ... -global___QueryAccountRequest = QueryAccountRequest - -class QueryAccountResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ACCOUNT_FIELD_NUMBER: builtins.int - - @property - def account(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - account : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"account",b"account"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"account",b"account"]) -> None: ... -global___QueryAccountResponse = QueryAccountResponse - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.auth.v1beta1.auth_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.py b/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.py index 9a10c71..97cbb35 100644 --- a/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.py +++ b/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.py @@ -15,6 +15,11 @@ def __init__(self, channel): Args: channel: A grpc.Channel. """ + self.Accounts = channel.unary_unary( + '/cosmos.auth.v1beta1.Query/Accounts', + request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsRequest.SerializeToString, + response_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsResponse.FromString, + ) self.Account = channel.unary_unary( '/cosmos.auth.v1beta1.Query/Account', request_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountRequest.SerializeToString, @@ -31,6 +36,13 @@ class QueryServicer(object): """Query defines the gRPC querier service. """ + def Accounts(self, request, context): + """Accounts returns all the existing accounts + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def Account(self, request, context): """Account returns account details based on address. """ @@ -48,6 +60,11 @@ def Params(self, request, context): def add_QueryServicer_to_server(servicer, server): rpc_method_handlers = { + 'Accounts': grpc.unary_unary_rpc_method_handler( + servicer.Accounts, + request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsRequest.FromString, + response_serializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsResponse.SerializeToString, + ), 'Account': grpc.unary_unary_rpc_method_handler( servicer.Account, request_deserializer=cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountRequest.FromString, @@ -69,6 +86,23 @@ class Query(object): """Query defines the gRPC querier service. """ + @staticmethod + def Accounts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.auth.v1beta1.Query/Accounts', + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsRequest.SerializeToString, + cosmos_dot_auth_dot_v1beta1_dot_query__pb2.QueryAccountsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def Account(request, target, diff --git a/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 0bc66ab..0000000 --- a/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,34 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Account:grpc.UnaryUnaryMultiCallable[ - global___QueryAccountRequest, - global___QueryAccountResponse] = ... - - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Account(self, - request: global___QueryAccountRequest, - context: grpc.ServicerContext, - ) -> global___QueryAccountResponse: ... - - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/authz/v1beta1/authz_pb2.py b/pyband/proto/cosmos/authz/v1beta1/authz_pb2.py new file mode 100644 index 0000000..bc56589 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/authz_pb2.py @@ -0,0 +1,128 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/authz.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/authz/v1beta1/authz.proto', + package='cosmos.authz.v1beta1', + syntax='proto3', + serialized_options=b'Z$github.com/cosmos/cosmos-sdk/x/authz\310\341\036\000', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n cosmos/authz/v1beta1/authz.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"6\n\x14GenericAuthorization\x12\x0b\n\x03msg\x18\x01 \x01(\t:\x11\xd2\xb4-\rAuthorization\"\x81\x01\n\x05Grant\x12>\n\rauthorization\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x11\xca\xb4-\rAuthorization\x12\x38\n\nexpiration\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\x90\xdf\x1f\x01\xc8\xde\x1f\x00\x42*Z$github.com/cosmos/cosmos-sdk/x/authz\xc8\xe1\x1e\x00\x62\x06proto3' + , + dependencies=[cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) + + + + +_GENERICAUTHORIZATION = _descriptor.Descriptor( + name='GenericAuthorization', + full_name='cosmos.authz.v1beta1.GenericAuthorization', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='msg', full_name='cosmos.authz.v1beta1.GenericAuthorization.msg', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\322\264-\rAuthorization', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=167, + serialized_end=221, +) + + +_GRANT = _descriptor.Descriptor( + name='Grant', + full_name='cosmos.authz.v1beta1.Grant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='authorization', full_name='cosmos.authz.v1beta1.Grant.authorization', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\312\264-\rAuthorization', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='expiration', full_name='cosmos.authz.v1beta1.Grant.expiration', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\220\337\037\001\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=224, + serialized_end=353, +) + +_GRANT.fields_by_name['authorization'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_GRANT.fields_by_name['expiration'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name['GenericAuthorization'] = _GENERICAUTHORIZATION +DESCRIPTOR.message_types_by_name['Grant'] = _GRANT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GenericAuthorization = _reflection.GeneratedProtocolMessageType('GenericAuthorization', (_message.Message,), { + 'DESCRIPTOR' : _GENERICAUTHORIZATION, + '__module__' : 'cosmos.authz.v1beta1.authz_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.GenericAuthorization) + }) +_sym_db.RegisterMessage(GenericAuthorization) + +Grant = _reflection.GeneratedProtocolMessageType('Grant', (_message.Message,), { + 'DESCRIPTOR' : _GRANT, + '__module__' : 'cosmos.authz.v1beta1.authz_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.Grant) + }) +_sym_db.RegisterMessage(Grant) + + +DESCRIPTOR._options = None +_GENERICAUTHORIZATION._options = None +_GRANT.fields_by_name['authorization']._options = None +_GRANT.fields_by_name['expiration']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.py b/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/authz/v1beta1/event_pb2.py b/pyband/proto/cosmos/authz/v1beta1/event_pb2.py new file mode 100644 index 0000000..8de8c18 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/event_pb2.py @@ -0,0 +1,139 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/event.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/authz/v1beta1/event.proto', + package='cosmos.authz.v1beta1', + syntax='proto3', + serialized_options=b'Z$github.com/cosmos/cosmos-sdk/x/authz', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n cosmos/authz/v1beta1/event.proto\x12\x14\x63osmos.authz.v1beta1\"D\n\nEventGrant\x12\x14\n\x0cmsg_type_url\x18\x02 \x01(\t\x12\x0f\n\x07granter\x18\x03 \x01(\t\x12\x0f\n\x07grantee\x18\x04 \x01(\t\"E\n\x0b\x45ventRevoke\x12\x14\n\x0cmsg_type_url\x18\x02 \x01(\t\x12\x0f\n\x07granter\x18\x03 \x01(\t\x12\x0f\n\x07grantee\x18\x04 \x01(\tB&Z$github.com/cosmos/cosmos-sdk/x/authzb\x06proto3' +) + + + + +_EVENTGRANT = _descriptor.Descriptor( + name='EventGrant', + full_name='cosmos.authz.v1beta1.EventGrant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='msg_type_url', full_name='cosmos.authz.v1beta1.EventGrant.msg_type_url', index=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.authz.v1beta1.EventGrant.granter', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.authz.v1beta1.EventGrant.grantee', index=2, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=58, + serialized_end=126, +) + + +_EVENTREVOKE = _descriptor.Descriptor( + name='EventRevoke', + full_name='cosmos.authz.v1beta1.EventRevoke', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='msg_type_url', full_name='cosmos.authz.v1beta1.EventRevoke.msg_type_url', index=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.authz.v1beta1.EventRevoke.granter', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.authz.v1beta1.EventRevoke.grantee', index=2, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=197, +) + +DESCRIPTOR.message_types_by_name['EventGrant'] = _EVENTGRANT +DESCRIPTOR.message_types_by_name['EventRevoke'] = _EVENTREVOKE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +EventGrant = _reflection.GeneratedProtocolMessageType('EventGrant', (_message.Message,), { + 'DESCRIPTOR' : _EVENTGRANT, + '__module__' : 'cosmos.authz.v1beta1.event_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.EventGrant) + }) +_sym_db.RegisterMessage(EventGrant) + +EventRevoke = _reflection.GeneratedProtocolMessageType('EventRevoke', (_message.Message,), { + 'DESCRIPTOR' : _EVENTREVOKE, + '__module__' : 'cosmos.authz.v1beta1.event_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.EventRevoke) + }) +_sym_db.RegisterMessage(EventRevoke) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.py b/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.py b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.py new file mode 100644 index 0000000..0651016 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.py @@ -0,0 +1,143 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/authz/v1beta1/genesis.proto', + package='cosmos.authz.v1beta1', + syntax='proto3', + serialized_options=b'Z$github.com/cosmos/cosmos-sdk/x/authz', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\"cosmos/authz/v1beta1/genesis.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\"U\n\x0cGenesisState\x12\x45\n\rauthorization\x18\x01 \x03(\x0b\x32(.cosmos.authz.v1beta1.GrantAuthorizationB\x04\xc8\xde\x1f\x00\"\xb0\x01\n\x12GrantAuthorization\x12\x0f\n\x07granter\x18\x01 \x01(\t\x12\x0f\n\x07grantee\x18\x02 \x01(\t\x12>\n\rauthorization\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB\x11\xca\xb4-\rAuthorization\x12\x38\n\nexpiration\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01\x42&Z$github.com/cosmos/cosmos-sdk/x/authzb\x06proto3' + , + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,]) + + + + +_GENESISSTATE = _descriptor.Descriptor( + name='GenesisState', + full_name='cosmos.authz.v1beta1.GenesisState', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='authorization', full_name='cosmos.authz.v1beta1.GenesisState.authorization', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=169, + serialized_end=254, +) + + +_GRANTAUTHORIZATION = _descriptor.Descriptor( + name='GrantAuthorization', + full_name='cosmos.authz.v1beta1.GrantAuthorization', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.authz.v1beta1.GrantAuthorization.granter', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.authz.v1beta1.GrantAuthorization.grantee', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='authorization', full_name='cosmos.authz.v1beta1.GrantAuthorization.authorization', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\312\264-\rAuthorization', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='expiration', full_name='cosmos.authz.v1beta1.GrantAuthorization.expiration', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000\220\337\037\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=257, + serialized_end=433, +) + +_GENESISSTATE.fields_by_name['authorization'].message_type = _GRANTAUTHORIZATION +_GRANTAUTHORIZATION.fields_by_name['authorization'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_GRANTAUTHORIZATION.fields_by_name['expiration'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name['GenesisState'] = _GENESISSTATE +DESCRIPTOR.message_types_by_name['GrantAuthorization'] = _GRANTAUTHORIZATION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GenesisState = _reflection.GeneratedProtocolMessageType('GenesisState', (_message.Message,), { + 'DESCRIPTOR' : _GENESISSTATE, + '__module__' : 'cosmos.authz.v1beta1.genesis_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.GenesisState) + }) +_sym_db.RegisterMessage(GenesisState) + +GrantAuthorization = _reflection.GeneratedProtocolMessageType('GrantAuthorization', (_message.Message,), { + 'DESCRIPTOR' : _GRANTAUTHORIZATION, + '__module__' : 'cosmos.authz.v1beta1.genesis_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.GrantAuthorization) + }) +_sym_db.RegisterMessage(GrantAuthorization) + + +DESCRIPTOR._options = None +_GENESISSTATE.fields_by_name['authorization']._options = None +_GRANTAUTHORIZATION.fields_by_name['authorization']._options = None +_GRANTAUTHORIZATION.fields_by_name['expiration']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.py b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/authz/v1beta1/query_pb2.py b/pyband/proto/cosmos/authz/v1beta1/query_pb2.py new file mode 100644 index 0000000..b1fa008 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/query_pb2.py @@ -0,0 +1,172 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from cosmos.authz.v1beta1 import authz_pb2 as cosmos_dot_authz_dot_v1beta1_dot_authz__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/authz/v1beta1/query.proto', + package='cosmos.authz.v1beta1', + syntax='proto3', + serialized_options=b'Z$github.com/cosmos/cosmos-sdk/x/authz', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n cosmos/authz/v1beta1/query.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a cosmos/authz/v1beta1/authz.proto\"\x88\x01\n\x12QueryGrantsRequest\x12\x0f\n\x07granter\x18\x01 \x01(\t\x12\x0f\n\x07grantee\x18\x02 \x01(\t\x12\x14\n\x0cmsg_type_url\x18\x03 \x01(\t\x12:\n\npagination\x18\x04 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\x7f\n\x13QueryGrantsResponse\x12+\n\x06grants\x18\x01 \x03(\x0b\x32\x1b.cosmos.authz.v1beta1.Grant\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse2\x8d\x01\n\x05Query\x12\x83\x01\n\x06Grants\x12(.cosmos.authz.v1beta1.QueryGrantsRequest\x1a).cosmos.authz.v1beta1.QueryGrantsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/cosmos/authz/v1beta1/grantsB&Z$github.com/cosmos/cosmos-sdk/x/authzb\x06proto3' + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,cosmos_dot_authz_dot_v1beta1_dot_authz__pb2.DESCRIPTOR,]) + + + + +_QUERYGRANTSREQUEST = _descriptor.Descriptor( + name='QueryGrantsRequest', + full_name='cosmos.authz.v1beta1.QueryGrantsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.authz.v1beta1.QueryGrantsRequest.granter', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.authz.v1beta1.QueryGrantsRequest.grantee', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='msg_type_url', full_name='cosmos.authz.v1beta1.QueryGrantsRequest.msg_type_url', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pagination', full_name='cosmos.authz.v1beta1.QueryGrantsRequest.pagination', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=167, + serialized_end=303, +) + + +_QUERYGRANTSRESPONSE = _descriptor.Descriptor( + name='QueryGrantsResponse', + full_name='cosmos.authz.v1beta1.QueryGrantsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='grants', full_name='cosmos.authz.v1beta1.QueryGrantsResponse.grants', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pagination', full_name='cosmos.authz.v1beta1.QueryGrantsResponse.pagination', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=305, + serialized_end=432, +) + +_QUERYGRANTSREQUEST.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGEREQUEST +_QUERYGRANTSRESPONSE.fields_by_name['grants'].message_type = cosmos_dot_authz_dot_v1beta1_dot_authz__pb2._GRANT +_QUERYGRANTSRESPONSE.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGERESPONSE +DESCRIPTOR.message_types_by_name['QueryGrantsRequest'] = _QUERYGRANTSREQUEST +DESCRIPTOR.message_types_by_name['QueryGrantsResponse'] = _QUERYGRANTSRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +QueryGrantsRequest = _reflection.GeneratedProtocolMessageType('QueryGrantsRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYGRANTSREQUEST, + '__module__' : 'cosmos.authz.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.QueryGrantsRequest) + }) +_sym_db.RegisterMessage(QueryGrantsRequest) + +QueryGrantsResponse = _reflection.GeneratedProtocolMessageType('QueryGrantsResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYGRANTSRESPONSE, + '__module__' : 'cosmos.authz.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.QueryGrantsResponse) + }) +_sym_db.RegisterMessage(QueryGrantsResponse) + + +DESCRIPTOR._options = None + +_QUERY = _descriptor.ServiceDescriptor( + name='Query', + full_name='cosmos.authz.v1beta1.Query', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=435, + serialized_end=576, + methods=[ + _descriptor.MethodDescriptor( + name='Grants', + full_name='cosmos.authz.v1beta1.Query.Grants', + index=0, + containing_service=None, + input_type=_QUERYGRANTSREQUEST, + output_type=_QUERYGRANTSRESPONSE, + serialized_options=b'\202\323\344\223\002\036\022\034/cosmos/authz/v1beta1/grants', + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_QUERY) + +DESCRIPTOR.services_by_name['Query'] = _QUERY + +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.py b/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.py new file mode 100644 index 0000000..6a95845 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.py @@ -0,0 +1,70 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.authz.v1beta1 import query_pb2 as cosmos_dot_authz_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Grants = channel.unary_unary( + '/cosmos.authz.v1beta1.Query/Grants', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsRequest.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Grants(self, request, context): + """Returns list of `Authorization`, granted to the grantee by the granter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Grants': grpc.unary_unary_rpc_method_handler( + servicer.Grants, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsRequest.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.authz.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Grants(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Query/Grants', + cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsRequest.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_query__pb2.QueryGrantsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyband/proto/cosmos/authz/v1beta1/tx_pb2.py b/pyband/proto/cosmos/authz/v1beta1/tx_pb2.py new file mode 100644 index 0000000..87a2ff8 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/tx_pb2.py @@ -0,0 +1,349 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/authz/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos.base.abci.v1beta1 import abci_pb2 as cosmos_dot_base_dot_abci_dot_v1beta1_dot_abci__pb2 +from cosmos.authz.v1beta1 import authz_pb2 as cosmos_dot_authz_dot_v1beta1_dot_authz__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/authz/v1beta1/tx.proto', + package='cosmos.authz.v1beta1', + syntax='proto3', + serialized_options=b'Z$github.com/cosmos/cosmos-sdk/x/authz\310\341\036\000', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x1d\x63osmos/authz/v1beta1/tx.proto\x12\x14\x63osmos.authz.v1beta1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a#cosmos/base/abci/v1beta1/abci.proto\x1a cosmos/authz/v1beta1/authz.proto\"^\n\x08MsgGrant\x12\x0f\n\x07granter\x18\x01 \x01(\t\x12\x0f\n\x07grantee\x18\x02 \x01(\t\x12\x30\n\x05grant\x18\x03 \x01(\x0b\x32\x1b.cosmos.authz.v1beta1.GrantB\x04\xc8\xde\x1f\x00\"\"\n\x0fMsgExecResponse\x12\x0f\n\x07results\x18\x01 \x03(\x0c\"`\n\x07MsgExec\x12\x0f\n\x07grantee\x18\x01 \x01(\t\x12\x44\n\x04msgs\x18\x02 \x03(\x0b\x32\x14.google.protobuf.AnyB \xca\xb4-\x1csdk.Msg, authz.Authorization\"\x12\n\x10MsgGrantResponse\"C\n\tMsgRevoke\x12\x0f\n\x07granter\x18\x01 \x01(\t\x12\x0f\n\x07grantee\x18\x02 \x01(\t\x12\x14\n\x0cmsg_type_url\x18\x03 \x01(\t\"\x13\n\x11MsgRevokeResponse2\xf8\x01\n\x03Msg\x12O\n\x05Grant\x12\x1e.cosmos.authz.v1beta1.MsgGrant\x1a&.cosmos.authz.v1beta1.MsgGrantResponse\x12L\n\x04\x45xec\x12\x1d.cosmos.authz.v1beta1.MsgExec\x1a%.cosmos.authz.v1beta1.MsgExecResponse\x12R\n\x06Revoke\x12\x1f.cosmos.authz.v1beta1.MsgRevoke\x1a\'.cosmos.authz.v1beta1.MsgRevokeResponseB*Z$github.com/cosmos/cosmos-sdk/x/authz\xc8\xe1\x1e\x00\x62\x06proto3' + , + dependencies=[cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,cosmos_dot_base_dot_abci_dot_v1beta1_dot_abci__pb2.DESCRIPTOR,cosmos_dot_authz_dot_v1beta1_dot_authz__pb2.DESCRIPTOR,]) + + + + +_MSGGRANT = _descriptor.Descriptor( + name='MsgGrant', + full_name='cosmos.authz.v1beta1.MsgGrant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.authz.v1beta1.MsgGrant.granter', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.authz.v1beta1.MsgGrant.grantee', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grant', full_name='cosmos.authz.v1beta1.MsgGrant.grant', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=235, + serialized_end=329, +) + + +_MSGEXECRESPONSE = _descriptor.Descriptor( + name='MsgExecResponse', + full_name='cosmos.authz.v1beta1.MsgExecResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='cosmos.authz.v1beta1.MsgExecResponse.results', index=0, + number=1, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=331, + serialized_end=365, +) + + +_MSGEXEC = _descriptor.Descriptor( + name='MsgExec', + full_name='cosmos.authz.v1beta1.MsgExec', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.authz.v1beta1.MsgExec.grantee', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='msgs', full_name='cosmos.authz.v1beta1.MsgExec.msgs', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\312\264-\034sdk.Msg, authz.Authorization', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=367, + serialized_end=463, +) + + +_MSGGRANTRESPONSE = _descriptor.Descriptor( + name='MsgGrantResponse', + full_name='cosmos.authz.v1beta1.MsgGrantResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=465, + serialized_end=483, +) + + +_MSGREVOKE = _descriptor.Descriptor( + name='MsgRevoke', + full_name='cosmos.authz.v1beta1.MsgRevoke', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.authz.v1beta1.MsgRevoke.granter', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.authz.v1beta1.MsgRevoke.grantee', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='msg_type_url', full_name='cosmos.authz.v1beta1.MsgRevoke.msg_type_url', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=485, + serialized_end=552, +) + + +_MSGREVOKERESPONSE = _descriptor.Descriptor( + name='MsgRevokeResponse', + full_name='cosmos.authz.v1beta1.MsgRevokeResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=554, + serialized_end=573, +) + +_MSGGRANT.fields_by_name['grant'].message_type = cosmos_dot_authz_dot_v1beta1_dot_authz__pb2._GRANT +_MSGEXEC.fields_by_name['msgs'].message_type = google_dot_protobuf_dot_any__pb2._ANY +DESCRIPTOR.message_types_by_name['MsgGrant'] = _MSGGRANT +DESCRIPTOR.message_types_by_name['MsgExecResponse'] = _MSGEXECRESPONSE +DESCRIPTOR.message_types_by_name['MsgExec'] = _MSGEXEC +DESCRIPTOR.message_types_by_name['MsgGrantResponse'] = _MSGGRANTRESPONSE +DESCRIPTOR.message_types_by_name['MsgRevoke'] = _MSGREVOKE +DESCRIPTOR.message_types_by_name['MsgRevokeResponse'] = _MSGREVOKERESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MsgGrant = _reflection.GeneratedProtocolMessageType('MsgGrant', (_message.Message,), { + 'DESCRIPTOR' : _MSGGRANT, + '__module__' : 'cosmos.authz.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgGrant) + }) +_sym_db.RegisterMessage(MsgGrant) + +MsgExecResponse = _reflection.GeneratedProtocolMessageType('MsgExecResponse', (_message.Message,), { + 'DESCRIPTOR' : _MSGEXECRESPONSE, + '__module__' : 'cosmos.authz.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgExecResponse) + }) +_sym_db.RegisterMessage(MsgExecResponse) + +MsgExec = _reflection.GeneratedProtocolMessageType('MsgExec', (_message.Message,), { + 'DESCRIPTOR' : _MSGEXEC, + '__module__' : 'cosmos.authz.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgExec) + }) +_sym_db.RegisterMessage(MsgExec) + +MsgGrantResponse = _reflection.GeneratedProtocolMessageType('MsgGrantResponse', (_message.Message,), { + 'DESCRIPTOR' : _MSGGRANTRESPONSE, + '__module__' : 'cosmos.authz.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgGrantResponse) + }) +_sym_db.RegisterMessage(MsgGrantResponse) + +MsgRevoke = _reflection.GeneratedProtocolMessageType('MsgRevoke', (_message.Message,), { + 'DESCRIPTOR' : _MSGREVOKE, + '__module__' : 'cosmos.authz.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgRevoke) + }) +_sym_db.RegisterMessage(MsgRevoke) + +MsgRevokeResponse = _reflection.GeneratedProtocolMessageType('MsgRevokeResponse', (_message.Message,), { + 'DESCRIPTOR' : _MSGREVOKERESPONSE, + '__module__' : 'cosmos.authz.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.authz.v1beta1.MsgRevokeResponse) + }) +_sym_db.RegisterMessage(MsgRevokeResponse) + + +DESCRIPTOR._options = None +_MSGGRANT.fields_by_name['grant']._options = None +_MSGEXEC.fields_by_name['msgs']._options = None + +_MSG = _descriptor.ServiceDescriptor( + name='Msg', + full_name='cosmos.authz.v1beta1.Msg', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=576, + serialized_end=824, + methods=[ + _descriptor.MethodDescriptor( + name='Grant', + full_name='cosmos.authz.v1beta1.Msg.Grant', + index=0, + containing_service=None, + input_type=_MSGGRANT, + output_type=_MSGGRANTRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='Exec', + full_name='cosmos.authz.v1beta1.Msg.Exec', + index=1, + containing_service=None, + input_type=_MSGEXEC, + output_type=_MSGEXECRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='Revoke', + full_name='cosmos.authz.v1beta1.Msg.Revoke', + index=2, + containing_service=None, + input_type=_MSGREVOKE, + output_type=_MSGREVOKERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_MSG) + +DESCRIPTOR.services_by_name['Msg'] = _MSG + +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.py b/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.py new file mode 100644 index 0000000..c91de7d --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,144 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.authz.v1beta1 import tx_pb2 as cosmos_dot_authz_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the authz Msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Grant = channel.unary_unary( + '/cosmos.authz.v1beta1.Msg/Grant', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrant.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrantResponse.FromString, + ) + self.Exec = channel.unary_unary( + '/cosmos.authz.v1beta1.Msg/Exec', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExec.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExecResponse.FromString, + ) + self.Revoke = channel.unary_unary( + '/cosmos.authz.v1beta1.Msg/Revoke', + request_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevoke.SerializeToString, + response_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevokeResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the authz Msg service. + """ + + def Grant(self, request, context): + """Grant grants the provided authorization to the grantee on the granter's + account with the provided expiration time. If there is already a grant + for the given (granter, grantee, Authorization) triple, then the grant + will be overwritten. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Exec(self, request, context): + """Exec attempts to execute the provided messages using + authorizations granted to the grantee. Each message should have only + one signer corresponding to the granter of the authorization. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Revoke(self, request, context): + """Revoke revokes any authorization corresponding to the provided method name on the + granter's account that has been granted to the grantee. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Grant': grpc.unary_unary_rpc_method_handler( + servicer.Grant, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrant.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrantResponse.SerializeToString, + ), + 'Exec': grpc.unary_unary_rpc_method_handler( + servicer.Exec, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExec.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExecResponse.SerializeToString, + ), + 'Revoke': grpc.unary_unary_rpc_method_handler( + servicer.Revoke, + request_deserializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevoke.FromString, + response_serializer=cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevokeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.authz.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the authz Msg service. + """ + + @staticmethod + def Grant(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Msg/Grant', + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrant.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgGrantResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Exec(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Msg/Exec', + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExec.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgExecResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Revoke(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.authz.v1beta1.Msg/Revoke', + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevoke.SerializeToString, + cosmos_dot_authz_dot_v1beta1_dot_tx__pb2.MsgRevokeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyband/proto/cosmos/bank/v1beta1/authz_pb2.py b/pyband/proto/cosmos/bank/v1beta1/authz_pb2.py new file mode 100644 index 0000000..0e38afe --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/authz_pb2.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/bank/v1beta1/authz.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/bank/v1beta1/authz.proto', + package='cosmos.bank.v1beta1', + syntax='proto3', + serialized_options=b'Z)github.com/cosmos/cosmos-sdk/x/bank/types', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\x1f\x63osmos/bank/v1beta1/authz.proto\x12\x13\x63osmos.bank.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x88\x01\n\x11SendAuthorization\x12`\n\x0bspend_limit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x11\xd2\xb4-\rAuthorizationB+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3' + , + dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,]) + + + + +_SENDAUTHORIZATION = _descriptor.Descriptor( + name='SendAuthorization', + full_name='cosmos.bank.v1beta1.SendAuthorization', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='spend_limit', full_name='cosmos.bank.v1beta1.SendAuthorization.spend_limit', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\322\264-\rAuthorization', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=138, + serialized_end=274, +) + +_SENDAUTHORIZATION.fields_by_name['spend_limit'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN +DESCRIPTOR.message_types_by_name['SendAuthorization'] = _SENDAUTHORIZATION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SendAuthorization = _reflection.GeneratedProtocolMessageType('SendAuthorization', (_message.Message,), { + 'DESCRIPTOR' : _SENDAUTHORIZATION, + '__module__' : 'cosmos.bank.v1beta1.authz_pb2' + # @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.SendAuthorization) + }) +_sym_db.RegisterMessage(SendAuthorization) + + +DESCRIPTOR._options = None +_SENDAUTHORIZATION.fields_by_name['spend_limit']._options = None +_SENDAUTHORIZATION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.py b/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/bank/v1beta1/bank_pb2.py b/pyband/proto/cosmos/bank/v1beta1/bank_pb2.py index 3fd0e12..d06443d 100644 --- a/pyband/proto/cosmos/bank/v1beta1/bank_pb2.py +++ b/pyband/proto/cosmos/bank/v1beta1/bank_pb2.py @@ -22,7 +22,7 @@ syntax='proto3', serialized_options=b'Z)github.com/cosmos/cosmos-sdk/x/bank/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1e\x63osmos/bank/v1beta1/bank.proto\x12\x13\x63osmos.bank.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xb2\x01\n\x06Params\x12Y\n\x0csend_enabled\x18\x01 \x03(\x0b\x32 .cosmos.bank.v1beta1.SendEnabledB!\xf2\xde\x1f\x1dyaml:\"send_enabled,omitempty\"\x12G\n\x14\x64\x65\x66\x61ult_send_enabled\x18\x02 \x01(\x08\x42)\xf2\xde\x1f%yaml:\"default_send_enabled,omitempty\":\x04\x98\xa0\x1f\x00\"7\n\x0bSendEnabled\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x02 \x01(\x08:\x08\xe8\xa0\x1f\x01\x98\xa0\x1f\x00\"~\n\x05Input\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12Z\n\x05\x63oins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x7f\n\x06Output\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12Z\n\x05\x63oins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\xab\x01\n\x06Supply\x12Z\n\x05total\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:E\xe8\xa0\x1f\x01\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xd2\xb4-5*github.com/cosmos/cosmos-sdk/x/bank/exported.SupplyI\"=\n\tDenomUnit\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x10\n\x08\x65xponent\x18\x02 \x01(\r\x12\x0f\n\x07\x61liases\x18\x03 \x03(\t\"s\n\x08Metadata\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x33\n\x0b\x64\x65nom_units\x18\x02 \x03(\x0b\x32\x1e.cosmos.bank.v1beta1.DenomUnit\x12\x0c\n\x04\x62\x61se\x18\x03 \x01(\t\x12\x0f\n\x07\x64isplay\x18\x04 \x01(\tB+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3' + serialized_pb=b'\n\x1e\x63osmos/bank/v1beta1/bank.proto\x12\x13\x63osmos.bank.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xb2\x01\n\x06Params\x12Y\n\x0csend_enabled\x18\x01 \x03(\x0b\x32 .cosmos.bank.v1beta1.SendEnabledB!\xf2\xde\x1f\x1dyaml:\"send_enabled,omitempty\"\x12G\n\x14\x64\x65\x66\x61ult_send_enabled\x18\x02 \x01(\x08\x42)\xf2\xde\x1f%yaml:\"default_send_enabled,omitempty\":\x04\x98\xa0\x1f\x00\"7\n\x0bSendEnabled\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x02 \x01(\x08:\x08\xe8\xa0\x1f\x01\x98\xa0\x1f\x00\"~\n\x05Input\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12Z\n\x05\x63oins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x7f\n\x06Output\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12Z\n\x05\x63oins\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\xac\x01\n\x06Supply\x12Z\n\x05total\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:F\x18\x01\xe8\xa0\x1f\x01\x88\xa0\x1f\x00\xd2\xb4-8*github.com/cosmos/cosmos-sdk/x/bank/legacy/v040.SupplyI\"=\n\tDenomUnit\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x10\n\x08\x65xponent\x18\x02 \x01(\r\x12\x0f\n\x07\x61liases\x18\x03 \x03(\t\"\x91\x01\n\x08Metadata\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x33\n\x0b\x64\x65nom_units\x18\x02 \x03(\x0b\x32\x1e.cosmos.bank.v1beta1.DenomUnit\x12\x0c\n\x04\x62\x61se\x18\x03 \x01(\t\x12\x0f\n\x07\x64isplay\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06symbol\x18\x06 \x01(\tB+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,]) @@ -206,14 +206,14 @@ nested_types=[], enum_types=[ ], - serialized_options=b'\350\240\037\001\210\240\037\000\230\240\037\000\322\264-5*github.com/cosmos/cosmos-sdk/x/bank/exported.SupplyI', + serialized_options=b'\030\001\350\240\037\001\210\240\037\000\322\264-8*github.com/cosmos/cosmos-sdk/x/bank/legacy/v040.SupplyI', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=632, - serialized_end=803, + serialized_end=804, ) @@ -258,8 +258,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=805, - serialized_end=866, + serialized_start=806, + serialized_end=867, ) @@ -299,6 +299,20 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='name', full_name='cosmos.bank.v1beta1.Metadata.name', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='symbol', full_name='cosmos.bank.v1beta1.Metadata.symbol', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -311,8 +325,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=868, - serialized_end=983, + serialized_start=870, + serialized_end=1015, ) _PARAMS.fields_by_name['send_enabled'].message_type = _SENDENABLED diff --git a/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi deleted file mode 100644 index aa654aa..0000000 --- a/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi +++ /dev/null @@ -1,136 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SEND_ENABLED_FIELD_NUMBER: builtins.int - DEFAULT_SEND_ENABLED_FIELD_NUMBER: builtins.int - default_send_enabled: builtins.bool = ... - - @property - def send_enabled(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SendEnabled]: ... - - def __init__(self, - *, - send_enabled : typing.Optional[typing.Iterable[global___SendEnabled]] = ..., - default_send_enabled : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"default_send_enabled",b"default_send_enabled",u"send_enabled",b"send_enabled"]) -> None: ... -global___Params = Params - -class SendEnabled(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - denom: typing.Text = ... - enabled: builtins.bool = ... - - def __init__(self, - *, - denom : typing.Text = ..., - enabled : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom",u"enabled",b"enabled"]) -> None: ... -global___SendEnabled = SendEnabled - -class Input(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - COINS_FIELD_NUMBER: builtins.int - address: typing.Text = ... - - @property - def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - address : typing.Text = ..., - coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... -global___Input = Input - -class Output(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - COINS_FIELD_NUMBER: builtins.int - address: typing.Text = ... - - @property - def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - address : typing.Text = ..., - coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... -global___Output = Output - -class Supply(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TOTAL_FIELD_NUMBER: builtins.int - - @property - def total(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - total : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"total",b"total"]) -> None: ... -global___Supply = Supply - -class DenomUnit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_FIELD_NUMBER: builtins.int - EXPONENT_FIELD_NUMBER: builtins.int - ALIASES_FIELD_NUMBER: builtins.int - denom: typing.Text = ... - exponent: builtins.int = ... - - @property - def aliases(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - denom : typing.Text = ..., - exponent : builtins.int = ..., - aliases : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"aliases",b"aliases",u"denom",b"denom",u"exponent",b"exponent"]) -> None: ... -global___DenomUnit = DenomUnit - -class Metadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DESCRIPTION_FIELD_NUMBER: builtins.int - DENOM_UNITS_FIELD_NUMBER: builtins.int - BASE_FIELD_NUMBER: builtins.int - DISPLAY_FIELD_NUMBER: builtins.int - description: typing.Text = ... - base: typing.Text = ... - display: typing.Text = ... - - @property - def denom_units(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DenomUnit]: ... - - def __init__(self, - *, - description : typing.Text = ..., - denom_units : typing.Optional[typing.Iterable[global___DenomUnit]] = ..., - base : typing.Text = ..., - display : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base",b"base",u"denom_units",b"denom_units",u"description",b"description",u"display",b"display"]) -> None: ... -global___Metadata = Metadata diff --git a/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi deleted file mode 100644 index fe241e2..0000000 --- a/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .bank_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi deleted file mode 100644 index ec06ece..0000000 --- a/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,61 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.bank.v1beta1.bank_pb2 -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - BALANCES_FIELD_NUMBER: builtins.int - SUPPLY_FIELD_NUMBER: builtins.int - DENOM_METADATA_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: ... - - @property - def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Balance]: ... - - @property - def supply(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - @property - def denom_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Metadata]: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.bank.v1beta1.bank_pb2.Params] = ..., - balances : typing.Optional[typing.Iterable[global___Balance]] = ..., - supply : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - denom_metadata : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Metadata]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"balances",b"balances",u"denom_metadata",b"denom_metadata",u"params",b"params",u"supply",b"supply"]) -> None: ... -global___GenesisState = GenesisState - -class Balance(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - COINS_FIELD_NUMBER: builtins.int - address: typing.Text = ... - - @property - def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - address : typing.Text = ..., - coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... -global___Balance = Balance diff --git a/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/bank/v1beta1/query_pb2.py b/pyband/proto/cosmos/bank/v1beta1/query_pb2.py index 9d4b5d9..bdd8a94 100644 --- a/pyband/proto/cosmos/bank/v1beta1/query_pb2.py +++ b/pyband/proto/cosmos/bank/v1beta1/query_pb2.py @@ -24,7 +24,7 @@ syntax='proto3', serialized_options=b'Z)github.com/cosmos/cosmos-sdk/x/bank/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1f\x63osmos/bank/v1beta1/query.proto\x12\x13\x63osmos.bank.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1e\x63osmos/bank/v1beta1/bank.proto\"?\n\x13QueryBalanceRequest\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"B\n\x14QueryBalanceResponse\x12*\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.Coin\"p\n\x17QueryAllBalancesRequest\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\xb6\x01\n\x18QueryAllBalancesResponse\x12]\n\x08\x62\x61lances\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"\x19\n\x17QueryTotalSupplyRequest\"w\n\x18QueryTotalSupplyResponse\x12[\n\x06supply\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\"%\n\x14QuerySupplyOfRequest\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\"H\n\x15QuerySupplyOfResponse\x12/\n\x06\x61mount\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00\"\x14\n\x12QueryParamsRequest\"H\n\x13QueryParamsResponse\x12\x31\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.bank.v1beta1.ParamsB\x04\xc8\xde\x1f\x00\"X\n\x1aQueryDenomsMetadataRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\x92\x01\n\x1bQueryDenomsMetadataResponse\x12\x36\n\tmetadatas\x18\x01 \x03(\x0b\x32\x1d.cosmos.bank.v1beta1.MetadataB\x04\xc8\xde\x1f\x00\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"*\n\x19QueryDenomMetadataRequest\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\"S\n\x1aQueryDenomMetadataResponse\x12\x35\n\x08metadata\x18\x01 \x01(\x0b\x32\x1d.cosmos.bank.v1beta1.MetadataB\x04\xc8\xde\x1f\x00\x32\xb2\x08\n\x05Query\x12\x97\x01\n\x07\x42\x61lance\x12(.cosmos.bank.v1beta1.QueryBalanceRequest\x1a).cosmos.bank.v1beta1.QueryBalanceResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//cosmos/bank/v1beta1/balances/{address}/{denom}\x12\x9b\x01\n\x0b\x41llBalances\x12,.cosmos.bank.v1beta1.QueryAllBalancesRequest\x1a-.cosmos.bank.v1beta1.QueryAllBalancesResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/bank/v1beta1/balances/{address}\x12\x8f\x01\n\x0bTotalSupply\x12,.cosmos.bank.v1beta1.QueryTotalSupplyRequest\x1a-.cosmos.bank.v1beta1.QueryTotalSupplyResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/bank/v1beta1/supply\x12\x8e\x01\n\x08SupplyOf\x12).cosmos.bank.v1beta1.QuerySupplyOfRequest\x1a*.cosmos.bank.v1beta1.QuerySupplyOfResponse\"+\x82\xd3\xe4\x93\x02%\x12#/cosmos/bank/v1beta1/supply/{denom}\x12\x80\x01\n\x06Params\x12\'.cosmos.bank.v1beta1.QueryParamsRequest\x1a(.cosmos.bank.v1beta1.QueryParamsResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/bank/v1beta1/params\x12\xa6\x01\n\rDenomMetadata\x12..cosmos.bank.v1beta1.QueryDenomMetadataRequest\x1a/.cosmos.bank.v1beta1.QueryDenomMetadataResponse\"4\x82\xd3\xe4\x93\x02.\x12,/cosmos/bank/v1beta1/denoms_metadata/{denom}\x12\xa1\x01\n\x0e\x44\x65nomsMetadata\x12/.cosmos.bank.v1beta1.QueryDenomsMetadataRequest\x1a\x30.cosmos.bank.v1beta1.QueryDenomsMetadataResponse\",\x82\xd3\xe4\x93\x02&\x12$/cosmos/bank/v1beta1/denoms_metadataB+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3' + serialized_pb=b'\n\x1f\x63osmos/bank/v1beta1/query.proto\x12\x13\x63osmos.bank.v1beta1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1e\x63osmos/bank/v1beta1/bank.proto\"?\n\x13QueryBalanceRequest\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\r\n\x05\x64\x65nom\x18\x02 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"B\n\x14QueryBalanceResponse\x12*\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.Coin\"p\n\x17QueryAllBalancesRequest\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\xb6\x01\n\x18QueryAllBalancesResponse\x12]\n\x08\x62\x61lances\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"_\n\x17QueryTotalSupplyRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\xb4\x01\n\x18QueryTotalSupplyResponse\x12[\n\x06supply\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"%\n\x14QuerySupplyOfRequest\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\"H\n\x15QuerySupplyOfResponse\x12/\n\x06\x61mount\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00\"\x14\n\x12QueryParamsRequest\"H\n\x13QueryParamsResponse\x12\x31\n\x06params\x18\x01 \x01(\x0b\x32\x1b.cosmos.bank.v1beta1.ParamsB\x04\xc8\xde\x1f\x00\"X\n\x1aQueryDenomsMetadataRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\x92\x01\n\x1bQueryDenomsMetadataResponse\x12\x36\n\tmetadatas\x18\x01 \x03(\x0b\x32\x1d.cosmos.bank.v1beta1.MetadataB\x04\xc8\xde\x1f\x00\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"*\n\x19QueryDenomMetadataRequest\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\"S\n\x1aQueryDenomMetadataResponse\x12\x35\n\x08metadata\x18\x01 \x01(\x0b\x32\x1d.cosmos.bank.v1beta1.MetadataB\x04\xc8\xde\x1f\x00\x32\xb2\x08\n\x05Query\x12\x97\x01\n\x07\x42\x61lance\x12(.cosmos.bank.v1beta1.QueryBalanceRequest\x1a).cosmos.bank.v1beta1.QueryBalanceResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//cosmos/bank/v1beta1/balances/{address}/{denom}\x12\x9b\x01\n\x0b\x41llBalances\x12,.cosmos.bank.v1beta1.QueryAllBalancesRequest\x1a-.cosmos.bank.v1beta1.QueryAllBalancesResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/bank/v1beta1/balances/{address}\x12\x8f\x01\n\x0bTotalSupply\x12,.cosmos.bank.v1beta1.QueryTotalSupplyRequest\x1a-.cosmos.bank.v1beta1.QueryTotalSupplyResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/bank/v1beta1/supply\x12\x8e\x01\n\x08SupplyOf\x12).cosmos.bank.v1beta1.QuerySupplyOfRequest\x1a*.cosmos.bank.v1beta1.QuerySupplyOfResponse\"+\x82\xd3\xe4\x93\x02%\x12#/cosmos/bank/v1beta1/supply/{denom}\x12\x80\x01\n\x06Params\x12\'.cosmos.bank.v1beta1.QueryParamsRequest\x1a(.cosmos.bank.v1beta1.QueryParamsResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/cosmos/bank/v1beta1/params\x12\xa6\x01\n\rDenomMetadata\x12..cosmos.bank.v1beta1.QueryDenomMetadataRequest\x1a/.cosmos.bank.v1beta1.QueryDenomMetadataResponse\"4\x82\xd3\xe4\x93\x02.\x12,/cosmos/bank/v1beta1/denoms_metadata/{denom}\x12\xa1\x01\n\x0e\x44\x65nomsMetadata\x12/.cosmos.bank.v1beta1.QueryDenomsMetadataRequest\x1a\x30.cosmos.bank.v1beta1.QueryDenomsMetadataResponse\",\x82\xd3\xe4\x93\x02&\x12$/cosmos/bank/v1beta1/denoms_metadataB+Z)github.com/cosmos/cosmos-sdk/x/bank/typesb\x06proto3' , dependencies=[cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,cosmos_dot_bank_dot_v1beta1_dot_bank__pb2.DESCRIPTOR,]) @@ -188,20 +188,27 @@ containing_type=None, create_key=_descriptor._internal_create_key, fields=[ + _descriptor.FieldDescriptor( + name='pagination', full_name='cosmos.bank.v1beta1.QueryTotalSupplyRequest.pagination', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + serialized_options=b'\350\240\037\000\210\240\037\000', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=648, - serialized_end=673, + serialized_end=743, ) @@ -220,6 +227,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pagination', full_name='cosmos.bank.v1beta1.QueryTotalSupplyResponse.pagination', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -232,8 +246,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=675, - serialized_end=794, + serialized_start=746, + serialized_end=926, ) @@ -264,8 +278,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=796, - serialized_end=833, + serialized_start=928, + serialized_end=965, ) @@ -296,8 +310,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=835, - serialized_end=907, + serialized_start=967, + serialized_end=1039, ) @@ -321,8 +335,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=909, - serialized_end=929, + serialized_start=1041, + serialized_end=1061, ) @@ -353,8 +367,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=931, - serialized_end=1003, + serialized_start=1063, + serialized_end=1135, ) @@ -385,8 +399,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1005, - serialized_end=1093, + serialized_start=1137, + serialized_end=1225, ) @@ -424,8 +438,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1096, - serialized_end=1242, + serialized_start=1228, + serialized_end=1374, ) @@ -456,8 +470,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1244, - serialized_end=1286, + serialized_start=1376, + serialized_end=1418, ) @@ -488,15 +502,17 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1288, - serialized_end=1371, + serialized_start=1420, + serialized_end=1503, ) _QUERYBALANCERESPONSE.fields_by_name['balance'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN _QUERYALLBALANCESREQUEST.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGEREQUEST _QUERYALLBALANCESRESPONSE.fields_by_name['balances'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN _QUERYALLBALANCESRESPONSE.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGERESPONSE +_QUERYTOTALSUPPLYREQUEST.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGEREQUEST _QUERYTOTALSUPPLYRESPONSE.fields_by_name['supply'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN +_QUERYTOTALSUPPLYRESPONSE.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGERESPONSE _QUERYSUPPLYOFRESPONSE.fields_by_name['amount'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN _QUERYPARAMSRESPONSE.fields_by_name['params'].message_type = cosmos_dot_bank_dot_v1beta1_dot_bank__pb2._PARAMS _QUERYDENOMSMETADATAREQUEST.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGEREQUEST @@ -622,6 +638,7 @@ _QUERYBALANCEREQUEST._options = None _QUERYALLBALANCESREQUEST._options = None _QUERYALLBALANCESRESPONSE.fields_by_name['balances']._options = None +_QUERYTOTALSUPPLYREQUEST._options = None _QUERYTOTALSUPPLYRESPONSE.fields_by_name['supply']._options = None _QUERYSUPPLYOFRESPONSE.fields_by_name['amount']._options = None _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None @@ -635,8 +652,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1374, - serialized_end=2448, + serialized_start=1506, + serialized_end=2580, methods=[ _descriptor.MethodDescriptor( name='Balance', diff --git a/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi deleted file mode 100644 index 3d0ea0f..0000000 --- a/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,215 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.bank.v1beta1.bank_pb2 -import cosmos.base.query.v1beta1.pagination_pb2 -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryBalanceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - DENOM_FIELD_NUMBER: builtins.int - address: typing.Text = ... - denom: typing.Text = ... - - def __init__(self, - *, - address : typing.Text = ..., - denom : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"denom",b"denom"]) -> None: ... -global___QueryBalanceRequest = QueryBalanceRequest - -class QueryBalanceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BALANCE_FIELD_NUMBER: builtins.int - - @property - def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - def __init__(self, - *, - balance : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"balance",b"balance"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance"]) -> None: ... -global___QueryBalanceResponse = QueryBalanceResponse - -class QueryAllBalancesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - address: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - address : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"pagination",b"pagination"]) -> None: ... -global___QueryAllBalancesRequest = QueryAllBalancesRequest - -class QueryAllBalancesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BALANCES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - balances : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"balances",b"balances",u"pagination",b"pagination"]) -> None: ... -global___QueryAllBalancesResponse = QueryAllBalancesResponse - -class QueryTotalSupplyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryTotalSupplyRequest = QueryTotalSupplyRequest - -class QueryTotalSupplyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SUPPLY_FIELD_NUMBER: builtins.int - - @property - def supply(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - supply : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"supply",b"supply"]) -> None: ... -global___QueryTotalSupplyResponse = QueryTotalSupplyResponse - -class QuerySupplyOfRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_FIELD_NUMBER: builtins.int - denom: typing.Text = ... - - def __init__(self, - *, - denom : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom"]) -> None: ... -global___QuerySupplyOfRequest = QuerySupplyOfRequest - -class QuerySupplyOfResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - AMOUNT_FIELD_NUMBER: builtins.int - - @property - def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - def __init__(self, - *, - amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> None: ... -global___QuerySupplyOfResponse = QuerySupplyOfResponse - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.bank.v1beta1.bank_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse - -class QueryDenomsMetadataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... -global___QueryDenomsMetadataRequest = QueryDenomsMetadataRequest - -class QueryDenomsMetadataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - METADATAS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def metadatas(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Metadata]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - metadatas : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Metadata]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"metadatas",b"metadatas",u"pagination",b"pagination"]) -> None: ... -global___QueryDenomsMetadataResponse = QueryDenomsMetadataResponse - -class QueryDenomMetadataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_FIELD_NUMBER: builtins.int - denom: typing.Text = ... - - def __init__(self, - *, - denom : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom"]) -> None: ... -global___QueryDenomMetadataRequest = QueryDenomMetadataRequest - -class QueryDenomMetadataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - METADATA_FIELD_NUMBER: builtins.int - - @property - def metadata(self) -> cosmos.bank.v1beta1.bank_pb2.Metadata: ... - - def __init__(self, - *, - metadata : typing.Optional[cosmos.bank.v1beta1.bank_pb2.Metadata] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> None: ... -global___QueryDenomMetadataResponse = QueryDenomMetadataResponse diff --git a/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 4ca6e9e..0000000 --- a/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Balance:grpc.UnaryUnaryMultiCallable[ - global___QueryBalanceRequest, - global___QueryBalanceResponse] = ... - - AllBalances:grpc.UnaryUnaryMultiCallable[ - global___QueryAllBalancesRequest, - global___QueryAllBalancesResponse] = ... - - TotalSupply:grpc.UnaryUnaryMultiCallable[ - global___QueryTotalSupplyRequest, - global___QueryTotalSupplyResponse] = ... - - SupplyOf:grpc.UnaryUnaryMultiCallable[ - global___QuerySupplyOfRequest, - global___QuerySupplyOfResponse] = ... - - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - DenomMetadata:grpc.UnaryUnaryMultiCallable[ - global___QueryDenomMetadataRequest, - global___QueryDenomMetadataResponse] = ... - - DenomsMetadata:grpc.UnaryUnaryMultiCallable[ - global___QueryDenomsMetadataRequest, - global___QueryDenomsMetadataResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Balance(self, - request: global___QueryBalanceRequest, - context: grpc.ServicerContext, - ) -> global___QueryBalanceResponse: ... - - @abc.abstractmethod - def AllBalances(self, - request: global___QueryAllBalancesRequest, - context: grpc.ServicerContext, - ) -> global___QueryAllBalancesResponse: ... - - @abc.abstractmethod - def TotalSupply(self, - request: global___QueryTotalSupplyRequest, - context: grpc.ServicerContext, - ) -> global___QueryTotalSupplyResponse: ... - - @abc.abstractmethod - def SupplyOf(self, - request: global___QuerySupplyOfRequest, - context: grpc.ServicerContext, - ) -> global___QuerySupplyOfResponse: ... - - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - @abc.abstractmethod - def DenomMetadata(self, - request: global___QueryDenomMetadataRequest, - context: grpc.ServicerContext, - ) -> global___QueryDenomMetadataResponse: ... - - @abc.abstractmethod - def DenomsMetadata(self, - request: global___QueryDenomsMetadataRequest, - context: grpc.ServicerContext, - ) -> global___QueryDenomsMetadataResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi deleted file mode 100644 index e3a28aa..0000000 --- a/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,67 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.bank.v1beta1.bank_pb2 -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgSend(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - FROM_ADDRESS_FIELD_NUMBER: builtins.int - TO_ADDRESS_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - from_address: typing.Text = ... - to_address: typing.Text = ... - - @property - def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - from_address : typing.Text = ..., - to_address : typing.Text = ..., - amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"from_address",b"from_address",u"to_address",b"to_address"]) -> None: ... -global___MsgSend = MsgSend - -class MsgSendResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgSendResponse = MsgSendResponse - -class MsgMultiSend(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INPUTS_FIELD_NUMBER: builtins.int - OUTPUTS_FIELD_NUMBER: builtins.int - - @property - def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Input]: ... - - @property - def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Output]: ... - - def __init__(self, - *, - inputs : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Input]] = ..., - outputs : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Output]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"inputs",b"inputs",u"outputs",b"outputs"]) -> None: ... -global___MsgMultiSend = MsgMultiSend - -class MsgMultiSendResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgMultiSendResponse = MsgMultiSendResponse diff --git a/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index 506e063..0000000 --- a/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,34 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Send:grpc.UnaryUnaryMultiCallable[ - global___MsgSend, - global___MsgSendResponse] = ... - - MultiSend:grpc.UnaryUnaryMultiCallable[ - global___MsgMultiSend, - global___MsgMultiSendResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Send(self, - request: global___MsgSend, - context: grpc.ServicerContext, - ) -> global___MsgSendResponse: ... - - @abc.abstractmethod - def MultiSend(self, - request: global___MsgMultiSend, - context: grpc.ServicerContext, - ) -> global___MsgMultiSendResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi deleted file mode 100644 index da311a6..0000000 --- a/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi +++ /dev/null @@ -1,229 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import tendermint.abci.types_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class TxResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - TXHASH_FIELD_NUMBER: builtins.int - CODESPACE_FIELD_NUMBER: builtins.int - CODE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - RAW_LOG_FIELD_NUMBER: builtins.int - LOGS_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - GAS_WANTED_FIELD_NUMBER: builtins.int - GAS_USED_FIELD_NUMBER: builtins.int - TX_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - height: builtins.int = ... - txhash: typing.Text = ... - codespace: typing.Text = ... - code: builtins.int = ... - data: typing.Text = ... - raw_log: typing.Text = ... - info: typing.Text = ... - gas_wanted: builtins.int = ... - gas_used: builtins.int = ... - timestamp: typing.Text = ... - - @property - def logs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ABCIMessageLog]: ... - - @property - def tx(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - height : builtins.int = ..., - txhash : typing.Text = ..., - codespace : typing.Text = ..., - code : builtins.int = ..., - data : typing.Text = ..., - raw_log : typing.Text = ..., - logs : typing.Optional[typing.Iterable[global___ABCIMessageLog]] = ..., - info : typing.Text = ..., - gas_wanted : builtins.int = ..., - gas_used : builtins.int = ..., - tx : typing.Optional[google.protobuf.any_pb2.Any] = ..., - timestamp : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"height",b"height",u"info",b"info",u"logs",b"logs",u"raw_log",b"raw_log",u"timestamp",b"timestamp",u"tx",b"tx",u"txhash",b"txhash"]) -> None: ... -global___TxResponse = TxResponse - -class ABCIMessageLog(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MSG_INDEX_FIELD_NUMBER: builtins.int - LOG_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - msg_index: builtins.int = ... - log: typing.Text = ... - - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringEvent]: ... - - def __init__(self, - *, - msg_index : builtins.int = ..., - log : typing.Text = ..., - events : typing.Optional[typing.Iterable[global___StringEvent]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events",u"log",b"log",u"msg_index",b"msg_index"]) -> None: ... -global___ABCIMessageLog = ABCIMessageLog - -class StringEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TYPE_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - type: typing.Text = ... - - @property - def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Attribute]: ... - - def __init__(self, - *, - type : typing.Text = ..., - attributes : typing.Optional[typing.Iterable[global___Attribute]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"type",b"type"]) -> None: ... -global___StringEvent = StringEvent - -class Attribute(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: typing.Text = ... - value: typing.Text = ... - - def __init__(self, - *, - key : typing.Text = ..., - value : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... -global___Attribute = Attribute - -class GasInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - GAS_WANTED_FIELD_NUMBER: builtins.int - GAS_USED_FIELD_NUMBER: builtins.int - gas_wanted: builtins.int = ... - gas_used: builtins.int = ... - - def __init__(self, - *, - gas_wanted : builtins.int = ..., - gas_used : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted"]) -> None: ... -global___GasInfo = GasInfo - -class Result(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_FIELD_NUMBER: builtins.int - LOG_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - data: builtins.bytes = ... - log: typing.Text = ... - - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.abci.types_pb2.Event]: ... - - def __init__(self, - *, - data : builtins.bytes = ..., - log : typing.Text = ..., - events : typing.Optional[typing.Iterable[tendermint.abci.types_pb2.Event]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"events",b"events",u"log",b"log"]) -> None: ... -global___Result = Result - -class SimulationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - GAS_INFO_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - - @property - def gas_info(self) -> global___GasInfo: ... - - @property - def result(self) -> global___Result: ... - - def __init__(self, - *, - gas_info : typing.Optional[global___GasInfo] = ..., - result : typing.Optional[global___Result] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> None: ... -global___SimulationResponse = SimulationResponse - -class MsgData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MSG_TYPE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - msg_type: typing.Text = ... - data: builtins.bytes = ... - - def __init__(self, - *, - msg_type : typing.Text = ..., - data : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"msg_type",b"msg_type"]) -> None: ... -global___MsgData = MsgData - -class TxMsgData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_FIELD_NUMBER: builtins.int - - @property - def data(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgData]: ... - - def __init__(self, - *, - data : typing.Optional[typing.Iterable[global___MsgData]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data"]) -> None: ... -global___TxMsgData = TxMsgData - -class SearchTxsResult(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TOTAL_COUNT_FIELD_NUMBER: builtins.int - COUNT_FIELD_NUMBER: builtins.int - PAGE_NUMBER_FIELD_NUMBER: builtins.int - PAGE_TOTAL_FIELD_NUMBER: builtins.int - LIMIT_FIELD_NUMBER: builtins.int - TXS_FIELD_NUMBER: builtins.int - total_count: builtins.int = ... - count: builtins.int = ... - page_number: builtins.int = ... - page_total: builtins.int = ... - limit: builtins.int = ... - - @property - def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TxResponse]: ... - - def __init__(self, - *, - total_count : builtins.int = ..., - count : builtins.int = ..., - page_number : builtins.int = ..., - page_total : builtins.int = ..., - limit : builtins.int = ..., - txs : typing.Optional[typing.Iterable[global___TxResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"count",b"count",u"limit",b"limit",u"page_number",b"page_number",u"page_total",b"page_total",u"total_count",b"total_count",u"txs",b"txs"]) -> None: ... -global___SearchTxsResult = SearchTxsResult diff --git a/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi deleted file mode 100644 index a1bde76..0000000 --- a/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .abci_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi deleted file mode 100644 index 4a1f3ad..0000000 --- a/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi +++ /dev/null @@ -1,41 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Pairs(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAIRS_FIELD_NUMBER: builtins.int - - @property - def pairs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Pair]: ... - - def __init__(self, - *, - pairs : typing.Optional[typing.Iterable[global___Pair]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pairs",b"pairs"]) -> None: ... -global___Pairs = Pairs - -class Pair(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - value: builtins.bytes = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - value : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... -global___Pair = Pair diff --git a/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi deleted file mode 100644 index 7b68bcf..0000000 --- a/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .kv_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.py b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.py index 3b79553..7bebe8a 100644 --- a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.py +++ b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.py @@ -19,7 +19,7 @@ syntax='proto3', serialized_options=b'Z(github.com/cosmos/cosmos-sdk/types/query', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n*cosmos/base/query/v1beta1/pagination.proto\x12\x19\x63osmos.base.query.v1beta1\"N\n\x0bPageRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x0e\n\x06offset\x18\x02 \x01(\x04\x12\r\n\x05limit\x18\x03 \x01(\x04\x12\x13\n\x0b\x63ount_total\x18\x04 \x01(\x08\"/\n\x0cPageResponse\x12\x10\n\x08next_key\x18\x01 \x01(\x0c\x12\r\n\x05total\x18\x02 \x01(\x04\x42*Z(github.com/cosmos/cosmos-sdk/types/queryb\x06proto3' + serialized_pb=b'\n*cosmos/base/query/v1beta1/pagination.proto\x12\x19\x63osmos.base.query.v1beta1\"_\n\x0bPageRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x0e\n\x06offset\x18\x02 \x01(\x04\x12\r\n\x05limit\x18\x03 \x01(\x04\x12\x13\n\x0b\x63ount_total\x18\x04 \x01(\x08\x12\x0f\n\x07reverse\x18\x05 \x01(\x08\"/\n\x0cPageResponse\x12\x10\n\x08next_key\x18\x01 \x01(\x0c\x12\r\n\x05total\x18\x02 \x01(\x04\x42*Z(github.com/cosmos/cosmos-sdk/types/queryb\x06proto3' ) @@ -61,6 +61,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='reverse', full_name='cosmos.base.query.v1beta1.PageRequest.reverse', index=4, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -74,7 +81,7 @@ oneofs=[ ], serialized_start=73, - serialized_end=151, + serialized_end=168, ) @@ -112,8 +119,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=153, - serialized_end=200, + serialized_start=170, + serialized_end=217, ) DESCRIPTOR.message_types_by_name['PageRequest'] = _PAGEREQUEST diff --git a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi deleted file mode 100644 index dacfe64..0000000 --- a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi +++ /dev/null @@ -1,46 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class PageRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - OFFSET_FIELD_NUMBER: builtins.int - LIMIT_FIELD_NUMBER: builtins.int - COUNT_TOTAL_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - offset: builtins.int = ... - limit: builtins.int = ... - count_total: builtins.bool = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - offset : builtins.int = ..., - limit : builtins.int = ..., - count_total : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"count_total",b"count_total",u"key",b"key",u"limit",b"limit",u"offset",b"offset"]) -> None: ... -global___PageRequest = PageRequest - -class PageResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NEXT_KEY_FIELD_NUMBER: builtins.int - TOTAL_FIELD_NUMBER: builtins.int - next_key: builtins.bytes = ... - total: builtins.int = ... - - def __init__(self, - *, - next_key : builtins.bytes = ..., - total : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"next_key",b"next_key",u"total",b"total"]) -> None: ... -global___PageResponse = PageResponse diff --git a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi deleted file mode 100644 index fd9e1b9..0000000 --- a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .pagination_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi deleted file mode 100644 index cbedaa0..0000000 --- a/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class ListAllInterfacesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___ListAllInterfacesRequest = ListAllInterfacesRequest - -class ListAllInterfacesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INTERFACE_NAMES_FIELD_NUMBER: builtins.int - - @property - def interface_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - interface_names : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"interface_names",b"interface_names"]) -> None: ... -global___ListAllInterfacesResponse = ListAllInterfacesResponse - -class ListImplementationsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INTERFACE_NAME_FIELD_NUMBER: builtins.int - interface_name: typing.Text = ... - - def __init__(self, - *, - interface_name : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"interface_name",b"interface_name"]) -> None: ... -global___ListImplementationsRequest = ListImplementationsRequest - -class ListImplementationsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - IMPLEMENTATION_MESSAGE_NAMES_FIELD_NUMBER: builtins.int - - @property - def implementation_message_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - implementation_message_names : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"implementation_message_names",b"implementation_message_names"]) -> None: ... -global___ListImplementationsResponse = ListImplementationsResponse diff --git a/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi deleted file mode 100644 index a78dd40..0000000 --- a/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi +++ /dev/null @@ -1,34 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .reflection_pb2 import * -class ReflectionServiceStub: - def __init__(self, channel: grpc.Channel) -> None: ... - ListAllInterfaces:grpc.UnaryUnaryMultiCallable[ - global___ListAllInterfacesRequest, - global___ListAllInterfacesResponse] = ... - - ListImplementations:grpc.UnaryUnaryMultiCallable[ - global___ListImplementationsRequest, - global___ListImplementationsResponse] = ... - - -class ReflectionServiceServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def ListAllInterfaces(self, - request: global___ListAllInterfacesRequest, - context: grpc.ServicerContext, - ) -> global___ListAllInterfacesResponse: ... - - @abc.abstractmethod - def ListImplementations(self, - request: global___ListImplementationsRequest, - context: grpc.ServicerContext, - ) -> global___ListImplementationsResponse: ... - - -def add_ReflectionServiceServicer_to_server(servicer: ReflectionServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.py b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.py new file mode 100644 index 0000000..1df5259 --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.py @@ -0,0 +1,1231 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/reflection/v2alpha1/reflection.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/base/reflection/v2alpha1/reflection.proto', + package='cosmos.base.reflection.v2alpha1', + syntax='proto3', + serialized_options=b'Z\n\x15QueryMethodDescriptor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0f\x66ull_query_path\x18\x02 \x01(\t2\xa7\n\n\x11ReflectionService\x12\xcb\x01\n\x12GetAuthnDescriptor\x12:.cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest\x1a;.cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/base/reflection/v1beta1/app_descriptor/authn\x12\xcb\x01\n\x12GetChainDescriptor\x12:.cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest\x1a;.cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/base/reflection/v1beta1/app_descriptor/chain\x12\xcb\x01\n\x12GetCodecDescriptor\x12:.cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest\x1a;.cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/cosmos/base/reflection/v1beta1/app_descriptor/codec\x12\xeb\x01\n\x1aGetConfigurationDescriptor\x12\x42.cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest\x1a\x43.cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse\"D\x82\xd3\xe4\x93\x02>\x12\x12Z\022\022 global___Metadata: ... - - def __init__(self, - *, - height : builtins.int = ..., - format : builtins.int = ..., - chunks : builtins.int = ..., - hash : builtins.bytes = ..., - metadata : typing.Optional[global___Metadata] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chunks",b"chunks",u"format",b"format",u"hash",b"hash",u"height",b"height",u"metadata",b"metadata"]) -> None: ... -global___Snapshot = Snapshot - -class Metadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHUNK_HASHES_FIELD_NUMBER: builtins.int - - @property - def chunk_hashes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - - def __init__(self, - *, - chunk_hashes : typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chunk_hashes",b"chunk_hashes"]) -> None: ... -global___Metadata = Metadata diff --git a/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi deleted file mode 100644 index 5ccfeb9..0000000 --- a/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .snapshot_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi deleted file mode 100644 index 64e1fc4..0000000 --- a/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class CommitInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VERSION_FIELD_NUMBER: builtins.int - STORE_INFOS_FIELD_NUMBER: builtins.int - version: builtins.int = ... - - @property - def store_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StoreInfo]: ... - - def __init__(self, - *, - version : builtins.int = ..., - store_infos : typing.Optional[typing.Iterable[global___StoreInfo]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"store_infos",b"store_infos",u"version",b"version"]) -> None: ... -global___CommitInfo = CommitInfo - -class StoreInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - COMMIT_ID_FIELD_NUMBER: builtins.int - name: typing.Text = ... - - @property - def commit_id(self) -> global___CommitID: ... - - def __init__(self, - *, - name : typing.Text = ..., - commit_id : typing.Optional[global___CommitID] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"commit_id",b"commit_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commit_id",b"commit_id",u"name",b"name"]) -> None: ... -global___StoreInfo = StoreInfo - -class CommitID(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VERSION_FIELD_NUMBER: builtins.int - HASH_FIELD_NUMBER: builtins.int - version: builtins.int = ... - hash: builtins.bytes = ... - - def __init__(self, - *, - version : builtins.int = ..., - hash : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"version",b"version"]) -> None: ... -global___CommitID = CommitID diff --git a/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi deleted file mode 100644 index a0687ed..0000000 --- a/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .commit_info_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/store/v1beta1/listening_pb2.py b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2.py new file mode 100644 index 0000000..129e150 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2.py @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/base/store/v1beta1/listening.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/base/store/v1beta1/listening.proto', + package='cosmos.base.store.v1beta1', + syntax='proto3', + serialized_options=b'Z(github.com/cosmos/cosmos-sdk/store/types', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n)cosmos/base/store/v1beta1/listening.proto\x12\x19\x63osmos.base.store.v1beta1\"L\n\x0bStoreKVPair\x12\x11\n\tstore_key\x18\x01 \x01(\t\x12\x0e\n\x06\x64\x65lete\x18\x02 \x01(\x08\x12\x0b\n\x03key\x18\x03 \x01(\x0c\x12\r\n\x05value\x18\x04 \x01(\x0c\x42*Z(github.com/cosmos/cosmos-sdk/store/typesb\x06proto3' +) + + + + +_STOREKVPAIR = _descriptor.Descriptor( + name='StoreKVPair', + full_name='cosmos.base.store.v1beta1.StoreKVPair', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='store_key', full_name='cosmos.base.store.v1beta1.StoreKVPair.store_key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='delete', full_name='cosmos.base.store.v1beta1.StoreKVPair.delete', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='key', full_name='cosmos.base.store.v1beta1.StoreKVPair.key', index=2, + number=3, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='value', full_name='cosmos.base.store.v1beta1.StoreKVPair.value', index=3, + number=4, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=72, + serialized_end=148, +) + +DESCRIPTOR.message_types_by_name['StoreKVPair'] = _STOREKVPAIR +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +StoreKVPair = _reflection.GeneratedProtocolMessageType('StoreKVPair', (_message.Message,), { + 'DESCRIPTOR' : _STOREKVPAIR, + '__module__' : 'cosmos.base.store.v1beta1.listening_pb2' + # @@protoc_insertion_point(class_scope:cosmos.base.store.v1beta1.StoreKVPair) + }) +_sym_db.RegisterMessage(StoreKVPair) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.py b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi deleted file mode 100644 index 6a9b55a..0000000 --- a/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi +++ /dev/null @@ -1,65 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class SnapshotItem(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - STORE_FIELD_NUMBER: builtins.int - IAVL_FIELD_NUMBER: builtins.int - - @property - def store(self) -> global___SnapshotStoreItem: ... - - @property - def iavl(self) -> global___SnapshotIAVLItem: ... - - def __init__(self, - *, - store : typing.Optional[global___SnapshotStoreItem] = ..., - iavl : typing.Optional[global___SnapshotIAVLItem] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"iavl",b"iavl",u"item",b"item",u"store",b"store"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"iavl",b"iavl",u"item",b"item",u"store",b"store"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"item",b"item"]) -> typing.Optional[typing_extensions.Literal["store","iavl"]]: ... -global___SnapshotItem = SnapshotItem - -class SnapshotStoreItem(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - name: typing.Text = ... - - def __init__(self, - *, - name : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... -global___SnapshotStoreItem = SnapshotStoreItem - -class SnapshotIAVLItem(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - value: builtins.bytes = ... - version: builtins.int = ... - height: builtins.int = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - value : builtins.bytes = ..., - version : builtins.int = ..., - height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"key",b"key",u"value",b"value",u"version",b"version"]) -> None: ... -global___SnapshotIAVLItem = SnapshotIAVLItem diff --git a/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi deleted file mode 100644 index 5ccfeb9..0000000 --- a/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .snapshot_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi deleted file mode 100644 index 8e889d9..0000000 --- a/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,278 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import tendermint.p2p.types_pb2 -import tendermint.types.block_pb2 -import tendermint.types.types_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GetValidatorSetByHeightRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - height: builtins.int = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - height : builtins.int = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> None: ... -global___GetValidatorSetByHeightRequest = GetValidatorSetByHeightRequest - -class GetValidatorSetByHeightResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_HEIGHT_FIELD_NUMBER: builtins.int - VALIDATORS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - block_height: builtins.int = ... - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - block_height : builtins.int = ..., - validators : typing.Optional[typing.Iterable[global___Validator]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_height",b"block_height",u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... -global___GetValidatorSetByHeightResponse = GetValidatorSetByHeightResponse - -class GetLatestValidatorSetRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... -global___GetLatestValidatorSetRequest = GetLatestValidatorSetRequest - -class GetLatestValidatorSetResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_HEIGHT_FIELD_NUMBER: builtins.int - VALIDATORS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - block_height: builtins.int = ... - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - block_height : builtins.int = ..., - validators : typing.Optional[typing.Iterable[global___Validator]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_height",b"block_height",u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... -global___GetLatestValidatorSetResponse = GetLatestValidatorSetResponse - -class Validator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - PUB_KEY_FIELD_NUMBER: builtins.int - VOTING_POWER_FIELD_NUMBER: builtins.int - PROPOSER_PRIORITY_FIELD_NUMBER: builtins.int - address: typing.Text = ... - voting_power: builtins.int = ... - proposer_priority: builtins.int = ... - - @property - def pub_key(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - address : typing.Text = ..., - pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., - voting_power : builtins.int = ..., - proposer_priority : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"proposer_priority",b"proposer_priority",u"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... -global___Validator = Validator - -class GetBlockByHeightRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - height: builtins.int = ... - - def __init__(self, - *, - height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... -global___GetBlockByHeightRequest = GetBlockByHeightRequest - -class GetBlockByHeightResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_ID_FIELD_NUMBER: builtins.int - BLOCK_FIELD_NUMBER: builtins.int - - @property - def block_id(self) -> tendermint.types.types_pb2.BlockID: ... - - @property - def block(self) -> tendermint.types.block_pb2.Block: ... - - def __init__(self, - *, - block_id : typing.Optional[tendermint.types.types_pb2.BlockID] = ..., - block : typing.Optional[tendermint.types.block_pb2.Block] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> None: ... -global___GetBlockByHeightResponse = GetBlockByHeightResponse - -class GetLatestBlockRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___GetLatestBlockRequest = GetLatestBlockRequest - -class GetLatestBlockResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_ID_FIELD_NUMBER: builtins.int - BLOCK_FIELD_NUMBER: builtins.int - - @property - def block_id(self) -> tendermint.types.types_pb2.BlockID: ... - - @property - def block(self) -> tendermint.types.block_pb2.Block: ... - - def __init__(self, - *, - block_id : typing.Optional[tendermint.types.types_pb2.BlockID] = ..., - block : typing.Optional[tendermint.types.block_pb2.Block] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> None: ... -global___GetLatestBlockResponse = GetLatestBlockResponse - -class GetSyncingRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___GetSyncingRequest = GetSyncingRequest - -class GetSyncingResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SYNCING_FIELD_NUMBER: builtins.int - syncing: builtins.bool = ... - - def __init__(self, - *, - syncing : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"syncing",b"syncing"]) -> None: ... -global___GetSyncingResponse = GetSyncingResponse - -class GetNodeInfoRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___GetNodeInfoRequest = GetNodeInfoRequest - -class GetNodeInfoResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DEFAULT_NODE_INFO_FIELD_NUMBER: builtins.int - APPLICATION_VERSION_FIELD_NUMBER: builtins.int - - @property - def default_node_info(self) -> tendermint.p2p.types_pb2.DefaultNodeInfo: ... - - @property - def application_version(self) -> global___VersionInfo: ... - - def __init__(self, - *, - default_node_info : typing.Optional[tendermint.p2p.types_pb2.DefaultNodeInfo] = ..., - application_version : typing.Optional[global___VersionInfo] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"application_version",b"application_version",u"default_node_info",b"default_node_info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"application_version",b"application_version",u"default_node_info",b"default_node_info"]) -> None: ... -global___GetNodeInfoResponse = GetNodeInfoResponse - -class VersionInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - APP_NAME_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - GIT_COMMIT_FIELD_NUMBER: builtins.int - BUILD_TAGS_FIELD_NUMBER: builtins.int - GO_VERSION_FIELD_NUMBER: builtins.int - BUILD_DEPS_FIELD_NUMBER: builtins.int - COSMOS_SDK_VERSION_FIELD_NUMBER: builtins.int - name: typing.Text = ... - app_name: typing.Text = ... - version: typing.Text = ... - git_commit: typing.Text = ... - build_tags: typing.Text = ... - go_version: typing.Text = ... - cosmos_sdk_version: typing.Text = ... - - @property - def build_deps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Module]: ... - - def __init__(self, - *, - name : typing.Text = ..., - app_name : typing.Text = ..., - version : typing.Text = ..., - git_commit : typing.Text = ..., - build_tags : typing.Text = ..., - go_version : typing.Text = ..., - build_deps : typing.Optional[typing.Iterable[global___Module]] = ..., - cosmos_sdk_version : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app_name",b"app_name",u"build_deps",b"build_deps",u"build_tags",b"build_tags",u"cosmos_sdk_version",b"cosmos_sdk_version",u"git_commit",b"git_commit",u"go_version",b"go_version",u"name",b"name",u"version",b"version"]) -> None: ... -global___VersionInfo = VersionInfo - -class Module(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - SUM_FIELD_NUMBER: builtins.int - path: typing.Text = ... - version: typing.Text = ... - sum: typing.Text = ... - - def __init__(self, - *, - path : typing.Text = ..., - version : typing.Text = ..., - sum : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"path",b"path",u"sum",b"sum",u"version",b"version"]) -> None: ... -global___Module = Module diff --git a/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 88ed54f..0000000 --- a/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,74 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class ServiceStub: - def __init__(self, channel: grpc.Channel) -> None: ... - GetNodeInfo:grpc.UnaryUnaryMultiCallable[ - global___GetNodeInfoRequest, - global___GetNodeInfoResponse] = ... - - GetSyncing:grpc.UnaryUnaryMultiCallable[ - global___GetSyncingRequest, - global___GetSyncingResponse] = ... - - GetLatestBlock:grpc.UnaryUnaryMultiCallable[ - global___GetLatestBlockRequest, - global___GetLatestBlockResponse] = ... - - GetBlockByHeight:grpc.UnaryUnaryMultiCallable[ - global___GetBlockByHeightRequest, - global___GetBlockByHeightResponse] = ... - - GetLatestValidatorSet:grpc.UnaryUnaryMultiCallable[ - global___GetLatestValidatorSetRequest, - global___GetLatestValidatorSetResponse] = ... - - GetValidatorSetByHeight:grpc.UnaryUnaryMultiCallable[ - global___GetValidatorSetByHeightRequest, - global___GetValidatorSetByHeightResponse] = ... - - -class ServiceServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def GetNodeInfo(self, - request: global___GetNodeInfoRequest, - context: grpc.ServicerContext, - ) -> global___GetNodeInfoResponse: ... - - @abc.abstractmethod - def GetSyncing(self, - request: global___GetSyncingRequest, - context: grpc.ServicerContext, - ) -> global___GetSyncingResponse: ... - - @abc.abstractmethod - def GetLatestBlock(self, - request: global___GetLatestBlockRequest, - context: grpc.ServicerContext, - ) -> global___GetLatestBlockResponse: ... - - @abc.abstractmethod - def GetBlockByHeight(self, - request: global___GetBlockByHeightRequest, - context: grpc.ServicerContext, - ) -> global___GetBlockByHeightResponse: ... - - @abc.abstractmethod - def GetLatestValidatorSet(self, - request: global___GetLatestValidatorSetRequest, - context: grpc.ServicerContext, - ) -> global___GetLatestValidatorSetResponse: ... - - @abc.abstractmethod - def GetValidatorSetByHeight(self, - request: global___GetValidatorSetByHeightRequest, - context: grpc.ServicerContext, - ) -> global___GetValidatorSetByHeightResponse: ... - - -def add_ServiceServicer_to_server(servicer: ServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi b/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi deleted file mode 100644 index 214f2a0..0000000 --- a/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi +++ /dev/null @@ -1,65 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Coin(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - denom: typing.Text = ... - amount: typing.Text = ... - - def __init__(self, - *, - denom : typing.Text = ..., - amount : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom"]) -> None: ... -global___Coin = Coin - -class DecCoin(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - denom: typing.Text = ... - amount: typing.Text = ... - - def __init__(self, - *, - denom : typing.Text = ..., - amount : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom"]) -> None: ... -global___DecCoin = DecCoin - -class IntProto(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INT_FIELD_NUMBER: builtins.int - int: typing.Text = ... - - def __init__(self, - *, - int : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"int",b"int"]) -> None: ... -global___IntProto = IntProto - -class DecProto(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DEC_FIELD_NUMBER: builtins.int - dec: typing.Text = ... - - def __init__(self, - *, - dec : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"dec",b"dec"]) -> None: ... -global___DecProto = DecProto diff --git a/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi b/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi deleted file mode 100644 index 31aa72f..0000000 --- a/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .coin_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi b/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi deleted file mode 100644 index 04eadd9..0000000 --- a/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi +++ /dev/null @@ -1,53 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Capability(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INDEX_FIELD_NUMBER: builtins.int - index: builtins.int = ... - - def __init__(self, - *, - index : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index"]) -> None: ... -global___Capability = Capability - -class Owner(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MODULE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - module: typing.Text = ... - name: typing.Text = ... - - def __init__(self, - *, - module : typing.Text = ..., - name : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"module",b"module",u"name",b"name"]) -> None: ... -global___Owner = Owner - -class CapabilityOwners(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - OWNERS_FIELD_NUMBER: builtins.int - - @property - def owners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Owner]: ... - - def __init__(self, - *, - owners : typing.Optional[typing.Iterable[global___Owner]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"owners",b"owners"]) -> None: ... -global___CapabilityOwners = CapabilityOwners diff --git a/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi b/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi deleted file mode 100644 index 8fa6a5d..0000000 --- a/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .capability_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi deleted file mode 100644 index 707d56d..0000000 --- a/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,48 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.capability.v1beta1.capability_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisOwners(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INDEX_FIELD_NUMBER: builtins.int - INDEX_OWNERS_FIELD_NUMBER: builtins.int - index: builtins.int = ... - - @property - def index_owners(self) -> cosmos.capability.v1beta1.capability_pb2.CapabilityOwners: ... - - def __init__(self, - *, - index : builtins.int = ..., - index_owners : typing.Optional[cosmos.capability.v1beta1.capability_pb2.CapabilityOwners] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"index_owners",b"index_owners"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"index_owners",b"index_owners"]) -> None: ... -global___GenesisOwners = GenesisOwners - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INDEX_FIELD_NUMBER: builtins.int - OWNERS_FIELD_NUMBER: builtins.int - index: builtins.int = ... - - @property - def owners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GenesisOwners]: ... - - def __init__(self, - *, - index : builtins.int = ..., - owners : typing.Optional[typing.Iterable[global___GenesisOwners]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"owners",b"owners"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi deleted file mode 100644 index 1eda332..0000000 --- a/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,27 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONSTANT_FEE_FIELD_NUMBER: builtins.int - - @property - def constant_fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - def __init__(self, - *, - constant_fee : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"constant_fee",b"constant_fee"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"constant_fee",b"constant_fee"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi deleted file mode 100644 index bcabf8e..0000000 --- a/pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,36 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgVerifyInvariant(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SENDER_FIELD_NUMBER: builtins.int - INVARIANT_MODULE_NAME_FIELD_NUMBER: builtins.int - INVARIANT_ROUTE_FIELD_NUMBER: builtins.int - sender: typing.Text = ... - invariant_module_name: typing.Text = ... - invariant_route: typing.Text = ... - - def __init__(self, - *, - sender : typing.Text = ..., - invariant_module_name : typing.Text = ..., - invariant_route : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"invariant_module_name",b"invariant_module_name",u"invariant_route",b"invariant_route",u"sender",b"sender"]) -> None: ... -global___MsgVerifyInvariant = MsgVerifyInvariant - -class MsgVerifyInvariantResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgVerifyInvariantResponse = MsgVerifyInvariantResponse diff --git a/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index 53bc83d..0000000 --- a/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,24 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - VerifyInvariant:grpc.UnaryUnaryMultiCallable[ - global___MsgVerifyInvariant, - global___MsgVerifyInvariantResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def VerifyInvariant(self, - request: global___MsgVerifyInvariant, - context: grpc.ServicerContext, - ) -> global___MsgVerifyInvariantResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi b/pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi deleted file mode 100644 index f83b855..0000000 --- a/pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi +++ /dev/null @@ -1,34 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class PubKey(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... -global___PubKey = PubKey - -class PrivKey(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... -global___PrivKey = PrivKey diff --git a/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi deleted file mode 100644 index 10c7047..0000000 --- a/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi b/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi deleted file mode 100644 index b22f6f2..0000000 --- a/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi +++ /dev/null @@ -1,30 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class LegacyAminoPubKey(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - THRESHOLD_FIELD_NUMBER: builtins.int - PUBLIC_KEYS_FIELD_NUMBER: builtins.int - threshold: builtins.int = ... - - @property - def public_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... - - def __init__(self, - *, - threshold : builtins.int = ..., - public_keys : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"public_keys",b"public_keys",u"threshold",b"threshold"]) -> None: ... -global___LegacyAminoPubKey = LegacyAminoPubKey diff --git a/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi deleted file mode 100644 index 10c7047..0000000 --- a/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi deleted file mode 100644 index 0ed147c..0000000 --- a/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi +++ /dev/null @@ -1,41 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MultiSignature(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIGNATURES_FIELD_NUMBER: builtins.int - - @property - def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - - def __init__(self, - *, - signatures : typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"signatures",b"signatures"]) -> None: ... -global___MultiSignature = MultiSignature - -class CompactBitArray(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EXTRA_BITS_STORED_FIELD_NUMBER: builtins.int - ELEMS_FIELD_NUMBER: builtins.int - extra_bits_stored: builtins.int = ... - elems: builtins.bytes = ... - - def __init__(self, - *, - extra_bits_stored : builtins.int = ..., - elems : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"elems",b"elems",u"extra_bits_stored",b"extra_bits_stored"]) -> None: ... -global___CompactBitArray = CompactBitArray diff --git a/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi deleted file mode 100644 index ff338b4..0000000 --- a/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .multisig_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi deleted file mode 100644 index f83b855..0000000 --- a/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi +++ /dev/null @@ -1,34 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class PubKey(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... -global___PubKey = PubKey - -class PrivKey(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... -global___PrivKey = PrivKey diff --git a/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi deleted file mode 100644 index 10c7047..0000000 --- a/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/secp256r1/keys_pb2.py b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2.py new file mode 100644 index 0000000..1ada711 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2.py @@ -0,0 +1,115 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/crypto/secp256r1/keys.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/crypto/secp256r1/keys.proto', + package='cosmos.crypto.secp256r1', + syntax='proto3', + serialized_options=b'Z2github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1\310\343\036\001\330\341\036\000\310\341\036\000', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\"cosmos/crypto/secp256r1/keys.proto\x12\x17\x63osmos.crypto.secp256r1\x1a\x14gogoproto/gogo.proto\"\"\n\x06PubKey\x12\x18\n\x03key\x18\x01 \x01(\x0c\x42\x0b\xda\xde\x1f\x07\x65\x63\x64saPK\"&\n\x07PrivKey\x12\x1b\n\x06secret\x18\x01 \x01(\x0c\x42\x0b\xda\xde\x1f\x07\x65\x63\x64saSKB@Z2github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1\xc8\xe3\x1e\x01\xd8\xe1\x1e\x00\xc8\xe1\x1e\x00\x62\x06proto3' + , + dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,]) + + + + +_PUBKEY = _descriptor.Descriptor( + name='PubKey', + full_name='cosmos.crypto.secp256r1.PubKey', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='cosmos.crypto.secp256r1.PubKey.key', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\332\336\037\007ecdsaPK', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=85, + serialized_end=119, +) + + +_PRIVKEY = _descriptor.Descriptor( + name='PrivKey', + full_name='cosmos.crypto.secp256r1.PrivKey', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='secret', full_name='cosmos.crypto.secp256r1.PrivKey.secret', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\332\336\037\007ecdsaSK', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=159, +) + +DESCRIPTOR.message_types_by_name['PubKey'] = _PUBKEY +DESCRIPTOR.message_types_by_name['PrivKey'] = _PRIVKEY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PubKey = _reflection.GeneratedProtocolMessageType('PubKey', (_message.Message,), { + 'DESCRIPTOR' : _PUBKEY, + '__module__' : 'cosmos.crypto.secp256r1.keys_pb2' + # @@protoc_insertion_point(class_scope:cosmos.crypto.secp256r1.PubKey) + }) +_sym_db.RegisterMessage(PubKey) + +PrivKey = _reflection.GeneratedProtocolMessageType('PrivKey', (_message.Message,), { + 'DESCRIPTOR' : _PRIVKEY, + '__module__' : 'cosmos.crypto.secp256r1.keys_pb2' + # @@protoc_insertion_point(class_scope:cosmos.crypto.secp256r1.PrivKey) + }) +_sym_db.RegisterMessage(PrivKey) + + +DESCRIPTOR._options = None +_PUBKEY.fields_by_name['key']._options = None +_PRIVKEY.fields_by_name['secret']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.py b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi deleted file mode 100644 index 66ee83f..0000000 --- a/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi +++ /dev/null @@ -1,221 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMUNITY_TAX_FIELD_NUMBER: builtins.int - BASE_PROPOSER_REWARD_FIELD_NUMBER: builtins.int - BONUS_PROPOSER_REWARD_FIELD_NUMBER: builtins.int - WITHDRAW_ADDR_ENABLED_FIELD_NUMBER: builtins.int - community_tax: typing.Text = ... - base_proposer_reward: typing.Text = ... - bonus_proposer_reward: typing.Text = ... - withdraw_addr_enabled: builtins.bool = ... - - def __init__(self, - *, - community_tax : typing.Text = ..., - base_proposer_reward : typing.Text = ..., - bonus_proposer_reward : typing.Text = ..., - withdraw_addr_enabled : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base_proposer_reward",b"base_proposer_reward",u"bonus_proposer_reward",b"bonus_proposer_reward",u"community_tax",b"community_tax",u"withdraw_addr_enabled",b"withdraw_addr_enabled"]) -> None: ... -global___Params = Params - -class ValidatorHistoricalRewards(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CUMULATIVE_REWARD_RATIO_FIELD_NUMBER: builtins.int - REFERENCE_COUNT_FIELD_NUMBER: builtins.int - reference_count: builtins.int = ... - - @property - def cumulative_reward_ratio(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - cumulative_reward_ratio : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - reference_count : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"cumulative_reward_ratio",b"cumulative_reward_ratio",u"reference_count",b"reference_count"]) -> None: ... -global___ValidatorHistoricalRewards = ValidatorHistoricalRewards - -class ValidatorCurrentRewards(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REWARDS_FIELD_NUMBER: builtins.int - PERIOD_FIELD_NUMBER: builtins.int - period: builtins.int = ... - - @property - def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - period : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"period",b"period",u"rewards",b"rewards"]) -> None: ... -global___ValidatorCurrentRewards = ValidatorCurrentRewards - -class ValidatorAccumulatedCommission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMISSION_FIELD_NUMBER: builtins.int - - @property - def commission(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - commission : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> None: ... -global___ValidatorAccumulatedCommission = ValidatorAccumulatedCommission - -class ValidatorOutstandingRewards(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REWARDS_FIELD_NUMBER: builtins.int - - @property - def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... -global___ValidatorOutstandingRewards = ValidatorOutstandingRewards - -class ValidatorSlashEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_PERIOD_FIELD_NUMBER: builtins.int - FRACTION_FIELD_NUMBER: builtins.int - validator_period: builtins.int = ... - fraction: typing.Text = ... - - def __init__(self, - *, - validator_period : builtins.int = ..., - fraction : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"fraction",b"fraction",u"validator_period",b"validator_period"]) -> None: ... -global___ValidatorSlashEvent = ValidatorSlashEvent - -class ValidatorSlashEvents(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_SLASH_EVENTS_FIELD_NUMBER: builtins.int - - @property - def validator_slash_events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorSlashEvent]: ... - - def __init__(self, - *, - validator_slash_events : typing.Optional[typing.Iterable[global___ValidatorSlashEvent]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_slash_events",b"validator_slash_events"]) -> None: ... -global___ValidatorSlashEvents = ValidatorSlashEvents - -class FeePool(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMUNITY_POOL_FIELD_NUMBER: builtins.int - - @property - def community_pool(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - community_pool : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"community_pool",b"community_pool"]) -> None: ... -global___FeePool = FeePool - -class CommunityPoolSpendProposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TITLE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - RECIPIENT_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - title: typing.Text = ... - description: typing.Text = ... - recipient: typing.Text = ... - - @property - def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - title : typing.Text = ..., - description : typing.Text = ..., - recipient : typing.Text = ..., - amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"description",b"description",u"recipient",b"recipient",u"title",b"title"]) -> None: ... -global___CommunityPoolSpendProposal = CommunityPoolSpendProposal - -class DelegatorStartingInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PREVIOUS_PERIOD_FIELD_NUMBER: builtins.int - STAKE_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - previous_period: builtins.int = ... - stake: typing.Text = ... - height: builtins.int = ... - - def __init__(self, - *, - previous_period : builtins.int = ..., - stake : typing.Text = ..., - height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"previous_period",b"previous_period",u"stake",b"stake"]) -> None: ... -global___DelegatorStartingInfo = DelegatorStartingInfo - -class DelegationDelegatorReward(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - REWARD_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - @property - def reward(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - reward : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"reward",b"reward",u"validator_address",b"validator_address"]) -> None: ... -global___DelegationDelegatorReward = DelegationDelegatorReward - -class CommunityPoolSpendProposalWithDeposit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TITLE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - RECIPIENT_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - DEPOSIT_FIELD_NUMBER: builtins.int - title: typing.Text = ... - description: typing.Text = ... - recipient: typing.Text = ... - amount: typing.Text = ... - deposit: typing.Text = ... - - def __init__(self, - *, - title : typing.Text = ..., - description : typing.Text = ..., - recipient : typing.Text = ..., - amount : typing.Text = ..., - deposit : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"deposit",b"deposit",u"description",b"description",u"recipient",b"recipient",u"title",b"title"]) -> None: ... -global___CommunityPoolSpendProposalWithDeposit = CommunityPoolSpendProposalWithDeposit diff --git a/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi deleted file mode 100644 index 2e709e7..0000000 --- a/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .distribution_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi deleted file mode 100644 index fd30f2a..0000000 --- a/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,206 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import cosmos.distribution.v1beta1.distribution_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class DelegatorWithdrawInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - withdraw_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - withdraw_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"withdraw_address",b"withdraw_address"]) -> None: ... -global___DelegatorWithdrawInfo = DelegatorWithdrawInfo - -class ValidatorOutstandingRewardsRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - OUTSTANDING_REWARDS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - @property - def outstanding_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - outstanding_rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"outstanding_rewards",b"outstanding_rewards",u"validator_address",b"validator_address"]) -> None: ... -global___ValidatorOutstandingRewardsRecord = ValidatorOutstandingRewardsRecord - -class ValidatorAccumulatedCommissionRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - ACCUMULATED_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - @property - def accumulated(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission: ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - accumulated : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"accumulated",b"accumulated"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"accumulated",b"accumulated",u"validator_address",b"validator_address"]) -> None: ... -global___ValidatorAccumulatedCommissionRecord = ValidatorAccumulatedCommissionRecord - -class ValidatorHistoricalRewardsRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - PERIOD_FIELD_NUMBER: builtins.int - REWARDS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - period: builtins.int = ... - - @property - def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorHistoricalRewards: ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - period : builtins.int = ..., - rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorHistoricalRewards] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"period",b"period",u"rewards",b"rewards",u"validator_address",b"validator_address"]) -> None: ... -global___ValidatorHistoricalRewardsRecord = ValidatorHistoricalRewardsRecord - -class ValidatorCurrentRewardsRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - REWARDS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - @property - def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorCurrentRewards: ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorCurrentRewards] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards",u"validator_address",b"validator_address"]) -> None: ... -global___ValidatorCurrentRewardsRecord = ValidatorCurrentRewardsRecord - -class DelegatorStartingInfoRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - STARTING_INFO_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - - @property - def starting_info(self) -> cosmos.distribution.v1beta1.distribution_pb2.DelegatorStartingInfo: ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - starting_info : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.DelegatorStartingInfo] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"starting_info",b"starting_info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"starting_info",b"starting_info",u"validator_address",b"validator_address"]) -> None: ... -global___DelegatorStartingInfoRecord = DelegatorStartingInfoRecord - -class ValidatorSlashEventRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - PERIOD_FIELD_NUMBER: builtins.int - VALIDATOR_SLASH_EVENT_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - height: builtins.int = ... - period: builtins.int = ... - - @property - def validator_slash_event(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent: ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - height : builtins.int = ..., - period : builtins.int = ..., - validator_slash_event : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"validator_slash_event",b"validator_slash_event"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"period",b"period",u"validator_address",b"validator_address",u"validator_slash_event",b"validator_slash_event"]) -> None: ... -global___ValidatorSlashEventRecord = ValidatorSlashEventRecord - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - FEE_POOL_FIELD_NUMBER: builtins.int - DELEGATOR_WITHDRAW_INFOS_FIELD_NUMBER: builtins.int - PREVIOUS_PROPOSER_FIELD_NUMBER: builtins.int - OUTSTANDING_REWARDS_FIELD_NUMBER: builtins.int - VALIDATOR_ACCUMULATED_COMMISSIONS_FIELD_NUMBER: builtins.int - VALIDATOR_HISTORICAL_REWARDS_FIELD_NUMBER: builtins.int - VALIDATOR_CURRENT_REWARDS_FIELD_NUMBER: builtins.int - DELEGATOR_STARTING_INFOS_FIELD_NUMBER: builtins.int - VALIDATOR_SLASH_EVENTS_FIELD_NUMBER: builtins.int - previous_proposer: typing.Text = ... - - @property - def params(self) -> cosmos.distribution.v1beta1.distribution_pb2.Params: ... - - @property - def fee_pool(self) -> cosmos.distribution.v1beta1.distribution_pb2.FeePool: ... - - @property - def delegator_withdraw_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DelegatorWithdrawInfo]: ... - - @property - def outstanding_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorOutstandingRewardsRecord]: ... - - @property - def validator_accumulated_commissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorAccumulatedCommissionRecord]: ... - - @property - def validator_historical_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorHistoricalRewardsRecord]: ... - - @property - def validator_current_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorCurrentRewardsRecord]: ... - - @property - def delegator_starting_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DelegatorStartingInfoRecord]: ... - - @property - def validator_slash_events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorSlashEventRecord]: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.Params] = ..., - fee_pool : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.FeePool] = ..., - delegator_withdraw_infos : typing.Optional[typing.Iterable[global___DelegatorWithdrawInfo]] = ..., - previous_proposer : typing.Text = ..., - outstanding_rewards : typing.Optional[typing.Iterable[global___ValidatorOutstandingRewardsRecord]] = ..., - validator_accumulated_commissions : typing.Optional[typing.Iterable[global___ValidatorAccumulatedCommissionRecord]] = ..., - validator_historical_rewards : typing.Optional[typing.Iterable[global___ValidatorHistoricalRewardsRecord]] = ..., - validator_current_rewards : typing.Optional[typing.Iterable[global___ValidatorCurrentRewardsRecord]] = ..., - delegator_starting_infos : typing.Optional[typing.Iterable[global___DelegatorStartingInfoRecord]] = ..., - validator_slash_events : typing.Optional[typing.Iterable[global___ValidatorSlashEventRecord]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"fee_pool",b"fee_pool",u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_starting_infos",b"delegator_starting_infos",u"delegator_withdraw_infos",b"delegator_withdraw_infos",u"fee_pool",b"fee_pool",u"outstanding_rewards",b"outstanding_rewards",u"params",b"params",u"previous_proposer",b"previous_proposer",u"validator_accumulated_commissions",b"validator_accumulated_commissions",u"validator_current_rewards",b"validator_current_rewards",u"validator_historical_rewards",b"validator_historical_rewards",u"validator_slash_events",b"validator_slash_events"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi deleted file mode 100644 index ed5ed11..0000000 --- a/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,266 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import cosmos.base.v1beta1.coin_pb2 -import cosmos.distribution.v1beta1.distribution_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.distribution.v1beta1.distribution_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse - -class QueryValidatorOutstandingRewardsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... -global___QueryValidatorOutstandingRewardsRequest = QueryValidatorOutstandingRewardsRequest - -class QueryValidatorOutstandingRewardsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REWARDS_FIELD_NUMBER: builtins.int - - @property - def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorOutstandingRewards: ... - - def __init__(self, - *, - rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorOutstandingRewards] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... -global___QueryValidatorOutstandingRewardsResponse = QueryValidatorOutstandingRewardsResponse - -class QueryValidatorCommissionRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... -global___QueryValidatorCommissionRequest = QueryValidatorCommissionRequest - -class QueryValidatorCommissionResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMISSION_FIELD_NUMBER: builtins.int - - @property - def commission(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission: ... - - def __init__(self, - *, - commission : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> None: ... -global___QueryValidatorCommissionResponse = QueryValidatorCommissionResponse - -class QueryValidatorSlashesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - STARTING_HEIGHT_FIELD_NUMBER: builtins.int - ENDING_HEIGHT_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - starting_height: builtins.int = ... - ending_height: builtins.int = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - starting_height : builtins.int = ..., - ending_height : builtins.int = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ending_height",b"ending_height",u"pagination",b"pagination",u"starting_height",b"starting_height",u"validator_address",b"validator_address"]) -> None: ... -global___QueryValidatorSlashesRequest = QueryValidatorSlashesRequest - -class QueryValidatorSlashesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SLASHES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def slashes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - slashes : typing.Optional[typing.Iterable[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"slashes",b"slashes"]) -> None: ... -global___QueryValidatorSlashesResponse = QueryValidatorSlashesResponse - -class QueryDelegationRewardsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... -global___QueryDelegationRewardsRequest = QueryDelegationRewardsRequest - -class QueryDelegationRewardsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REWARDS_FIELD_NUMBER: builtins.int - - @property - def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... -global___QueryDelegationRewardsResponse = QueryDelegationRewardsResponse - -class QueryDelegationTotalRewardsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... -global___QueryDelegationTotalRewardsRequest = QueryDelegationTotalRewardsRequest - -class QueryDelegationTotalRewardsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REWARDS_FIELD_NUMBER: builtins.int - TOTAL_FIELD_NUMBER: builtins.int - - @property - def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.distribution.v1beta1.distribution_pb2.DelegationDelegatorReward]: ... - - @property - def total(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - rewards : typing.Optional[typing.Iterable[cosmos.distribution.v1beta1.distribution_pb2.DelegationDelegatorReward]] = ..., - total : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards",u"total",b"total"]) -> None: ... -global___QueryDelegationTotalRewardsResponse = QueryDelegationTotalRewardsResponse - -class QueryDelegatorValidatorsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... -global___QueryDelegatorValidatorsRequest = QueryDelegatorValidatorsRequest - -class QueryDelegatorValidatorsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATORS_FIELD_NUMBER: builtins.int - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - validators : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validators",b"validators"]) -> None: ... -global___QueryDelegatorValidatorsResponse = QueryDelegatorValidatorsResponse - -class QueryDelegatorWithdrawAddressRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... -global___QueryDelegatorWithdrawAddressRequest = QueryDelegatorWithdrawAddressRequest - -class QueryDelegatorWithdrawAddressResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int - withdraw_address: typing.Text = ... - - def __init__(self, - *, - withdraw_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"withdraw_address",b"withdraw_address"]) -> None: ... -global___QueryDelegatorWithdrawAddressResponse = QueryDelegatorWithdrawAddressResponse - -class QueryCommunityPoolRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryCommunityPoolRequest = QueryCommunityPoolRequest - -class QueryCommunityPoolResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - POOL_FIELD_NUMBER: builtins.int - - @property - def pool(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... - - def __init__(self, - *, - pool : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> None: ... -global___QueryCommunityPoolResponse = QueryCommunityPoolResponse diff --git a/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 5c286d3..0000000 --- a/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,104 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - ValidatorOutstandingRewards:grpc.UnaryUnaryMultiCallable[ - global___QueryValidatorOutstandingRewardsRequest, - global___QueryValidatorOutstandingRewardsResponse] = ... - - ValidatorCommission:grpc.UnaryUnaryMultiCallable[ - global___QueryValidatorCommissionRequest, - global___QueryValidatorCommissionResponse] = ... - - ValidatorSlashes:grpc.UnaryUnaryMultiCallable[ - global___QueryValidatorSlashesRequest, - global___QueryValidatorSlashesResponse] = ... - - DelegationRewards:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegationRewardsRequest, - global___QueryDelegationRewardsResponse] = ... - - DelegationTotalRewards:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegationTotalRewardsRequest, - global___QueryDelegationTotalRewardsResponse] = ... - - DelegatorValidators:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegatorValidatorsRequest, - global___QueryDelegatorValidatorsResponse] = ... - - DelegatorWithdrawAddress:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegatorWithdrawAddressRequest, - global___QueryDelegatorWithdrawAddressResponse] = ... - - CommunityPool:grpc.UnaryUnaryMultiCallable[ - global___QueryCommunityPoolRequest, - global___QueryCommunityPoolResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - @abc.abstractmethod - def ValidatorOutstandingRewards(self, - request: global___QueryValidatorOutstandingRewardsRequest, - context: grpc.ServicerContext, - ) -> global___QueryValidatorOutstandingRewardsResponse: ... - - @abc.abstractmethod - def ValidatorCommission(self, - request: global___QueryValidatorCommissionRequest, - context: grpc.ServicerContext, - ) -> global___QueryValidatorCommissionResponse: ... - - @abc.abstractmethod - def ValidatorSlashes(self, - request: global___QueryValidatorSlashesRequest, - context: grpc.ServicerContext, - ) -> global___QueryValidatorSlashesResponse: ... - - @abc.abstractmethod - def DelegationRewards(self, - request: global___QueryDelegationRewardsRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegationRewardsResponse: ... - - @abc.abstractmethod - def DelegationTotalRewards(self, - request: global___QueryDelegationTotalRewardsRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegationTotalRewardsResponse: ... - - @abc.abstractmethod - def DelegatorValidators(self, - request: global___QueryDelegatorValidatorsRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegatorValidatorsResponse: ... - - @abc.abstractmethod - def DelegatorWithdrawAddress(self, - request: global___QueryDelegatorWithdrawAddressRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegatorWithdrawAddressResponse: ... - - @abc.abstractmethod - def CommunityPool(self, - request: global___QueryCommunityPoolRequest, - context: grpc.ServicerContext, - ) -> global___QueryCommunityPoolResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi deleted file mode 100644 index 3840789..0000000 --- a/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,100 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgSetWithdrawAddress(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - withdraw_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - withdraw_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"withdraw_address",b"withdraw_address"]) -> None: ... -global___MsgSetWithdrawAddress = MsgSetWithdrawAddress - -class MsgSetWithdrawAddressResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgSetWithdrawAddressResponse = MsgSetWithdrawAddressResponse - -class MsgWithdrawDelegatorReward(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... -global___MsgWithdrawDelegatorReward = MsgWithdrawDelegatorReward - -class MsgWithdrawDelegatorRewardResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgWithdrawDelegatorRewardResponse = MsgWithdrawDelegatorRewardResponse - -class MsgWithdrawValidatorCommission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... -global___MsgWithdrawValidatorCommission = MsgWithdrawValidatorCommission - -class MsgWithdrawValidatorCommissionResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgWithdrawValidatorCommissionResponse = MsgWithdrawValidatorCommissionResponse - -class MsgFundCommunityPool(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - AMOUNT_FIELD_NUMBER: builtins.int - DEPOSITOR_FIELD_NUMBER: builtins.int - depositor: typing.Text = ... - - @property - def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - depositor : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor"]) -> None: ... -global___MsgFundCommunityPool = MsgFundCommunityPool - -class MsgFundCommunityPoolResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgFundCommunityPoolResponse = MsgFundCommunityPoolResponse diff --git a/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index 8c94732..0000000 --- a/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - SetWithdrawAddress:grpc.UnaryUnaryMultiCallable[ - global___MsgSetWithdrawAddress, - global___MsgSetWithdrawAddressResponse] = ... - - WithdrawDelegatorReward:grpc.UnaryUnaryMultiCallable[ - global___MsgWithdrawDelegatorReward, - global___MsgWithdrawDelegatorRewardResponse] = ... - - WithdrawValidatorCommission:grpc.UnaryUnaryMultiCallable[ - global___MsgWithdrawValidatorCommission, - global___MsgWithdrawValidatorCommissionResponse] = ... - - FundCommunityPool:grpc.UnaryUnaryMultiCallable[ - global___MsgFundCommunityPool, - global___MsgFundCommunityPoolResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def SetWithdrawAddress(self, - request: global___MsgSetWithdrawAddress, - context: grpc.ServicerContext, - ) -> global___MsgSetWithdrawAddressResponse: ... - - @abc.abstractmethod - def WithdrawDelegatorReward(self, - request: global___MsgWithdrawDelegatorReward, - context: grpc.ServicerContext, - ) -> global___MsgWithdrawDelegatorRewardResponse: ... - - @abc.abstractmethod - def WithdrawValidatorCommission(self, - request: global___MsgWithdrawValidatorCommission, - context: grpc.ServicerContext, - ) -> global___MsgWithdrawValidatorCommissionResponse: ... - - @abc.abstractmethod - def FundCommunityPool(self, - request: global___MsgFundCommunityPool, - context: grpc.ServicerContext, - ) -> global___MsgFundCommunityPoolResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi deleted file mode 100644 index 60cff8b..0000000 --- a/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi +++ /dev/null @@ -1,36 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Equivocation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - TIME_FIELD_NUMBER: builtins.int - POWER_FIELD_NUMBER: builtins.int - CONSENSUS_ADDRESS_FIELD_NUMBER: builtins.int - height: builtins.int = ... - power: builtins.int = ... - consensus_address: typing.Text = ... - - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - height : builtins.int = ..., - time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - power : builtins.int = ..., - consensus_address : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"consensus_address",b"consensus_address",u"height",b"height",u"power",b"power",u"time",b"time"]) -> None: ... -global___Equivocation = Equivocation diff --git a/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi deleted file mode 100644 index f487a89..0000000 --- a/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .evidence_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi deleted file mode 100644 index 8950805..0000000 --- a/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,27 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EVIDENCE_FIELD_NUMBER: builtins.int - - @property - def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... - - def __init__(self, - *, - evidence : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi deleted file mode 100644 index c33feab..0000000 --- a/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,76 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryEvidenceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EVIDENCE_HASH_FIELD_NUMBER: builtins.int - evidence_hash: builtins.bytes = ... - - def __init__(self, - *, - evidence_hash : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"evidence_hash",b"evidence_hash"]) -> None: ... -global___QueryEvidenceRequest = QueryEvidenceRequest - -class QueryEvidenceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EVIDENCE_FIELD_NUMBER: builtins.int - - @property - def evidence(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - evidence : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... -global___QueryEvidenceResponse = QueryEvidenceResponse - -class QueryAllEvidenceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... -global___QueryAllEvidenceRequest = QueryAllEvidenceRequest - -class QueryAllEvidenceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EVIDENCE_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - evidence : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence",u"pagination",b"pagination"]) -> None: ... -global___QueryAllEvidenceResponse = QueryAllEvidenceResponse diff --git a/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 438c23a..0000000 --- a/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,34 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Evidence:grpc.UnaryUnaryMultiCallable[ - global___QueryEvidenceRequest, - global___QueryEvidenceResponse] = ... - - AllEvidence:grpc.UnaryUnaryMultiCallable[ - global___QueryAllEvidenceRequest, - global___QueryAllEvidenceResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Evidence(self, - request: global___QueryEvidenceRequest, - context: grpc.ServicerContext, - ) -> global___QueryEvidenceResponse: ... - - @abc.abstractmethod - def AllEvidence(self, - request: global___QueryAllEvidenceRequest, - context: grpc.ServicerContext, - ) -> global___QueryAllEvidenceResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi deleted file mode 100644 index 1412b96..0000000 --- a/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,42 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgSubmitEvidence(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SUBMITTER_FIELD_NUMBER: builtins.int - EVIDENCE_FIELD_NUMBER: builtins.int - submitter: typing.Text = ... - - @property - def evidence(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - submitter : typing.Text = ..., - evidence : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence",u"submitter",b"submitter"]) -> None: ... -global___MsgSubmitEvidence = MsgSubmitEvidence - -class MsgSubmitEvidenceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HASH_FIELD_NUMBER: builtins.int - hash: builtins.bytes = ... - - def __init__(self, - *, - hash : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... -global___MsgSubmitEvidenceResponse = MsgSubmitEvidenceResponse diff --git a/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index 0ae2be9..0000000 --- a/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,24 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - SubmitEvidence:grpc.UnaryUnaryMultiCallable[ - global___MsgSubmitEvidence, - global___MsgSubmitEvidenceResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def SubmitEvidence(self, - request: global___MsgSubmitEvidence, - context: grpc.ServicerContext, - ) -> global___MsgSubmitEvidenceResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.py b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.py new file mode 100644 index 0000000..f0d9a1f --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.py @@ -0,0 +1,275 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/v1beta1/feegrant.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/feegrant/v1beta1/feegrant.proto', + package='cosmos.feegrant.v1beta1', + syntax='proto3', + serialized_options=b'Z\'github.com/cosmos/cosmos-sdk/x/feegrant', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n&cosmos/feegrant/v1beta1/feegrant.proto\x12\x17\x63osmos.feegrant.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"\xbb\x01\n\x0e\x42\x61sicAllowance\x12`\n\x0bspend_limit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x34\n\nexpiration\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\x90\xdf\x1f\x01:\x11\xd2\xb4-\rFeeAllowanceI\"\xa5\x03\n\x11PeriodicAllowance\x12<\n\x05\x62\x61sic\x18\x01 \x01(\x0b\x32\'.cosmos.feegrant.v1beta1.BasicAllowanceB\x04\xc8\xde\x1f\x00\x12\x33\n\x06period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\x98\xdf\x1f\x01\xc8\xde\x1f\x00\x12g\n\x12period_spend_limit\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x65\n\x10period_can_spend\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12:\n\x0cperiod_reset\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\x90\xdf\x1f\x01\xc8\xde\x1f\x00:\x11\xd2\xb4-\rFeeAllowanceI\"\x82\x01\n\x13\x41llowedMsgAllowance\x12:\n\tallowance\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x11\xca\xb4-\rFeeAllowanceI\x12\x18\n\x10\x61llowed_messages\x18\x02 \x03(\t:\x15\x88\xa0\x1f\x00\xd2\xb4-\rFeeAllowanceI\"e\n\x05Grant\x12\x0f\n\x07granter\x18\x01 \x01(\t\x12\x0f\n\x07grantee\x18\x02 \x01(\t\x12:\n\tallowance\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB\x11\xca\xb4-\rFeeAllowanceIB)Z\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3' + , + dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) + + + + +_BASICALLOWANCE = _descriptor.Descriptor( + name='BasicAllowance', + full_name='cosmos.feegrant.v1beta1.BasicAllowance', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='spend_limit', full_name='cosmos.feegrant.v1beta1.BasicAllowance.spend_limit', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='expiration', full_name='cosmos.feegrant.v1beta1.BasicAllowance.expiration', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\220\337\037\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\322\264-\rFeeAllowanceI', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=241, + serialized_end=428, +) + + +_PERIODICALLOWANCE = _descriptor.Descriptor( + name='PeriodicAllowance', + full_name='cosmos.feegrant.v1beta1.PeriodicAllowance', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='basic', full_name='cosmos.feegrant.v1beta1.PeriodicAllowance.basic', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='period', full_name='cosmos.feegrant.v1beta1.PeriodicAllowance.period', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\230\337\037\001\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='period_spend_limit', full_name='cosmos.feegrant.v1beta1.PeriodicAllowance.period_spend_limit', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='period_can_spend', full_name='cosmos.feegrant.v1beta1.PeriodicAllowance.period_can_spend', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='period_reset', full_name='cosmos.feegrant.v1beta1.PeriodicAllowance.period_reset', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\220\337\037\001\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\322\264-\rFeeAllowanceI', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=431, + serialized_end=852, +) + + +_ALLOWEDMSGALLOWANCE = _descriptor.Descriptor( + name='AllowedMsgAllowance', + full_name='cosmos.feegrant.v1beta1.AllowedMsgAllowance', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='allowance', full_name='cosmos.feegrant.v1beta1.AllowedMsgAllowance.allowance', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\312\264-\rFeeAllowanceI', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='allowed_messages', full_name='cosmos.feegrant.v1beta1.AllowedMsgAllowance.allowed_messages', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000\322\264-\rFeeAllowanceI', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=855, + serialized_end=985, +) + + +_GRANT = _descriptor.Descriptor( + name='Grant', + full_name='cosmos.feegrant.v1beta1.Grant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.feegrant.v1beta1.Grant.granter', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.feegrant.v1beta1.Grant.grantee', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='allowance', full_name='cosmos.feegrant.v1beta1.Grant.allowance', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\312\264-\rFeeAllowanceI', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=987, + serialized_end=1088, +) + +_BASICALLOWANCE.fields_by_name['spend_limit'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN +_BASICALLOWANCE.fields_by_name['expiration'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_PERIODICALLOWANCE.fields_by_name['basic'].message_type = _BASICALLOWANCE +_PERIODICALLOWANCE.fields_by_name['period'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_PERIODICALLOWANCE.fields_by_name['period_spend_limit'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN +_PERIODICALLOWANCE.fields_by_name['period_can_spend'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN +_PERIODICALLOWANCE.fields_by_name['period_reset'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_ALLOWEDMSGALLOWANCE.fields_by_name['allowance'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_GRANT.fields_by_name['allowance'].message_type = google_dot_protobuf_dot_any__pb2._ANY +DESCRIPTOR.message_types_by_name['BasicAllowance'] = _BASICALLOWANCE +DESCRIPTOR.message_types_by_name['PeriodicAllowance'] = _PERIODICALLOWANCE +DESCRIPTOR.message_types_by_name['AllowedMsgAllowance'] = _ALLOWEDMSGALLOWANCE +DESCRIPTOR.message_types_by_name['Grant'] = _GRANT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BasicAllowance = _reflection.GeneratedProtocolMessageType('BasicAllowance', (_message.Message,), { + 'DESCRIPTOR' : _BASICALLOWANCE, + '__module__' : 'cosmos.feegrant.v1beta1.feegrant_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.BasicAllowance) + }) +_sym_db.RegisterMessage(BasicAllowance) + +PeriodicAllowance = _reflection.GeneratedProtocolMessageType('PeriodicAllowance', (_message.Message,), { + 'DESCRIPTOR' : _PERIODICALLOWANCE, + '__module__' : 'cosmos.feegrant.v1beta1.feegrant_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.PeriodicAllowance) + }) +_sym_db.RegisterMessage(PeriodicAllowance) + +AllowedMsgAllowance = _reflection.GeneratedProtocolMessageType('AllowedMsgAllowance', (_message.Message,), { + 'DESCRIPTOR' : _ALLOWEDMSGALLOWANCE, + '__module__' : 'cosmos.feegrant.v1beta1.feegrant_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.AllowedMsgAllowance) + }) +_sym_db.RegisterMessage(AllowedMsgAllowance) + +Grant = _reflection.GeneratedProtocolMessageType('Grant', (_message.Message,), { + 'DESCRIPTOR' : _GRANT, + '__module__' : 'cosmos.feegrant.v1beta1.feegrant_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.Grant) + }) +_sym_db.RegisterMessage(Grant) + + +DESCRIPTOR._options = None +_BASICALLOWANCE.fields_by_name['spend_limit']._options = None +_BASICALLOWANCE.fields_by_name['expiration']._options = None +_BASICALLOWANCE._options = None +_PERIODICALLOWANCE.fields_by_name['basic']._options = None +_PERIODICALLOWANCE.fields_by_name['period']._options = None +_PERIODICALLOWANCE.fields_by_name['period_spend_limit']._options = None +_PERIODICALLOWANCE.fields_by_name['period_can_spend']._options = None +_PERIODICALLOWANCE.fields_by_name['period_reset']._options = None +_PERIODICALLOWANCE._options = None +_ALLOWEDMSGALLOWANCE.fields_by_name['allowance']._options = None +_ALLOWEDMSGALLOWANCE._options = None +_GRANT.fields_by_name['allowance']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.py b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.py b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.py new file mode 100644 index 0000000..953da4a --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/v1beta1/genesis.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos.feegrant.v1beta1 import feegrant_pb2 as cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/feegrant/v1beta1/genesis.proto', + package='cosmos.feegrant.v1beta1', + syntax='proto3', + serialized_options=b'Z\'github.com/cosmos/cosmos-sdk/x/feegrant', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n%cosmos/feegrant/v1beta1/genesis.proto\x12\x17\x63osmos.feegrant.v1beta1\x1a\x14gogoproto/gogo.proto\x1a&cosmos/feegrant/v1beta1/feegrant.proto\"H\n\x0cGenesisState\x12\x38\n\nallowances\x18\x01 \x03(\x0b\x32\x1e.cosmos.feegrant.v1beta1.GrantB\x04\xc8\xde\x1f\x00\x42)Z\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3' + , + dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2.DESCRIPTOR,]) + + + + +_GENESISSTATE = _descriptor.Descriptor( + name='GenesisState', + full_name='cosmos.feegrant.v1beta1.GenesisState', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='allowances', full_name='cosmos.feegrant.v1beta1.GenesisState.allowances', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=200, +) + +_GENESISSTATE.fields_by_name['allowances'].message_type = cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2._GRANT +DESCRIPTOR.message_types_by_name['GenesisState'] = _GENESISSTATE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GenesisState = _reflection.GeneratedProtocolMessageType('GenesisState', (_message.Message,), { + 'DESCRIPTOR' : _GENESISSTATE, + '__module__' : 'cosmos.feegrant.v1beta1.genesis_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.GenesisState) + }) +_sym_db.RegisterMessage(GenesisState) + + +DESCRIPTOR._options = None +_GENESISSTATE.fields_by_name['allowances']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.py b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.py b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.py new file mode 100644 index 0000000..fe5218b --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.py @@ -0,0 +1,256 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/v1beta1/query.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from cosmos.feegrant.v1beta1 import feegrant_pb2 as cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2 +from cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/feegrant/v1beta1/query.proto', + package='cosmos.feegrant.v1beta1', + syntax='proto3', + serialized_options=b'Z\'github.com/cosmos/cosmos-sdk/x/feegrant', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n#cosmos/feegrant/v1beta1/query.proto\x12\x17\x63osmos.feegrant.v1beta1\x1a&cosmos/feegrant/v1beta1/feegrant.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1cgoogle/api/annotations.proto\"9\n\x15QueryAllowanceRequest\x12\x0f\n\x07granter\x18\x01 \x01(\t\x12\x0f\n\x07grantee\x18\x02 \x01(\t\"K\n\x16QueryAllowanceResponse\x12\x31\n\tallowance\x18\x01 \x01(\x0b\x32\x1e.cosmos.feegrant.v1beta1.Grant\"e\n\x16QueryAllowancesRequest\x12\x0f\n\x07grantee\x18\x01 \x01(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\x8a\x01\n\x17QueryAllowancesResponse\x12\x32\n\nallowances\x18\x01 \x03(\x0b\x32\x1e.cosmos.feegrant.v1beta1.Grant\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse2\xdf\x02\n\x05Query\x12\xac\x01\n\tAllowance\x12..cosmos.feegrant.v1beta1.QueryAllowanceRequest\x1a/.cosmos.feegrant.v1beta1.QueryAllowanceResponse\">\x82\xd3\xe4\x93\x02\x38\x12\x36/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}\x12\xa6\x01\n\nAllowances\x12/.cosmos.feegrant.v1beta1.QueryAllowancesRequest\x1a\x30.cosmos.feegrant.v1beta1.QueryAllowancesResponse\"5\x82\xd3\xe4\x93\x02/\x12-/cosmos/feegrant/v1beta1/allowances/{grantee}B)Z\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3' + , + dependencies=[cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2.DESCRIPTOR,cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_QUERYALLOWANCEREQUEST = _descriptor.Descriptor( + name='QueryAllowanceRequest', + full_name='cosmos.feegrant.v1beta1.QueryAllowanceRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.feegrant.v1beta1.QueryAllowanceRequest.granter', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.feegrant.v1beta1.QueryAllowanceRequest.grantee', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=178, + serialized_end=235, +) + + +_QUERYALLOWANCERESPONSE = _descriptor.Descriptor( + name='QueryAllowanceResponse', + full_name='cosmos.feegrant.v1beta1.QueryAllowanceResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='allowance', full_name='cosmos.feegrant.v1beta1.QueryAllowanceResponse.allowance', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=237, + serialized_end=312, +) + + +_QUERYALLOWANCESREQUEST = _descriptor.Descriptor( + name='QueryAllowancesRequest', + full_name='cosmos.feegrant.v1beta1.QueryAllowancesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.feegrant.v1beta1.QueryAllowancesRequest.grantee', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pagination', full_name='cosmos.feegrant.v1beta1.QueryAllowancesRequest.pagination', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=314, + serialized_end=415, +) + + +_QUERYALLOWANCESRESPONSE = _descriptor.Descriptor( + name='QueryAllowancesResponse', + full_name='cosmos.feegrant.v1beta1.QueryAllowancesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='allowances', full_name='cosmos.feegrant.v1beta1.QueryAllowancesResponse.allowances', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='pagination', full_name='cosmos.feegrant.v1beta1.QueryAllowancesResponse.pagination', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=418, + serialized_end=556, +) + +_QUERYALLOWANCERESPONSE.fields_by_name['allowance'].message_type = cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2._GRANT +_QUERYALLOWANCESREQUEST.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGEREQUEST +_QUERYALLOWANCESRESPONSE.fields_by_name['allowances'].message_type = cosmos_dot_feegrant_dot_v1beta1_dot_feegrant__pb2._GRANT +_QUERYALLOWANCESRESPONSE.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGERESPONSE +DESCRIPTOR.message_types_by_name['QueryAllowanceRequest'] = _QUERYALLOWANCEREQUEST +DESCRIPTOR.message_types_by_name['QueryAllowanceResponse'] = _QUERYALLOWANCERESPONSE +DESCRIPTOR.message_types_by_name['QueryAllowancesRequest'] = _QUERYALLOWANCESREQUEST +DESCRIPTOR.message_types_by_name['QueryAllowancesResponse'] = _QUERYALLOWANCESRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +QueryAllowanceRequest = _reflection.GeneratedProtocolMessageType('QueryAllowanceRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYALLOWANCEREQUEST, + '__module__' : 'cosmos.feegrant.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.QueryAllowanceRequest) + }) +_sym_db.RegisterMessage(QueryAllowanceRequest) + +QueryAllowanceResponse = _reflection.GeneratedProtocolMessageType('QueryAllowanceResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYALLOWANCERESPONSE, + '__module__' : 'cosmos.feegrant.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.QueryAllowanceResponse) + }) +_sym_db.RegisterMessage(QueryAllowanceResponse) + +QueryAllowancesRequest = _reflection.GeneratedProtocolMessageType('QueryAllowancesRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYALLOWANCESREQUEST, + '__module__' : 'cosmos.feegrant.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.QueryAllowancesRequest) + }) +_sym_db.RegisterMessage(QueryAllowancesRequest) + +QueryAllowancesResponse = _reflection.GeneratedProtocolMessageType('QueryAllowancesResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYALLOWANCESRESPONSE, + '__module__' : 'cosmos.feegrant.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.QueryAllowancesResponse) + }) +_sym_db.RegisterMessage(QueryAllowancesResponse) + + +DESCRIPTOR._options = None + +_QUERY = _descriptor.ServiceDescriptor( + name='Query', + full_name='cosmos.feegrant.v1beta1.Query', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=559, + serialized_end=910, + methods=[ + _descriptor.MethodDescriptor( + name='Allowance', + full_name='cosmos.feegrant.v1beta1.Query.Allowance', + index=0, + containing_service=None, + input_type=_QUERYALLOWANCEREQUEST, + output_type=_QUERYALLOWANCERESPONSE, + serialized_options=b'\202\323\344\223\0028\0226/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='Allowances', + full_name='cosmos.feegrant.v1beta1.Query.Allowances', + index=1, + containing_service=None, + input_type=_QUERYALLOWANCESREQUEST, + output_type=_QUERYALLOWANCESRESPONSE, + serialized_options=b'\202\323\344\223\002/\022-/cosmos/feegrant/v1beta1/allowances/{grantee}', + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_QUERY) + +DESCRIPTOR.services_by_name['Query'] = _QUERY + +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.py b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.py new file mode 100644 index 0000000..e3b822e --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.py @@ -0,0 +1,104 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.feegrant.v1beta1 import query_pb2 as cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2 + + +class QueryStub(object): + """Query defines the gRPC querier service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Allowance = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Query/Allowance', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceRequest.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceResponse.FromString, + ) + self.Allowances = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Query/Allowances', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesRequest.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesResponse.FromString, + ) + + +class QueryServicer(object): + """Query defines the gRPC querier service. + """ + + def Allowance(self, request, context): + """Allowance returns fee granted to the grantee by the granter. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Allowances(self, request, context): + """Allowances returns all the grants for address. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_QueryServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Allowance': grpc.unary_unary_rpc_method_handler( + servicer.Allowance, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceRequest.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceResponse.SerializeToString, + ), + 'Allowances': grpc.unary_unary_rpc_method_handler( + servicer.Allowances, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesRequest.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.feegrant.v1beta1.Query', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Query(object): + """Query defines the gRPC querier service. + """ + + @staticmethod + def Allowance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Query/Allowance', + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceRequest.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Allowances(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Query/Allowances', + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesRequest.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_query__pb2.QueryAllowancesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.py b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.py new file mode 100644 index 0000000..f3f81a9 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.py @@ -0,0 +1,240 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/feegrant/v1beta1/tx.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/feegrant/v1beta1/tx.proto', + package='cosmos.feegrant.v1beta1', + syntax='proto3', + serialized_options=b'Z\'github.com/cosmos/cosmos-sdk/x/feegrant', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n cosmos/feegrant/v1beta1/tx.proto\x12\x17\x63osmos.feegrant.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\"q\n\x11MsgGrantAllowance\x12\x0f\n\x07granter\x18\x01 \x01(\t\x12\x0f\n\x07grantee\x18\x02 \x01(\t\x12:\n\tallowance\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB\x11\xca\xb4-\rFeeAllowanceI\"\x1b\n\x19MsgGrantAllowanceResponse\"6\n\x12MsgRevokeAllowance\x12\x0f\n\x07granter\x18\x01 \x01(\t\x12\x0f\n\x07grantee\x18\x02 \x01(\t\"\x1c\n\x1aMsgRevokeAllowanceResponse2\xec\x01\n\x03Msg\x12p\n\x0eGrantAllowance\x12*.cosmos.feegrant.v1beta1.MsgGrantAllowance\x1a\x32.cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse\x12s\n\x0fRevokeAllowance\x12+.cosmos.feegrant.v1beta1.MsgRevokeAllowance\x1a\x33.cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponseB)Z\'github.com/cosmos/cosmos-sdk/x/feegrantb\x06proto3' + , + dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,]) + + + + +_MSGGRANTALLOWANCE = _descriptor.Descriptor( + name='MsgGrantAllowance', + full_name='cosmos.feegrant.v1beta1.MsgGrantAllowance', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.feegrant.v1beta1.MsgGrantAllowance.granter', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.feegrant.v1beta1.MsgGrantAllowance.grantee', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='allowance', full_name='cosmos.feegrant.v1beta1.MsgGrantAllowance.allowance', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\312\264-\rFeeAllowanceI', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=137, + serialized_end=250, +) + + +_MSGGRANTALLOWANCERESPONSE = _descriptor.Descriptor( + name='MsgGrantAllowanceResponse', + full_name='cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=252, + serialized_end=279, +) + + +_MSGREVOKEALLOWANCE = _descriptor.Descriptor( + name='MsgRevokeAllowance', + full_name='cosmos.feegrant.v1beta1.MsgRevokeAllowance', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='granter', full_name='cosmos.feegrant.v1beta1.MsgRevokeAllowance.granter', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='grantee', full_name='cosmos.feegrant.v1beta1.MsgRevokeAllowance.grantee', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=281, + serialized_end=335, +) + + +_MSGREVOKEALLOWANCERESPONSE = _descriptor.Descriptor( + name='MsgRevokeAllowanceResponse', + full_name='cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=337, + serialized_end=365, +) + +_MSGGRANTALLOWANCE.fields_by_name['allowance'].message_type = google_dot_protobuf_dot_any__pb2._ANY +DESCRIPTOR.message_types_by_name['MsgGrantAllowance'] = _MSGGRANTALLOWANCE +DESCRIPTOR.message_types_by_name['MsgGrantAllowanceResponse'] = _MSGGRANTALLOWANCERESPONSE +DESCRIPTOR.message_types_by_name['MsgRevokeAllowance'] = _MSGREVOKEALLOWANCE +DESCRIPTOR.message_types_by_name['MsgRevokeAllowanceResponse'] = _MSGREVOKEALLOWANCERESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MsgGrantAllowance = _reflection.GeneratedProtocolMessageType('MsgGrantAllowance', (_message.Message,), { + 'DESCRIPTOR' : _MSGGRANTALLOWANCE, + '__module__' : 'cosmos.feegrant.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.MsgGrantAllowance) + }) +_sym_db.RegisterMessage(MsgGrantAllowance) + +MsgGrantAllowanceResponse = _reflection.GeneratedProtocolMessageType('MsgGrantAllowanceResponse', (_message.Message,), { + 'DESCRIPTOR' : _MSGGRANTALLOWANCERESPONSE, + '__module__' : 'cosmos.feegrant.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse) + }) +_sym_db.RegisterMessage(MsgGrantAllowanceResponse) + +MsgRevokeAllowance = _reflection.GeneratedProtocolMessageType('MsgRevokeAllowance', (_message.Message,), { + 'DESCRIPTOR' : _MSGREVOKEALLOWANCE, + '__module__' : 'cosmos.feegrant.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.MsgRevokeAllowance) + }) +_sym_db.RegisterMessage(MsgRevokeAllowance) + +MsgRevokeAllowanceResponse = _reflection.GeneratedProtocolMessageType('MsgRevokeAllowanceResponse', (_message.Message,), { + 'DESCRIPTOR' : _MSGREVOKEALLOWANCERESPONSE, + '__module__' : 'cosmos.feegrant.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse) + }) +_sym_db.RegisterMessage(MsgRevokeAllowanceResponse) + + +DESCRIPTOR._options = None +_MSGGRANTALLOWANCE.fields_by_name['allowance']._options = None + +_MSG = _descriptor.ServiceDescriptor( + name='Msg', + full_name='cosmos.feegrant.v1beta1.Msg', + file=DESCRIPTOR, + index=0, + serialized_options=None, + create_key=_descriptor._internal_create_key, + serialized_start=368, + serialized_end=604, + methods=[ + _descriptor.MethodDescriptor( + name='GrantAllowance', + full_name='cosmos.feegrant.v1beta1.Msg.GrantAllowance', + index=0, + containing_service=None, + input_type=_MSGGRANTALLOWANCE, + output_type=_MSGGRANTALLOWANCERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='RevokeAllowance', + full_name='cosmos.feegrant.v1beta1.Msg.RevokeAllowance', + index=1, + containing_service=None, + input_type=_MSGREVOKEALLOWANCE, + output_type=_MSGREVOKEALLOWANCERESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), +]) +_sym_db.RegisterServiceDescriptor(_MSG) + +DESCRIPTOR.services_by_name['Msg'] = _MSG + +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.py b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.py new file mode 100644 index 0000000..7b509d2 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.py @@ -0,0 +1,106 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from cosmos.feegrant.v1beta1 import tx_pb2 as cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2 + + +class MsgStub(object): + """Msg defines the feegrant msg service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GrantAllowance = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Msg/GrantAllowance', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowance.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowanceResponse.FromString, + ) + self.RevokeAllowance = channel.unary_unary( + '/cosmos.feegrant.v1beta1.Msg/RevokeAllowance', + request_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowance.SerializeToString, + response_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowanceResponse.FromString, + ) + + +class MsgServicer(object): + """Msg defines the feegrant msg service. + """ + + def GrantAllowance(self, request, context): + """GrantAllowance grants fee allowance to the grantee on the granter's + account with the provided expiration time. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevokeAllowance(self, request, context): + """RevokeAllowance revokes any fee allowance of granter's account that + has been granted to the grantee. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MsgServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GrantAllowance': grpc.unary_unary_rpc_method_handler( + servicer.GrantAllowance, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowance.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowanceResponse.SerializeToString, + ), + 'RevokeAllowance': grpc.unary_unary_rpc_method_handler( + servicer.RevokeAllowance, + request_deserializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowance.FromString, + response_serializer=cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowanceResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'cosmos.feegrant.v1beta1.Msg', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Msg(object): + """Msg defines the feegrant msg service. + """ + + @staticmethod + def GrantAllowance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Msg/GrantAllowance', + cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowance.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgGrantAllowanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevokeAllowance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.feegrant.v1beta1.Msg/RevokeAllowance', + cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowance.SerializeToString, + cosmos_dot_feegrant_dot_v1beta1_dot_tx__pb2.MsgRevokeAllowanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi deleted file mode 100644 index 04d8057..0000000 --- a/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,26 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - GEN_TXS_FIELD_NUMBER: builtins.int - - @property - def gen_txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - - def __init__(self, - *, - gen_txs : typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"gen_txs",b"gen_txs"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi deleted file mode 100644 index c12a05b..0000000 --- a/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.gov.v1beta1.gov_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - STARTING_PROPOSAL_ID_FIELD_NUMBER: builtins.int - DEPOSITS_FIELD_NUMBER: builtins.int - VOTES_FIELD_NUMBER: builtins.int - PROPOSALS_FIELD_NUMBER: builtins.int - DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int - VOTING_PARAMS_FIELD_NUMBER: builtins.int - TALLY_PARAMS_FIELD_NUMBER: builtins.int - starting_proposal_id: builtins.int = ... - - @property - def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Deposit]: ... - - @property - def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Vote]: ... - - @property - def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Proposal]: ... - - @property - def deposit_params(self) -> cosmos.gov.v1beta1.gov_pb2.DepositParams: ... - - @property - def voting_params(self) -> cosmos.gov.v1beta1.gov_pb2.VotingParams: ... - - @property - def tally_params(self) -> cosmos.gov.v1beta1.gov_pb2.TallyParams: ... - - def __init__(self, - *, - starting_proposal_id : builtins.int = ..., - deposits : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Deposit]] = ..., - votes : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Vote]] = ..., - proposals : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Proposal]] = ..., - deposit_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.DepositParams] = ..., - voting_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.VotingParams] = ..., - tally_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyParams] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"deposits",b"deposits",u"proposals",b"proposals",u"starting_proposal_id",b"starting_proposal_id",u"tally_params",b"tally_params",u"votes",b"votes",u"voting_params",b"voting_params"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/gov_pb2.py b/pyband/proto/cosmos/gov/v1beta1/gov_pb2.py index 6730723..46462cb 100644 --- a/pyband/proto/cosmos/gov/v1beta1/gov_pb2.py +++ b/pyband/proto/cosmos/gov/v1beta1/gov_pb2.py @@ -26,7 +26,7 @@ syntax='proto3', serialized_options=b'Z(github.com/cosmos/cosmos-sdk/x/gov/types\330\341\036\000\200\342\036\000\310\341\036\000', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1c\x63osmos/gov/v1beta1/gov.proto\x12\x12\x63osmos.gov.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\"C\n\x0cTextProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t:\x0f\xd2\xb4-\x07\x43ontent\xe8\xa0\x1f\x01\"\xb0\x01\n\x07\x44\x65posit\x12+\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x16\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\x11\n\tdepositor\x18\x02 \x01(\t\x12[\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xfc\x05\n\x08Proposal\x12(\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x13\xea\xde\x1f\x02id\xf2\xde\x1f\tyaml:\"id\"\x12\x32\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x0b\xca\xb4-\x07\x43ontent\x12N\n\x06status\x18\x03 \x01(\x0e\x32\".cosmos.gov.v1beta1.ProposalStatusB\x1a\xf2\xde\x1f\x16yaml:\"proposal_status\"\x12^\n\x12\x66inal_tally_result\x18\x04 \x01(\x0b\x32\x1f.cosmos.gov.v1beta1.TallyResultB!\xc8\xde\x1f\x00\xf2\xde\x1f\x19yaml:\"final_tally_result\"\x12O\n\x0bsubmit_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x1e\x90\xdf\x1f\x01\xc8\xde\x1f\x00\xf2\xde\x1f\x12yaml:\"submit_time\"\x12Y\n\x10\x64\x65posit_end_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB#\x90\xdf\x1f\x01\xc8\xde\x1f\x00\xf2\xde\x1f\x17yaml:\"deposit_end_time\"\x12z\n\rtotal_deposit\x18\x07 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBH\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x14yaml:\"total_deposit\"\x12[\n\x11voting_start_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB$\x90\xdf\x1f\x01\xc8\xde\x1f\x00\xf2\xde\x1f\x18yaml:\"voting_start_time\"\x12W\n\x0fvoting_end_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\"\x90\xdf\x1f\x01\xc8\xde\x1f\x00\xf2\xde\x1f\x16yaml:\"voting_end_time\":\x04\xe8\xa0\x1f\x01\"\xaa\x02\n\x0bTallyResult\x12;\n\x03yes\x18\x01 \x01(\tB.\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xc8\xde\x1f\x00\x12?\n\x07\x61\x62stain\x18\x02 \x01(\tB.\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xc8\xde\x1f\x00\x12:\n\x02no\x18\x03 \x01(\tB.\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xc8\xde\x1f\x00\x12[\n\x0cno_with_veto\x18\x04 \x01(\tBE\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xc8\xde\x1f\x00\xf2\xde\x1f\x13yaml:\"no_with_veto\":\x04\xe8\xa0\x1f\x01\"|\n\x04Vote\x12+\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x16\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\r\n\x05voter\x18\x02 \x01(\t\x12.\n\x06option\x18\x03 \x01(\x0e\x32\x1e.cosmos.gov.v1beta1.VoteOption:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x9f\x02\n\rDepositParams\x12\x8f\x01\n\x0bmin_deposit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB_\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x12yaml:\"min_deposit\"\xea\xde\x1f\x15min_deposit,omitempty\x12|\n\x12max_deposit_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationBE\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xea\xde\x1f\x1cmax_deposit_period,omitempty\xf2\xde\x1f\x19yaml:\"max_deposit_period\"\"}\n\x0cVotingParams\x12m\n\rvoting_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB;\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xea\xde\x1f\x17voting_period,omitempty\xf2\xde\x1f\x14yaml:\"voting_period\"\"\xb8\x02\n\x0bTallyParams\x12R\n\x06quorum\x18\x01 \x01(\x0c\x42\x42\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xc8\xde\x1f\x00\xea\xde\x1f\x10quorum,omitempty\x12X\n\tthreshold\x18\x02 \x01(\x0c\x42\x45\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xc8\xde\x1f\x00\xea\xde\x1f\x13threshold,omitempty\x12{\n\x0eveto_threshold\x18\x03 \x01(\x0c\x42\x63\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xc8\xde\x1f\x00\xea\xde\x1f\x18veto_threshold,omitempty\xf2\xde\x1f\x15yaml:\"veto_threshold\"*\xe6\x01\n\nVoteOption\x12,\n\x17VOTE_OPTION_UNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bOptionEmpty\x12\"\n\x0fVOTE_OPTION_YES\x10\x01\x1a\r\x8a\x9d \tOptionYes\x12*\n\x13VOTE_OPTION_ABSTAIN\x10\x02\x1a\x11\x8a\x9d \rOptionAbstain\x12 \n\x0eVOTE_OPTION_NO\x10\x03\x1a\x0c\x8a\x9d \x08OptionNo\x12\x32\n\x18VOTE_OPTION_NO_WITH_VETO\x10\x04\x1a\x14\x8a\x9d \x10OptionNoWithVeto\x1a\x04\x88\xa3\x1e\x00*\xcc\x02\n\x0eProposalStatus\x12.\n\x1bPROPOSAL_STATUS_UNSPECIFIED\x10\x00\x1a\r\x8a\x9d \tStatusNil\x12;\n\x1ePROPOSAL_STATUS_DEPOSIT_PERIOD\x10\x01\x1a\x17\x8a\x9d \x13StatusDepositPeriod\x12\x39\n\x1dPROPOSAL_STATUS_VOTING_PERIOD\x10\x02\x1a\x16\x8a\x9d \x12StatusVotingPeriod\x12,\n\x16PROPOSAL_STATUS_PASSED\x10\x03\x1a\x10\x8a\x9d \x0cStatusPassed\x12\x30\n\x18PROPOSAL_STATUS_REJECTED\x10\x04\x1a\x12\x8a\x9d \x0eStatusRejected\x12,\n\x16PROPOSAL_STATUS_FAILED\x10\x05\x1a\x10\x8a\x9d \x0cStatusFailed\x1a\x04\x88\xa3\x1e\x00\x42\x36Z(github.com/cosmos/cosmos-sdk/x/gov/types\xd8\xe1\x1e\x00\x80\xe2\x1e\x00\xc8\xe1\x1e\x00\x62\x06proto3' + serialized_pb=b'\n\x1c\x63osmos/gov/v1beta1/gov.proto\x12\x12\x63osmos.gov.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\"\x95\x01\n\x12WeightedVoteOption\x12.\n\x06option\x18\x01 \x01(\x0e\x32\x1e.cosmos.gov.v1beta1.VoteOption\x12O\n\x06weight\x18\x02 \x01(\tB?\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xc8\xde\x1f\x00\xf2\xde\x1f\ryaml:\"weight\"\"C\n\x0cTextProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t:\x0f\xd2\xb4-\x07\x43ontent\xe8\xa0\x1f\x01\"\xb0\x01\n\x07\x44\x65posit\x12+\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x16\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\x11\n\tdepositor\x18\x02 \x01(\t\x12[\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\xfc\x05\n\x08Proposal\x12(\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x13\xea\xde\x1f\x02id\xf2\xde\x1f\tyaml:\"id\"\x12\x32\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x0b\xca\xb4-\x07\x43ontent\x12N\n\x06status\x18\x03 \x01(\x0e\x32\".cosmos.gov.v1beta1.ProposalStatusB\x1a\xf2\xde\x1f\x16yaml:\"proposal_status\"\x12^\n\x12\x66inal_tally_result\x18\x04 \x01(\x0b\x32\x1f.cosmos.gov.v1beta1.TallyResultB!\xc8\xde\x1f\x00\xf2\xde\x1f\x19yaml:\"final_tally_result\"\x12O\n\x0bsubmit_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x1e\x90\xdf\x1f\x01\xc8\xde\x1f\x00\xf2\xde\x1f\x12yaml:\"submit_time\"\x12Y\n\x10\x64\x65posit_end_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB#\x90\xdf\x1f\x01\xc8\xde\x1f\x00\xf2\xde\x1f\x17yaml:\"deposit_end_time\"\x12z\n\rtotal_deposit\x18\x07 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBH\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x14yaml:\"total_deposit\"\x12[\n\x11voting_start_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB$\x90\xdf\x1f\x01\xc8\xde\x1f\x00\xf2\xde\x1f\x18yaml:\"voting_start_time\"\x12W\n\x0fvoting_end_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\"\x90\xdf\x1f\x01\xc8\xde\x1f\x00\xf2\xde\x1f\x16yaml:\"voting_end_time\":\x04\xe8\xa0\x1f\x01\"\xaa\x02\n\x0bTallyResult\x12;\n\x03yes\x18\x01 \x01(\tB.\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xc8\xde\x1f\x00\x12?\n\x07\x61\x62stain\x18\x02 \x01(\tB.\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xc8\xde\x1f\x00\x12:\n\x02no\x18\x03 \x01(\tB.\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xc8\xde\x1f\x00\x12[\n\x0cno_with_veto\x18\x04 \x01(\tBE\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Int\xc8\xde\x1f\x00\xf2\xde\x1f\x13yaml:\"no_with_veto\":\x04\xe8\xa0\x1f\x01\"\xbf\x01\n\x04Vote\x12+\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x16\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\r\n\x05voter\x18\x02 \x01(\t\x12\x32\n\x06option\x18\x03 \x01(\x0e\x32\x1e.cosmos.gov.v1beta1.VoteOptionB\x02\x18\x01\x12=\n\x07options\x18\x04 \x03(\x0b\x32&.cosmos.gov.v1beta1.WeightedVoteOptionB\x04\xc8\xde\x1f\x00:\x08\x98\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x9f\x02\n\rDepositParams\x12\x8f\x01\n\x0bmin_deposit\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB_\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x12yaml:\"min_deposit\"\xea\xde\x1f\x15min_deposit,omitempty\x12|\n\x12max_deposit_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationBE\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xea\xde\x1f\x1cmax_deposit_period,omitempty\xf2\xde\x1f\x19yaml:\"max_deposit_period\"\"}\n\x0cVotingParams\x12m\n\rvoting_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB;\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xea\xde\x1f\x17voting_period,omitempty\xf2\xde\x1f\x14yaml:\"voting_period\"\"\xb8\x02\n\x0bTallyParams\x12R\n\x06quorum\x18\x01 \x01(\x0c\x42\x42\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xc8\xde\x1f\x00\xea\xde\x1f\x10quorum,omitempty\x12X\n\tthreshold\x18\x02 \x01(\x0c\x42\x45\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xc8\xde\x1f\x00\xea\xde\x1f\x13threshold,omitempty\x12{\n\x0eveto_threshold\x18\x03 \x01(\x0c\x42\x63\xda\xde\x1f&github.com/cosmos/cosmos-sdk/types.Dec\xc8\xde\x1f\x00\xea\xde\x1f\x18veto_threshold,omitempty\xf2\xde\x1f\x15yaml:\"veto_threshold\"*\xe6\x01\n\nVoteOption\x12,\n\x17VOTE_OPTION_UNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bOptionEmpty\x12\"\n\x0fVOTE_OPTION_YES\x10\x01\x1a\r\x8a\x9d \tOptionYes\x12*\n\x13VOTE_OPTION_ABSTAIN\x10\x02\x1a\x11\x8a\x9d \rOptionAbstain\x12 \n\x0eVOTE_OPTION_NO\x10\x03\x1a\x0c\x8a\x9d \x08OptionNo\x12\x32\n\x18VOTE_OPTION_NO_WITH_VETO\x10\x04\x1a\x14\x8a\x9d \x10OptionNoWithVeto\x1a\x04\x88\xa3\x1e\x00*\xcc\x02\n\x0eProposalStatus\x12.\n\x1bPROPOSAL_STATUS_UNSPECIFIED\x10\x00\x1a\r\x8a\x9d \tStatusNil\x12;\n\x1ePROPOSAL_STATUS_DEPOSIT_PERIOD\x10\x01\x1a\x17\x8a\x9d \x13StatusDepositPeriod\x12\x39\n\x1dPROPOSAL_STATUS_VOTING_PERIOD\x10\x02\x1a\x16\x8a\x9d \x12StatusVotingPeriod\x12,\n\x16PROPOSAL_STATUS_PASSED\x10\x03\x1a\x10\x8a\x9d \x0cStatusPassed\x12\x30\n\x18PROPOSAL_STATUS_REJECTED\x10\x04\x1a\x12\x8a\x9d \x0eStatusRejected\x12,\n\x16PROPOSAL_STATUS_FAILED\x10\x05\x1a\x10\x8a\x9d \x0cStatusFailed\x1a\x04\x88\xa3\x1e\x00\x42\x36Z(github.com/cosmos/cosmos-sdk/x/gov/types\xd8\xe1\x1e\x00\x80\xe2\x1e\x00\xc8\xe1\x1e\x00\x62\x06proto3' , dependencies=[cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) @@ -65,8 +65,8 @@ ], containing_type=None, serialized_options=b'\210\243\036\000', - serialized_start=2400, - serialized_end=2630, + serialized_start=2620, + serialized_end=2850, ) _sym_db.RegisterEnumDescriptor(_VOTEOPTION) @@ -111,8 +111,8 @@ ], containing_type=None, serialized_options=b'\210\243\036\000', - serialized_start=2633, - serialized_end=2965, + serialized_start=2853, + serialized_end=3185, ) _sym_db.RegisterEnumDescriptor(_PROPOSALSTATUS) @@ -131,6 +131,45 @@ +_WEIGHTEDVOTEOPTION = _descriptor.Descriptor( + name='WeightedVoteOption', + full_name='cosmos.gov.v1beta1.WeightedVoteOption', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='option', full_name='cosmos.gov.v1beta1.WeightedVoteOption.option', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='weight', full_name='cosmos.gov.v1beta1.WeightedVoteOption.weight', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\332\336\037&github.com/cosmos/cosmos-sdk/types.Dec\310\336\037\000\362\336\037\ryaml:\"weight\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=226, + serialized_end=375, +) + + _TEXTPROPOSAL = _descriptor.Descriptor( name='TextProposal', full_name='cosmos.gov.v1beta1.TextProposal', @@ -165,8 +204,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=225, - serialized_end=292, + serialized_start=377, + serialized_end=444, ) @@ -211,8 +250,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=295, - serialized_end=471, + serialized_start=447, + serialized_end=623, ) @@ -299,8 +338,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=474, - serialized_end=1238, + serialized_start=626, + serialized_end=1390, ) @@ -352,8 +391,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1241, - serialized_end=1539, + serialized_start=1393, + serialized_end=1691, ) @@ -385,7 +424,14 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\030\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='options', full_name='cosmos.gov.v1beta1.Vote.options', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -398,8 +444,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1541, - serialized_end=1665, + serialized_start=1694, + serialized_end=1885, ) @@ -437,8 +483,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1668, - serialized_end=1955, + serialized_start=1888, + serialized_end=2175, ) @@ -469,8 +515,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1957, - serialized_end=2082, + serialized_start=2177, + serialized_end=2302, ) @@ -515,10 +561,11 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2085, - serialized_end=2397, + serialized_start=2305, + serialized_end=2617, ) +_WEIGHTEDVOTEOPTION.fields_by_name['option'].enum_type = _VOTEOPTION _DEPOSIT.fields_by_name['amount'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN _PROPOSAL.fields_by_name['content'].message_type = google_dot_protobuf_dot_any__pb2._ANY _PROPOSAL.fields_by_name['status'].enum_type = _PROPOSALSTATUS @@ -529,9 +576,11 @@ _PROPOSAL.fields_by_name['voting_start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _PROPOSAL.fields_by_name['voting_end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _VOTE.fields_by_name['option'].enum_type = _VOTEOPTION +_VOTE.fields_by_name['options'].message_type = _WEIGHTEDVOTEOPTION _DEPOSITPARAMS.fields_by_name['min_deposit'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN _DEPOSITPARAMS.fields_by_name['max_deposit_period'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION _VOTINGPARAMS.fields_by_name['voting_period'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name['WeightedVoteOption'] = _WEIGHTEDVOTEOPTION DESCRIPTOR.message_types_by_name['TextProposal'] = _TEXTPROPOSAL DESCRIPTOR.message_types_by_name['Deposit'] = _DEPOSIT DESCRIPTOR.message_types_by_name['Proposal'] = _PROPOSAL @@ -544,6 +593,13 @@ DESCRIPTOR.enum_types_by_name['ProposalStatus'] = _PROPOSALSTATUS _sym_db.RegisterFileDescriptor(DESCRIPTOR) +WeightedVoteOption = _reflection.GeneratedProtocolMessageType('WeightedVoteOption', (_message.Message,), { + 'DESCRIPTOR' : _WEIGHTEDVOTEOPTION, + '__module__' : 'cosmos.gov.v1beta1.gov_pb2' + # @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.WeightedVoteOption) + }) +_sym_db.RegisterMessage(WeightedVoteOption) + TextProposal = _reflection.GeneratedProtocolMessageType('TextProposal', (_message.Message,), { 'DESCRIPTOR' : _TEXTPROPOSAL, '__module__' : 'cosmos.gov.v1beta1.gov_pb2' @@ -615,6 +671,7 @@ _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_PASSED"]._options = None _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_REJECTED"]._options = None _PROPOSALSTATUS.values_by_name["PROPOSAL_STATUS_FAILED"]._options = None +_WEIGHTEDVOTEOPTION.fields_by_name['weight']._options = None _TEXTPROPOSAL._options = None _DEPOSIT.fields_by_name['proposal_id']._options = None _DEPOSIT.fields_by_name['amount']._options = None @@ -635,6 +692,8 @@ _TALLYRESULT.fields_by_name['no_with_veto']._options = None _TALLYRESULT._options = None _VOTE.fields_by_name['proposal_id']._options = None +_VOTE.fields_by_name['option']._options = None +_VOTE.fields_by_name['options']._options = None _VOTE._options = None _DEPOSITPARAMS.fields_by_name['min_deposit']._options = None _DEPOSITPARAMS.fields_by_name['max_deposit_period']._options = None diff --git a/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi deleted file mode 100644 index 49776bb..0000000 --- a/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi +++ /dev/null @@ -1,235 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class VoteOption(metaclass=_VoteOption): - V = typing.NewType('V', builtins.int) - -global___VoteOption = VoteOption - -VOTE_OPTION_UNSPECIFIED = VoteOption.V(0) -VOTE_OPTION_YES = VoteOption.V(1) -VOTE_OPTION_ABSTAIN = VoteOption.V(2) -VOTE_OPTION_NO = VoteOption.V(3) -VOTE_OPTION_NO_WITH_VETO = VoteOption.V(4) - -class _VoteOption(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[VoteOption.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - VOTE_OPTION_UNSPECIFIED = VoteOption.V(0) - VOTE_OPTION_YES = VoteOption.V(1) - VOTE_OPTION_ABSTAIN = VoteOption.V(2) - VOTE_OPTION_NO = VoteOption.V(3) - VOTE_OPTION_NO_WITH_VETO = VoteOption.V(4) - -class ProposalStatus(metaclass=_ProposalStatus): - V = typing.NewType('V', builtins.int) - -global___ProposalStatus = ProposalStatus - -PROPOSAL_STATUS_UNSPECIFIED = ProposalStatus.V(0) -PROPOSAL_STATUS_DEPOSIT_PERIOD = ProposalStatus.V(1) -PROPOSAL_STATUS_VOTING_PERIOD = ProposalStatus.V(2) -PROPOSAL_STATUS_PASSED = ProposalStatus.V(3) -PROPOSAL_STATUS_REJECTED = ProposalStatus.V(4) -PROPOSAL_STATUS_FAILED = ProposalStatus.V(5) - -class _ProposalStatus(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ProposalStatus.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - PROPOSAL_STATUS_UNSPECIFIED = ProposalStatus.V(0) - PROPOSAL_STATUS_DEPOSIT_PERIOD = ProposalStatus.V(1) - PROPOSAL_STATUS_VOTING_PERIOD = ProposalStatus.V(2) - PROPOSAL_STATUS_PASSED = ProposalStatus.V(3) - PROPOSAL_STATUS_REJECTED = ProposalStatus.V(4) - PROPOSAL_STATUS_FAILED = ProposalStatus.V(5) - -class TextProposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TITLE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - title: typing.Text = ... - description: typing.Text = ... - - def __init__(self, - *, - title : typing.Text = ..., - description : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"title",b"title"]) -> None: ... -global___TextProposal = TextProposal - -class Deposit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - DEPOSITOR_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - depositor: typing.Text = ... - - @property - def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - depositor : typing.Text = ..., - amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... -global___Deposit = Deposit - -class Proposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - STATUS_FIELD_NUMBER: builtins.int - FINAL_TALLY_RESULT_FIELD_NUMBER: builtins.int - SUBMIT_TIME_FIELD_NUMBER: builtins.int - DEPOSIT_END_TIME_FIELD_NUMBER: builtins.int - TOTAL_DEPOSIT_FIELD_NUMBER: builtins.int - VOTING_START_TIME_FIELD_NUMBER: builtins.int - VOTING_END_TIME_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - status: global___ProposalStatus.V = ... - - @property - def content(self) -> google.protobuf.any_pb2.Any: ... - - @property - def final_tally_result(self) -> global___TallyResult: ... - - @property - def submit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - @property - def deposit_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - @property - def total_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - @property - def voting_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - @property - def voting_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - content : typing.Optional[google.protobuf.any_pb2.Any] = ..., - status : global___ProposalStatus.V = ..., - final_tally_result : typing.Optional[global___TallyResult] = ..., - submit_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - deposit_end_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - total_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - voting_start_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - voting_end_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"content",b"content",u"deposit_end_time",b"deposit_end_time",u"final_tally_result",b"final_tally_result",u"submit_time",b"submit_time",u"voting_end_time",b"voting_end_time",u"voting_start_time",b"voting_start_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"content",b"content",u"deposit_end_time",b"deposit_end_time",u"final_tally_result",b"final_tally_result",u"proposal_id",b"proposal_id",u"status",b"status",u"submit_time",b"submit_time",u"total_deposit",b"total_deposit",u"voting_end_time",b"voting_end_time",u"voting_start_time",b"voting_start_time"]) -> None: ... -global___Proposal = Proposal - -class TallyResult(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - YES_FIELD_NUMBER: builtins.int - ABSTAIN_FIELD_NUMBER: builtins.int - NO_FIELD_NUMBER: builtins.int - NO_WITH_VETO_FIELD_NUMBER: builtins.int - yes: typing.Text = ... - abstain: typing.Text = ... - no: typing.Text = ... - no_with_veto: typing.Text = ... - - def __init__(self, - *, - yes : typing.Text = ..., - abstain : typing.Text = ..., - no : typing.Text = ..., - no_with_veto : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"abstain",b"abstain",u"no",b"no",u"no_with_veto",b"no_with_veto",u"yes",b"yes"]) -> None: ... -global___TallyResult = TallyResult - -class Vote(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - VOTER_FIELD_NUMBER: builtins.int - OPTION_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - voter: typing.Text = ... - option: global___VoteOption.V = ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - voter : typing.Text = ..., - option : global___VoteOption.V = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"option",b"option",u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... -global___Vote = Vote - -class DepositParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MIN_DEPOSIT_FIELD_NUMBER: builtins.int - MAX_DEPOSIT_PERIOD_FIELD_NUMBER: builtins.int - - @property - def min_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - @property - def max_deposit_period(self) -> google.protobuf.duration_pb2.Duration: ... - - def __init__(self, - *, - min_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - max_deposit_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"max_deposit_period",b"max_deposit_period"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max_deposit_period",b"max_deposit_period",u"min_deposit",b"min_deposit"]) -> None: ... -global___DepositParams = DepositParams - -class VotingParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VOTING_PERIOD_FIELD_NUMBER: builtins.int - - @property - def voting_period(self) -> google.protobuf.duration_pb2.Duration: ... - - def __init__(self, - *, - voting_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"voting_period",b"voting_period"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"voting_period",b"voting_period"]) -> None: ... -global___VotingParams = VotingParams - -class TallyParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - QUORUM_FIELD_NUMBER: builtins.int - THRESHOLD_FIELD_NUMBER: builtins.int - VETO_THRESHOLD_FIELD_NUMBER: builtins.int - quorum: builtins.bytes = ... - threshold: builtins.bytes = ... - veto_threshold: builtins.bytes = ... - - def __init__(self, - *, - quorum : builtins.bytes = ..., - threshold : builtins.bytes = ..., - veto_threshold : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"quorum",b"quorum",u"threshold",b"threshold",u"veto_threshold",b"veto_threshold"]) -> None: ... -global___TallyParams = TallyParams diff --git a/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi deleted file mode 100644 index 2b57cd3..0000000 --- a/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .gov_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi deleted file mode 100644 index 030812d..0000000 --- a/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,285 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import cosmos.gov.v1beta1.gov_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryProposalRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... -global___QueryProposalRequest = QueryProposalRequest - -class QueryProposalResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_FIELD_NUMBER: builtins.int - - @property - def proposal(self) -> cosmos.gov.v1beta1.gov_pb2.Proposal: ... - - def __init__(self, - *, - proposal : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Proposal] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proposal",b"proposal"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"proposal",b"proposal"]) -> None: ... -global___QueryProposalResponse = QueryProposalResponse - -class QueryProposalsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_STATUS_FIELD_NUMBER: builtins.int - VOTER_FIELD_NUMBER: builtins.int - DEPOSITOR_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - proposal_status: cosmos.gov.v1beta1.gov_pb2.ProposalStatus.V = ... - voter: typing.Text = ... - depositor: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - proposal_status : cosmos.gov.v1beta1.gov_pb2.ProposalStatus.V = ..., - voter : typing.Text = ..., - depositor : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"depositor",b"depositor",u"pagination",b"pagination",u"proposal_status",b"proposal_status",u"voter",b"voter"]) -> None: ... -global___QueryProposalsRequest = QueryProposalsRequest - -class QueryProposalsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSALS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Proposal]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - proposals : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Proposal]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"proposals",b"proposals"]) -> None: ... -global___QueryProposalsResponse = QueryProposalsResponse - -class QueryVoteRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - VOTER_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - voter: typing.Text = ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - voter : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... -global___QueryVoteRequest = QueryVoteRequest - -class QueryVoteResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VOTE_FIELD_NUMBER: builtins.int - - @property - def vote(self) -> cosmos.gov.v1beta1.gov_pb2.Vote: ... - - def __init__(self, - *, - vote : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Vote] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"vote",b"vote"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"vote",b"vote"]) -> None: ... -global___QueryVoteResponse = QueryVoteResponse - -class QueryVotesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"proposal_id",b"proposal_id"]) -> None: ... -global___QueryVotesRequest = QueryVotesRequest - -class QueryVotesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VOTES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Vote]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - votes : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Vote]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"votes",b"votes"]) -> None: ... -global___QueryVotesResponse = QueryVotesResponse - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_TYPE_FIELD_NUMBER: builtins.int - params_type: typing.Text = ... - - def __init__(self, - *, - params_type : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params_type",b"params_type"]) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VOTING_PARAMS_FIELD_NUMBER: builtins.int - DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int - TALLY_PARAMS_FIELD_NUMBER: builtins.int - - @property - def voting_params(self) -> cosmos.gov.v1beta1.gov_pb2.VotingParams: ... - - @property - def deposit_params(self) -> cosmos.gov.v1beta1.gov_pb2.DepositParams: ... - - @property - def tally_params(self) -> cosmos.gov.v1beta1.gov_pb2.TallyParams: ... - - def __init__(self, - *, - voting_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.VotingParams] = ..., - deposit_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.DepositParams] = ..., - tally_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyParams] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse - -class QueryDepositRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - DEPOSITOR_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - depositor: typing.Text = ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - depositor : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... -global___QueryDepositRequest = QueryDepositRequest - -class QueryDepositResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DEPOSIT_FIELD_NUMBER: builtins.int - - @property - def deposit(self) -> cosmos.gov.v1beta1.gov_pb2.Deposit: ... - - def __init__(self, - *, - deposit : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Deposit] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"deposit",b"deposit"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"deposit",b"deposit"]) -> None: ... -global___QueryDepositResponse = QueryDepositResponse - -class QueryDepositsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"proposal_id",b"proposal_id"]) -> None: ... -global___QueryDepositsRequest = QueryDepositsRequest - -class QueryDepositsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DEPOSITS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Deposit]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - deposits : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Deposit]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"deposits",b"deposits",u"pagination",b"pagination"]) -> None: ... -global___QueryDepositsResponse = QueryDepositsResponse - -class QueryTallyResultRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... -global___QueryTallyResultRequest = QueryTallyResultRequest - -class QueryTallyResultResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TALLY_FIELD_NUMBER: builtins.int - - @property - def tally(self) -> cosmos.gov.v1beta1.gov_pb2.TallyResult: ... - - def __init__(self, - *, - tally : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyResult] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"tally",b"tally"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"tally",b"tally"]) -> None: ... -global___QueryTallyResultResponse = QueryTallyResultResponse diff --git a/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 3f5cfef..0000000 --- a/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,94 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Proposal:grpc.UnaryUnaryMultiCallable[ - global___QueryProposalRequest, - global___QueryProposalResponse] = ... - - Proposals:grpc.UnaryUnaryMultiCallable[ - global___QueryProposalsRequest, - global___QueryProposalsResponse] = ... - - Vote:grpc.UnaryUnaryMultiCallable[ - global___QueryVoteRequest, - global___QueryVoteResponse] = ... - - Votes:grpc.UnaryUnaryMultiCallable[ - global___QueryVotesRequest, - global___QueryVotesResponse] = ... - - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - Deposit:grpc.UnaryUnaryMultiCallable[ - global___QueryDepositRequest, - global___QueryDepositResponse] = ... - - Deposits:grpc.UnaryUnaryMultiCallable[ - global___QueryDepositsRequest, - global___QueryDepositsResponse] = ... - - TallyResult:grpc.UnaryUnaryMultiCallable[ - global___QueryTallyResultRequest, - global___QueryTallyResultResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Proposal(self, - request: global___QueryProposalRequest, - context: grpc.ServicerContext, - ) -> global___QueryProposalResponse: ... - - @abc.abstractmethod - def Proposals(self, - request: global___QueryProposalsRequest, - context: grpc.ServicerContext, - ) -> global___QueryProposalsResponse: ... - - @abc.abstractmethod - def Vote(self, - request: global___QueryVoteRequest, - context: grpc.ServicerContext, - ) -> global___QueryVoteResponse: ... - - @abc.abstractmethod - def Votes(self, - request: global___QueryVotesRequest, - context: grpc.ServicerContext, - ) -> global___QueryVotesResponse: ... - - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - @abc.abstractmethod - def Deposit(self, - request: global___QueryDepositRequest, - context: grpc.ServicerContext, - ) -> global___QueryDepositResponse: ... - - @abc.abstractmethod - def Deposits(self, - request: global___QueryDepositsRequest, - context: grpc.ServicerContext, - ) -> global___QueryDepositsResponse: ... - - @abc.abstractmethod - def TallyResult(self, - request: global___QueryTallyResultRequest, - context: grpc.ServicerContext, - ) -> global___QueryTallyResultResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/gov/v1beta1/tx_pb2.py b/pyband/proto/cosmos/gov/v1beta1/tx_pb2.py index 76f6b44..a858c17 100644 --- a/pyband/proto/cosmos/gov/v1beta1/tx_pb2.py +++ b/pyband/proto/cosmos/gov/v1beta1/tx_pb2.py @@ -24,7 +24,7 @@ syntax='proto3', serialized_options=b'Z(github.com/cosmos/cosmos-sdk/x/gov/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1b\x63osmos/gov/v1beta1/tx.proto\x12\x12\x63osmos.gov.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1c\x63osmos/gov/v1beta1/gov.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"\xeb\x01\n\x11MsgSubmitProposal\x12\x32\n\x07\x63ontent\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x0b\xca\xb4-\x07\x43ontent\x12~\n\x0finitial_deposit\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBJ\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x16yaml:\"initial_deposit\"\x12\x10\n\x08proposer\x18\x03 \x01(\t:\x10\xe8\xa0\x1f\x00\x98\xa0\x1f\x00\x80\xdc \x00\x88\xa0\x1f\x00\"W\n\x19MsgSubmitProposalResponse\x12:\n\x0bproposal_id\x18\x01 \x01(\x04\x42%\xea\xde\x1f\x0bproposal_id\xf2\xde\x1f\x12yaml:\"proposal_id\"\"\x96\x01\n\x07MsgVote\x12:\n\x0bproposal_id\x18\x01 \x01(\x04\x42%\xea\xde\x1f\x0bproposal_id\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\r\n\x05voter\x18\x02 \x01(\t\x12.\n\x06option\x18\x03 \x01(\x0e\x32\x1e.cosmos.gov.v1beta1.VoteOption:\x10\xe8\xa0\x1f\x00\x98\xa0\x1f\x00\x80\xdc \x00\x88\xa0\x1f\x00\"\x11\n\x0fMsgVoteResponse\"\xca\x01\n\nMsgDeposit\x12:\n\x0bproposal_id\x18\x01 \x01(\x04\x42%\xea\xde\x1f\x0bproposal_id\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\x11\n\tdepositor\x18\x02 \x01(\t\x12[\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x10\xe8\xa0\x1f\x00\x98\xa0\x1f\x00\x80\xdc \x00\x88\xa0\x1f\x00\"\x14\n\x12MsgDepositResponse2\x8a\x02\n\x03Msg\x12\x66\n\x0eSubmitProposal\x12%.cosmos.gov.v1beta1.MsgSubmitProposal\x1a-.cosmos.gov.v1beta1.MsgSubmitProposalResponse\x12H\n\x04Vote\x12\x1b.cosmos.gov.v1beta1.MsgVote\x1a#.cosmos.gov.v1beta1.MsgVoteResponse\x12Q\n\x07\x44\x65posit\x12\x1e.cosmos.gov.v1beta1.MsgDeposit\x1a&.cosmos.gov.v1beta1.MsgDepositResponseB*Z(github.com/cosmos/cosmos-sdk/x/gov/typesb\x06proto3' + serialized_pb=b'\n\x1b\x63osmos/gov/v1beta1/tx.proto\x12\x12\x63osmos.gov.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1c\x63osmos/gov/v1beta1/gov.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"\xeb\x01\n\x11MsgSubmitProposal\x12\x32\n\x07\x63ontent\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x0b\xca\xb4-\x07\x43ontent\x12~\n\x0finitial_deposit\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBJ\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x16yaml:\"initial_deposit\"\x12\x10\n\x08proposer\x18\x03 \x01(\t:\x10\xe8\xa0\x1f\x00\x98\xa0\x1f\x00\x80\xdc \x00\x88\xa0\x1f\x00\"W\n\x19MsgSubmitProposalResponse\x12:\n\x0bproposal_id\x18\x01 \x01(\x04\x42%\xea\xde\x1f\x0bproposal_id\xf2\xde\x1f\x12yaml:\"proposal_id\"\"\x96\x01\n\x07MsgVote\x12:\n\x0bproposal_id\x18\x01 \x01(\x04\x42%\xea\xde\x1f\x0bproposal_id\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\r\n\x05voter\x18\x02 \x01(\t\x12.\n\x06option\x18\x03 \x01(\x0e\x32\x1e.cosmos.gov.v1beta1.VoteOption:\x10\xe8\xa0\x1f\x00\x98\xa0\x1f\x00\x80\xdc \x00\x88\xa0\x1f\x00\"\x11\n\x0fMsgVoteResponse\"\x9e\x01\n\x0fMsgVoteWeighted\x12+\n\x0bproposal_id\x18\x01 \x01(\x04\x42\x16\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\r\n\x05voter\x18\x02 \x01(\t\x12=\n\x07options\x18\x03 \x03(\x0b\x32&.cosmos.gov.v1beta1.WeightedVoteOptionB\x04\xc8\xde\x1f\x00:\x10\xe8\xa0\x1f\x00\x98\xa0\x1f\x00\x80\xdc \x00\x88\xa0\x1f\x00\"\x19\n\x17MsgVoteWeightedResponse\"\xca\x01\n\nMsgDeposit\x12:\n\x0bproposal_id\x18\x01 \x01(\x04\x42%\xea\xde\x1f\x0bproposal_id\xf2\xde\x1f\x12yaml:\"proposal_id\"\x12\x11\n\tdepositor\x18\x02 \x01(\t\x12[\n\x06\x61mount\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x10\xe8\xa0\x1f\x00\x98\xa0\x1f\x00\x80\xdc \x00\x88\xa0\x1f\x00\"\x14\n\x12MsgDepositResponse2\xec\x02\n\x03Msg\x12\x66\n\x0eSubmitProposal\x12%.cosmos.gov.v1beta1.MsgSubmitProposal\x1a-.cosmos.gov.v1beta1.MsgSubmitProposalResponse\x12H\n\x04Vote\x12\x1b.cosmos.gov.v1beta1.MsgVote\x1a#.cosmos.gov.v1beta1.MsgVoteResponse\x12`\n\x0cVoteWeighted\x12#.cosmos.gov.v1beta1.MsgVoteWeighted\x1a+.cosmos.gov.v1beta1.MsgVoteWeightedResponse\x12Q\n\x07\x44\x65posit\x12\x1e.cosmos.gov.v1beta1.MsgDeposit\x1a&.cosmos.gov.v1beta1.MsgDepositResponseB*Z(github.com/cosmos/cosmos-sdk/x/gov/typesb\x06proto3' , dependencies=[cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,cosmos_dot_gov_dot_v1beta1_dot_gov__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) @@ -180,6 +180,77 @@ ) +_MSGVOTEWEIGHTED = _descriptor.Descriptor( + name='MsgVoteWeighted', + full_name='cosmos.gov.v1beta1.MsgVoteWeighted', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='proposal_id', full_name='cosmos.gov.v1beta1.MsgVoteWeighted.proposal_id', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\022yaml:\"proposal_id\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='voter', full_name='cosmos.gov.v1beta1.MsgVoteWeighted.voter', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='options', full_name='cosmos.gov.v1beta1.MsgVoteWeighted.options', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\350\240\037\000\230\240\037\000\200\334 \000\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=689, + serialized_end=847, +) + + +_MSGVOTEWEIGHTEDRESPONSE = _descriptor.Descriptor( + name='MsgVoteWeightedResponse', + full_name='cosmos.gov.v1beta1.MsgVoteWeightedResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=849, + serialized_end=874, +) + + _MSGDEPOSIT = _descriptor.Descriptor( name='MsgDeposit', full_name='cosmos.gov.v1beta1.MsgDeposit', @@ -221,8 +292,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=689, - serialized_end=891, + serialized_start=877, + serialized_end=1079, ) @@ -246,18 +317,21 @@ extension_ranges=[], oneofs=[ ], - serialized_start=893, - serialized_end=913, + serialized_start=1081, + serialized_end=1101, ) _MSGSUBMITPROPOSAL.fields_by_name['content'].message_type = google_dot_protobuf_dot_any__pb2._ANY _MSGSUBMITPROPOSAL.fields_by_name['initial_deposit'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN _MSGVOTE.fields_by_name['option'].enum_type = cosmos_dot_gov_dot_v1beta1_dot_gov__pb2._VOTEOPTION +_MSGVOTEWEIGHTED.fields_by_name['options'].message_type = cosmos_dot_gov_dot_v1beta1_dot_gov__pb2._WEIGHTEDVOTEOPTION _MSGDEPOSIT.fields_by_name['amount'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN DESCRIPTOR.message_types_by_name['MsgSubmitProposal'] = _MSGSUBMITPROPOSAL DESCRIPTOR.message_types_by_name['MsgSubmitProposalResponse'] = _MSGSUBMITPROPOSALRESPONSE DESCRIPTOR.message_types_by_name['MsgVote'] = _MSGVOTE DESCRIPTOR.message_types_by_name['MsgVoteResponse'] = _MSGVOTERESPONSE +DESCRIPTOR.message_types_by_name['MsgVoteWeighted'] = _MSGVOTEWEIGHTED +DESCRIPTOR.message_types_by_name['MsgVoteWeightedResponse'] = _MSGVOTEWEIGHTEDRESPONSE DESCRIPTOR.message_types_by_name['MsgDeposit'] = _MSGDEPOSIT DESCRIPTOR.message_types_by_name['MsgDepositResponse'] = _MSGDEPOSITRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -290,6 +364,20 @@ }) _sym_db.RegisterMessage(MsgVoteResponse) +MsgVoteWeighted = _reflection.GeneratedProtocolMessageType('MsgVoteWeighted', (_message.Message,), { + 'DESCRIPTOR' : _MSGVOTEWEIGHTED, + '__module__' : 'cosmos.gov.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.MsgVoteWeighted) + }) +_sym_db.RegisterMessage(MsgVoteWeighted) + +MsgVoteWeightedResponse = _reflection.GeneratedProtocolMessageType('MsgVoteWeightedResponse', (_message.Message,), { + 'DESCRIPTOR' : _MSGVOTEWEIGHTEDRESPONSE, + '__module__' : 'cosmos.gov.v1beta1.tx_pb2' + # @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.MsgVoteWeightedResponse) + }) +_sym_db.RegisterMessage(MsgVoteWeightedResponse) + MsgDeposit = _reflection.GeneratedProtocolMessageType('MsgDeposit', (_message.Message,), { 'DESCRIPTOR' : _MSGDEPOSIT, '__module__' : 'cosmos.gov.v1beta1.tx_pb2' @@ -312,6 +400,9 @@ _MSGSUBMITPROPOSALRESPONSE.fields_by_name['proposal_id']._options = None _MSGVOTE.fields_by_name['proposal_id']._options = None _MSGVOTE._options = None +_MSGVOTEWEIGHTED.fields_by_name['proposal_id']._options = None +_MSGVOTEWEIGHTED.fields_by_name['options']._options = None +_MSGVOTEWEIGHTED._options = None _MSGDEPOSIT.fields_by_name['proposal_id']._options = None _MSGDEPOSIT.fields_by_name['amount']._options = None _MSGDEPOSIT._options = None @@ -323,8 +414,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=916, - serialized_end=1182, + serialized_start=1104, + serialized_end=1468, methods=[ _descriptor.MethodDescriptor( name='SubmitProposal', @@ -346,10 +437,20 @@ serialized_options=None, create_key=_descriptor._internal_create_key, ), + _descriptor.MethodDescriptor( + name='VoteWeighted', + full_name='cosmos.gov.v1beta1.Msg.VoteWeighted', + index=2, + containing_service=None, + input_type=_MSGVOTEWEIGHTED, + output_type=_MSGVOTEWEIGHTEDRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), _descriptor.MethodDescriptor( name='Deposit', full_name='cosmos.gov.v1beta1.Msg.Deposit', - index=2, + index=3, containing_service=None, input_type=_MSGDEPOSIT, output_type=_MSGDEPOSITRESPONSE, diff --git a/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi deleted file mode 100644 index 8d0aa17..0000000 --- a/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,102 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import cosmos.gov.v1beta1.gov_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgSubmitProposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONTENT_FIELD_NUMBER: builtins.int - INITIAL_DEPOSIT_FIELD_NUMBER: builtins.int - PROPOSER_FIELD_NUMBER: builtins.int - proposer: typing.Text = ... - - @property - def content(self) -> google.protobuf.any_pb2.Any: ... - - @property - def initial_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - content : typing.Optional[google.protobuf.any_pb2.Any] = ..., - initial_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - proposer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"content",b"content"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"content",b"content",u"initial_deposit",b"initial_deposit",u"proposer",b"proposer"]) -> None: ... -global___MsgSubmitProposal = MsgSubmitProposal - -class MsgSubmitProposalResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... -global___MsgSubmitProposalResponse = MsgSubmitProposalResponse - -class MsgVote(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - VOTER_FIELD_NUMBER: builtins.int - OPTION_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - voter: typing.Text = ... - option: cosmos.gov.v1beta1.gov_pb2.VoteOption.V = ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - voter : typing.Text = ..., - option : cosmos.gov.v1beta1.gov_pb2.VoteOption.V = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"option",b"option",u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... -global___MsgVote = MsgVote - -class MsgVoteResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgVoteResponse = MsgVoteResponse - -class MsgDeposit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROPOSAL_ID_FIELD_NUMBER: builtins.int - DEPOSITOR_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - proposal_id: builtins.int = ... - depositor: typing.Text = ... - - @property - def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - proposal_id : builtins.int = ..., - depositor : typing.Text = ..., - amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... -global___MsgDeposit = MsgDeposit - -class MsgDepositResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgDepositResponse = MsgDepositResponse diff --git a/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.py b/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.py index 300b5c3..55651ca 100644 --- a/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.py +++ b/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.py @@ -25,6 +25,11 @@ def __init__(self, channel): request_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVote.SerializeToString, response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteResponse.FromString, ) + self.VoteWeighted = channel.unary_unary( + '/cosmos.gov.v1beta1.Msg/VoteWeighted', + request_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeighted.SerializeToString, + response_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeightedResponse.FromString, + ) self.Deposit = channel.unary_unary( '/cosmos.gov.v1beta1.Msg/Deposit', request_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgDeposit.SerializeToString, @@ -50,6 +55,13 @@ def Vote(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def VoteWeighted(self, request, context): + """VoteWeighted defines a method to add a weighted vote on a specific proposal. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def Deposit(self, request, context): """Deposit defines a method to add deposit on a specific proposal. """ @@ -70,6 +82,11 @@ def add_MsgServicer_to_server(servicer, server): request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVote.FromString, response_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteResponse.SerializeToString, ), + 'VoteWeighted': grpc.unary_unary_rpc_method_handler( + servicer.VoteWeighted, + request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeighted.FromString, + response_serializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeightedResponse.SerializeToString, + ), 'Deposit': grpc.unary_unary_rpc_method_handler( servicer.Deposit, request_deserializer=cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgDeposit.FromString, @@ -120,6 +137,23 @@ def Vote(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def VoteWeighted(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.gov.v1beta1.Msg/VoteWeighted', + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeighted.SerializeToString, + cosmos_dot_gov_dot_v1beta1_dot_tx__pb2.MsgVoteWeightedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def Deposit(request, target, diff --git a/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index d97268e..0000000 --- a/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,44 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - SubmitProposal:grpc.UnaryUnaryMultiCallable[ - global___MsgSubmitProposal, - global___MsgSubmitProposalResponse] = ... - - Vote:grpc.UnaryUnaryMultiCallable[ - global___MsgVote, - global___MsgVoteResponse] = ... - - Deposit:grpc.UnaryUnaryMultiCallable[ - global___MsgDeposit, - global___MsgDepositResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def SubmitProposal(self, - request: global___MsgSubmitProposal, - context: grpc.ServicerContext, - ) -> global___MsgSubmitProposalResponse: ... - - @abc.abstractmethod - def Vote(self, - request: global___MsgVote, - context: grpc.ServicerContext, - ) -> global___MsgVoteResponse: ... - - @abc.abstractmethod - def Deposit(self, - request: global___MsgDeposit, - context: grpc.ServicerContext, - ) -> global___MsgDepositResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi deleted file mode 100644 index d05c401..0000000 --- a/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,32 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.mint.v1beta1.mint_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MINTER_FIELD_NUMBER: builtins.int - PARAMS_FIELD_NUMBER: builtins.int - - @property - def minter(self) -> cosmos.mint.v1beta1.mint_pb2.Minter: ... - - @property - def params(self) -> cosmos.mint.v1beta1.mint_pb2.Params: ... - - def __init__(self, - *, - minter : typing.Optional[cosmos.mint.v1beta1.mint_pb2.Minter] = ..., - params : typing.Optional[cosmos.mint.v1beta1.mint_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"minter",b"minter",u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"minter",b"minter",u"params",b"params"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi deleted file mode 100644 index c747c2b..0000000 --- a/pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi +++ /dev/null @@ -1,53 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Minter(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INFLATION_FIELD_NUMBER: builtins.int - ANNUAL_PROVISIONS_FIELD_NUMBER: builtins.int - inflation: typing.Text = ... - annual_provisions: typing.Text = ... - - def __init__(self, - *, - inflation : typing.Text = ..., - annual_provisions : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"annual_provisions",b"annual_provisions",u"inflation",b"inflation"]) -> None: ... -global___Minter = Minter - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MINT_DENOM_FIELD_NUMBER: builtins.int - INFLATION_RATE_CHANGE_FIELD_NUMBER: builtins.int - INFLATION_MAX_FIELD_NUMBER: builtins.int - INFLATION_MIN_FIELD_NUMBER: builtins.int - GOAL_BONDED_FIELD_NUMBER: builtins.int - BLOCKS_PER_YEAR_FIELD_NUMBER: builtins.int - mint_denom: typing.Text = ... - inflation_rate_change: typing.Text = ... - inflation_max: typing.Text = ... - inflation_min: typing.Text = ... - goal_bonded: typing.Text = ... - blocks_per_year: builtins.int = ... - - def __init__(self, - *, - mint_denom : typing.Text = ..., - inflation_rate_change : typing.Text = ..., - inflation_max : typing.Text = ..., - inflation_min : typing.Text = ..., - goal_bonded : typing.Text = ..., - blocks_per_year : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"blocks_per_year",b"blocks_per_year",u"goal_bonded",b"goal_bonded",u"inflation_max",b"inflation_max",u"inflation_min",b"inflation_min",u"inflation_rate_change",b"inflation_rate_change",u"mint_denom",b"mint_denom"]) -> None: ... -global___Params = Params diff --git a/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi deleted file mode 100644 index 39a9d03..0000000 --- a/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .mint_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi deleted file mode 100644 index 4ea66eb..0000000 --- a/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,72 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.mint.v1beta1.mint_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.mint.v1beta1.mint_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.mint.v1beta1.mint_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse - -class QueryInflationRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryInflationRequest = QueryInflationRequest - -class QueryInflationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INFLATION_FIELD_NUMBER: builtins.int - inflation: builtins.bytes = ... - - def __init__(self, - *, - inflation : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"inflation",b"inflation"]) -> None: ... -global___QueryInflationResponse = QueryInflationResponse - -class QueryAnnualProvisionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryAnnualProvisionsRequest = QueryAnnualProvisionsRequest - -class QueryAnnualProvisionsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ANNUAL_PROVISIONS_FIELD_NUMBER: builtins.int - annual_provisions: builtins.bytes = ... - - def __init__(self, - *, - annual_provisions : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"annual_provisions",b"annual_provisions"]) -> None: ... -global___QueryAnnualProvisionsResponse = QueryAnnualProvisionsResponse diff --git a/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 6193137..0000000 --- a/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,44 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - Inflation:grpc.UnaryUnaryMultiCallable[ - global___QueryInflationRequest, - global___QueryInflationResponse] = ... - - AnnualProvisions:grpc.UnaryUnaryMultiCallable[ - global___QueryAnnualProvisionsRequest, - global___QueryAnnualProvisionsResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - @abc.abstractmethod - def Inflation(self, - request: global___QueryInflationRequest, - context: grpc.ServicerContext, - ) -> global___QueryInflationResponse: ... - - @abc.abstractmethod - def AnnualProvisions(self, - request: global___QueryAnnualProvisionsRequest, - context: grpc.ServicerContext, - ) -> global___QueryAnnualProvisionsResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/params/v1beta1/params_pb2.pyi b/pyband/proto/cosmos/params/v1beta1/params_pb2.pyi deleted file mode 100644 index d4f478a..0000000 --- a/pyband/proto/cosmos/params/v1beta1/params_pb2.pyi +++ /dev/null @@ -1,50 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class ParameterChangeProposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TITLE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - CHANGES_FIELD_NUMBER: builtins.int - title: typing.Text = ... - description: typing.Text = ... - - @property - def changes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParamChange]: ... - - def __init__(self, - *, - title : typing.Text = ..., - description : typing.Text = ..., - changes : typing.Optional[typing.Iterable[global___ParamChange]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"changes",b"changes",u"description",b"description",u"title",b"title"]) -> None: ... -global___ParameterChangeProposal = ParameterChangeProposal - -class ParamChange(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SUBSPACE_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - subspace: typing.Text = ... - key: typing.Text = ... - value: typing.Text = ... - - def __init__(self, - *, - subspace : typing.Text = ..., - key : typing.Text = ..., - value : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"subspace",b"subspace",u"value",b"value"]) -> None: ... -global___ParamChange = ParamChange diff --git a/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi b/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi deleted file mode 100644 index 72a5115..0000000 --- a/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .params_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi deleted file mode 100644 index b90d6c2..0000000 --- a/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,42 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.params.v1beta1.params_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SUBSPACE_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - subspace: typing.Text = ... - key: typing.Text = ... - - def __init__(self, - *, - subspace : typing.Text = ..., - key : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"subspace",b"subspace"]) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAM_FIELD_NUMBER: builtins.int - - @property - def param(self) -> cosmos.params.v1beta1.params_pb2.ParamChange: ... - - def __init__(self, - *, - param : typing.Optional[cosmos.params.v1beta1.params_pb2.ParamChange] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"param",b"param"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"param",b"param"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index a8f9381..0000000 --- a/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,24 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi deleted file mode 100644 index f58e60e..0000000 --- a/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,88 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.slashing.v1beta1.slashing_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - SIGNING_INFOS_FIELD_NUMBER: builtins.int - MISSED_BLOCKS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: ... - - @property - def signing_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SigningInfo]: ... - - @property - def missed_blocks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorMissedBlocks]: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.Params] = ..., - signing_infos : typing.Optional[typing.Iterable[global___SigningInfo]] = ..., - missed_blocks : typing.Optional[typing.Iterable[global___ValidatorMissedBlocks]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"missed_blocks",b"missed_blocks",u"params",b"params",u"signing_infos",b"signing_infos"]) -> None: ... -global___GenesisState = GenesisState - -class SigningInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_SIGNING_INFO_FIELD_NUMBER: builtins.int - address: typing.Text = ... - - @property - def validator_signing_info(self) -> cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo: ... - - def __init__(self, - *, - address : typing.Text = ..., - validator_signing_info : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"validator_signing_info",b"validator_signing_info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"validator_signing_info",b"validator_signing_info"]) -> None: ... -global___SigningInfo = SigningInfo - -class ValidatorMissedBlocks(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - MISSED_BLOCKS_FIELD_NUMBER: builtins.int - address: typing.Text = ... - - @property - def missed_blocks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MissedBlock]: ... - - def __init__(self, - *, - address : typing.Text = ..., - missed_blocks : typing.Optional[typing.Iterable[global___MissedBlock]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"missed_blocks",b"missed_blocks"]) -> None: ... -global___ValidatorMissedBlocks = ValidatorMissedBlocks - -class MissedBlock(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INDEX_FIELD_NUMBER: builtins.int - MISSED_FIELD_NUMBER: builtins.int - index: builtins.int = ... - missed: builtins.bool = ... - - def __init__(self, - *, - index : builtins.int = ..., - missed : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"missed",b"missed"]) -> None: ... -global___MissedBlock = MissedBlock diff --git a/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi deleted file mode 100644 index d3fe717..0000000 --- a/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,98 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import cosmos.slashing.v1beta1.slashing_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse - -class QuerySigningInfoRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONS_ADDRESS_FIELD_NUMBER: builtins.int - cons_address: typing.Text = ... - - def __init__(self, - *, - cons_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"cons_address",b"cons_address"]) -> None: ... -global___QuerySigningInfoRequest = QuerySigningInfoRequest - -class QuerySigningInfoResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VAL_SIGNING_INFO_FIELD_NUMBER: builtins.int - - @property - def val_signing_info(self) -> cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo: ... - - def __init__(self, - *, - val_signing_info : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"val_signing_info",b"val_signing_info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"val_signing_info",b"val_signing_info"]) -> None: ... -global___QuerySigningInfoResponse = QuerySigningInfoResponse - -class QuerySigningInfosRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... -global___QuerySigningInfosRequest = QuerySigningInfosRequest - -class QuerySigningInfosResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INFO_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - info : typing.Optional[typing.Iterable[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"info",b"info",u"pagination",b"pagination"]) -> None: ... -global___QuerySigningInfosResponse = QuerySigningInfosResponse diff --git a/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 35986fb..0000000 --- a/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,44 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - SigningInfo:grpc.UnaryUnaryMultiCallable[ - global___QuerySigningInfoRequest, - global___QuerySigningInfoResponse] = ... - - SigningInfos:grpc.UnaryUnaryMultiCallable[ - global___QuerySigningInfosRequest, - global___QuerySigningInfosResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - @abc.abstractmethod - def SigningInfo(self, - request: global___QuerySigningInfoRequest, - context: grpc.ServicerContext, - ) -> global___QuerySigningInfoResponse: ... - - @abc.abstractmethod - def SigningInfos(self, - request: global___QuerySigningInfosRequest, - context: grpc.ServicerContext, - ) -> global___QuerySigningInfosResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi deleted file mode 100644 index c1de7ae..0000000 --- a/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi +++ /dev/null @@ -1,70 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class ValidatorSigningInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - START_HEIGHT_FIELD_NUMBER: builtins.int - INDEX_OFFSET_FIELD_NUMBER: builtins.int - JAILED_UNTIL_FIELD_NUMBER: builtins.int - TOMBSTONED_FIELD_NUMBER: builtins.int - MISSED_BLOCKS_COUNTER_FIELD_NUMBER: builtins.int - address: typing.Text = ... - start_height: builtins.int = ... - index_offset: builtins.int = ... - tombstoned: builtins.bool = ... - missed_blocks_counter: builtins.int = ... - - @property - def jailed_until(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - address : typing.Text = ..., - start_height : builtins.int = ..., - index_offset : builtins.int = ..., - jailed_until : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - tombstoned : builtins.bool = ..., - missed_blocks_counter : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"jailed_until",b"jailed_until"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"index_offset",b"index_offset",u"jailed_until",b"jailed_until",u"missed_blocks_counter",b"missed_blocks_counter",u"start_height",b"start_height",u"tombstoned",b"tombstoned"]) -> None: ... -global___ValidatorSigningInfo = ValidatorSigningInfo - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIGNED_BLOCKS_WINDOW_FIELD_NUMBER: builtins.int - MIN_SIGNED_PER_WINDOW_FIELD_NUMBER: builtins.int - DOWNTIME_JAIL_DURATION_FIELD_NUMBER: builtins.int - SLASH_FRACTION_DOUBLE_SIGN_FIELD_NUMBER: builtins.int - SLASH_FRACTION_DOWNTIME_FIELD_NUMBER: builtins.int - signed_blocks_window: builtins.int = ... - min_signed_per_window: builtins.bytes = ... - slash_fraction_double_sign: builtins.bytes = ... - slash_fraction_downtime: builtins.bytes = ... - - @property - def downtime_jail_duration(self) -> google.protobuf.duration_pb2.Duration: ... - - def __init__(self, - *, - signed_blocks_window : builtins.int = ..., - min_signed_per_window : builtins.bytes = ..., - downtime_jail_duration : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - slash_fraction_double_sign : builtins.bytes = ..., - slash_fraction_downtime : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"downtime_jail_duration",b"downtime_jail_duration"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"downtime_jail_duration",b"downtime_jail_duration",u"min_signed_per_window",b"min_signed_per_window",u"signed_blocks_window",b"signed_blocks_window",u"slash_fraction_double_sign",b"slash_fraction_double_sign",u"slash_fraction_downtime",b"slash_fraction_downtime"]) -> None: ... -global___Params = Params diff --git a/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi deleted file mode 100644 index 7e5fee1..0000000 --- a/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .slashing_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi deleted file mode 100644 index 02dea09..0000000 --- a/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,30 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgUnjail(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - validator_addr: typing.Text = ... - - def __init__(self, - *, - validator_addr : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_addr",b"validator_addr"]) -> None: ... -global___MsgUnjail = MsgUnjail - -class MsgUnjailResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgUnjailResponse = MsgUnjailResponse diff --git a/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index a80b4f9..0000000 --- a/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,24 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Unjail:grpc.UnaryUnaryMultiCallable[ - global___MsgUnjail, - global___MsgUnjailResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Unjail(self, - request: global___MsgUnjail, - context: grpc.ServicerContext, - ) -> global___MsgUnjailResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/staking/v1beta1/authz_pb2.py b/pyband/proto/cosmos/staking/v1beta1/authz_pb2.py new file mode 100644 index 0000000..f1de320 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/authz_pb2.py @@ -0,0 +1,195 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: cosmos/staking/v1beta1/authz.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 +from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='cosmos/staking/v1beta1/authz.proto', + package='cosmos.staking.v1beta1', + syntax='proto3', + serialized_options=b'Z,github.com/cosmos/cosmos-sdk/x/staking/types', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n\"cosmos/staking/v1beta1/authz.proto\x12\x16\x63osmos.staking.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x90\x03\n\x12StakeAuthorization\x12Z\n\nmax_tokens\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB+\xaa\xdf\x1f\'github.com/cosmos/cosmos-sdk/types.Coin\x12K\n\nallow_list\x18\x02 \x01(\x0b\x32\x35.cosmos.staking.v1beta1.StakeAuthorization.ValidatorsH\x00\x12J\n\tdeny_list\x18\x03 \x01(\x0b\x32\x35.cosmos.staking.v1beta1.StakeAuthorization.ValidatorsH\x00\x12\x45\n\x12\x61uthorization_type\x18\x04 \x01(\x0e\x32).cosmos.staking.v1beta1.AuthorizationType\x1a\x1d\n\nValidators\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x03(\t:\x11\xd2\xb4-\rAuthorizationB\x0c\n\nvalidators*\x9e\x01\n\x11\x41uthorizationType\x12\"\n\x1e\x41UTHORIZATION_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTHORIZATION_TYPE_DELEGATE\x10\x01\x12!\n\x1d\x41UTHORIZATION_TYPE_UNDELEGATE\x10\x02\x12!\n\x1d\x41UTHORIZATION_TYPE_REDELEGATE\x10\x03\x42.Z,github.com/cosmos/cosmos-sdk/x/staking/typesb\x06proto3' + , + dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,]) + +_AUTHORIZATIONTYPE = _descriptor.EnumDescriptor( + name='AuthorizationType', + full_name='cosmos.staking.v1beta1.AuthorizationType', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='AUTHORIZATION_TYPE_UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='AUTHORIZATION_TYPE_DELEGATE', index=1, number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='AUTHORIZATION_TYPE_UNDELEGATE', index=2, number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='AUTHORIZATION_TYPE_REDELEGATE', index=3, number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=None, + serialized_start=547, + serialized_end=705, +) +_sym_db.RegisterEnumDescriptor(_AUTHORIZATIONTYPE) + +AuthorizationType = enum_type_wrapper.EnumTypeWrapper(_AUTHORIZATIONTYPE) +AUTHORIZATION_TYPE_UNSPECIFIED = 0 +AUTHORIZATION_TYPE_DELEGATE = 1 +AUTHORIZATION_TYPE_UNDELEGATE = 2 +AUTHORIZATION_TYPE_REDELEGATE = 3 + + + +_STAKEAUTHORIZATION_VALIDATORS = _descriptor.Descriptor( + name='Validators', + full_name='cosmos.staking.v1beta1.StakeAuthorization.Validators', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='address', full_name='cosmos.staking.v1beta1.StakeAuthorization.Validators.address', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=482, + serialized_end=511, +) + +_STAKEAUTHORIZATION = _descriptor.Descriptor( + name='StakeAuthorization', + full_name='cosmos.staking.v1beta1.StakeAuthorization', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='max_tokens', full_name='cosmos.staking.v1beta1.StakeAuthorization.max_tokens', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\252\337\037\'github.com/cosmos/cosmos-sdk/types.Coin', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='allow_list', full_name='cosmos.staking.v1beta1.StakeAuthorization.allow_list', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='deny_list', full_name='cosmos.staking.v1beta1.StakeAuthorization.deny_list', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='authorization_type', full_name='cosmos.staking.v1beta1.StakeAuthorization.authorization_type', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[_STAKEAUTHORIZATION_VALIDATORS, ], + enum_types=[ + ], + serialized_options=b'\322\264-\rAuthorization', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='validators', full_name='cosmos.staking.v1beta1.StakeAuthorization.validators', + index=0, containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[]), + ], + serialized_start=144, + serialized_end=544, +) + +_STAKEAUTHORIZATION_VALIDATORS.containing_type = _STAKEAUTHORIZATION +_STAKEAUTHORIZATION.fields_by_name['max_tokens'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN +_STAKEAUTHORIZATION.fields_by_name['allow_list'].message_type = _STAKEAUTHORIZATION_VALIDATORS +_STAKEAUTHORIZATION.fields_by_name['deny_list'].message_type = _STAKEAUTHORIZATION_VALIDATORS +_STAKEAUTHORIZATION.fields_by_name['authorization_type'].enum_type = _AUTHORIZATIONTYPE +_STAKEAUTHORIZATION.oneofs_by_name['validators'].fields.append( + _STAKEAUTHORIZATION.fields_by_name['allow_list']) +_STAKEAUTHORIZATION.fields_by_name['allow_list'].containing_oneof = _STAKEAUTHORIZATION.oneofs_by_name['validators'] +_STAKEAUTHORIZATION.oneofs_by_name['validators'].fields.append( + _STAKEAUTHORIZATION.fields_by_name['deny_list']) +_STAKEAUTHORIZATION.fields_by_name['deny_list'].containing_oneof = _STAKEAUTHORIZATION.oneofs_by_name['validators'] +DESCRIPTOR.message_types_by_name['StakeAuthorization'] = _STAKEAUTHORIZATION +DESCRIPTOR.enum_types_by_name['AuthorizationType'] = _AUTHORIZATIONTYPE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +StakeAuthorization = _reflection.GeneratedProtocolMessageType('StakeAuthorization', (_message.Message,), { + + 'Validators' : _reflection.GeneratedProtocolMessageType('Validators', (_message.Message,), { + 'DESCRIPTOR' : _STAKEAUTHORIZATION_VALIDATORS, + '__module__' : 'cosmos.staking.v1beta1.authz_pb2' + # @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.StakeAuthorization.Validators) + }) + , + 'DESCRIPTOR' : _STAKEAUTHORIZATION, + '__module__' : 'cosmos.staking.v1beta1.authz_pb2' + # @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.StakeAuthorization) + }) +_sym_db.RegisterMessage(StakeAuthorization) +_sym_db.RegisterMessage(StakeAuthorization.Validators) + + +DESCRIPTOR._options = None +_STAKEAUTHORIZATION.fields_by_name['max_tokens']._options = None +_STAKEAUTHORIZATION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.py b/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi deleted file mode 100644 index 34b7aea..0000000 --- a/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi +++ /dev/null @@ -1,74 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.staking.v1beta1.staking_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - LAST_TOTAL_POWER_FIELD_NUMBER: builtins.int - LAST_VALIDATOR_POWERS_FIELD_NUMBER: builtins.int - VALIDATORS_FIELD_NUMBER: builtins.int - DELEGATIONS_FIELD_NUMBER: builtins.int - UNBONDING_DELEGATIONS_FIELD_NUMBER: builtins.int - REDELEGATIONS_FIELD_NUMBER: builtins.int - EXPORTED_FIELD_NUMBER: builtins.int - last_total_power: builtins.bytes = ... - exported: builtins.bool = ... - - @property - def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: ... - - @property - def last_validator_powers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LastValidatorPower]: ... - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... - - @property - def delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Delegation]: ... - - @property - def unbonding_delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... - - @property - def redelegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Redelegation]: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Params] = ..., - last_total_power : builtins.bytes = ..., - last_validator_powers : typing.Optional[typing.Iterable[global___LastValidatorPower]] = ..., - validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., - delegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Delegation]] = ..., - unbonding_delegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., - redelegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Redelegation]] = ..., - exported : builtins.bool = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegations",b"delegations",u"exported",b"exported",u"last_total_power",b"last_total_power",u"last_validator_powers",b"last_validator_powers",u"params",b"params",u"redelegations",b"redelegations",u"unbonding_delegations",b"unbonding_delegations",u"validators",b"validators"]) -> None: ... -global___GenesisState = GenesisState - -class LastValidatorPower(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - POWER_FIELD_NUMBER: builtins.int - address: typing.Text = ... - power: builtins.int = ... - - def __init__(self, - *, - address : typing.Text = ..., - power : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... -global___LastValidatorPower = LastValidatorPower diff --git a/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi deleted file mode 100644 index 9d0e516..0000000 --- a/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,474 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import cosmos.staking.v1beta1.staking_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryValidatorsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - STATUS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - status: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - status : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"status",b"status"]) -> None: ... -global___QueryValidatorsRequest = QueryValidatorsRequest - -class QueryValidatorsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATORS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... -global___QueryValidatorsResponse = QueryValidatorsResponse - -class QueryValidatorRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - validator_addr: typing.Text = ... - - def __init__(self, - *, - validator_addr : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_addr",b"validator_addr"]) -> None: ... -global___QueryValidatorRequest = QueryValidatorRequest - -class QueryValidatorResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_FIELD_NUMBER: builtins.int - - @property - def validator(self) -> cosmos.staking.v1beta1.staking_pb2.Validator: ... - - def __init__(self, - *, - validator : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Validator] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... -global___QueryValidatorResponse = QueryValidatorResponse - -class QueryValidatorDelegationsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - validator_addr: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - validator_addr : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"validator_addr",b"validator_addr"]) -> None: ... -global___QueryValidatorDelegationsRequest = QueryValidatorDelegationsRequest - -class QueryValidatorDelegationsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATION_RESPONSES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def delegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - delegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegation_responses",b"delegation_responses",u"pagination",b"pagination"]) -> None: ... -global___QueryValidatorDelegationsResponse = QueryValidatorDelegationsResponse - -class QueryValidatorUnbondingDelegationsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - validator_addr: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - validator_addr : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"validator_addr",b"validator_addr"]) -> None: ... -global___QueryValidatorUnbondingDelegationsRequest = QueryValidatorUnbondingDelegationsRequest - -class QueryValidatorUnbondingDelegationsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - UNBONDING_RESPONSES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def unbonding_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - unbonding_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"unbonding_responses",b"unbonding_responses"]) -> None: ... -global___QueryValidatorUnbondingDelegationsResponse = QueryValidatorUnbondingDelegationsResponse - -class QueryDelegationRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDR_FIELD_NUMBER: builtins.int - VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - delegator_addr: typing.Text = ... - validator_addr: typing.Text = ... - - def __init__(self, - *, - delegator_addr : typing.Text = ..., - validator_addr : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... -global___QueryDelegationRequest = QueryDelegationRequest - -class QueryDelegationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATION_RESPONSE_FIELD_NUMBER: builtins.int - - @property - def delegation_response(self) -> cosmos.staking.v1beta1.staking_pb2.DelegationResponse: ... - - def __init__(self, - *, - delegation_response : typing.Optional[cosmos.staking.v1beta1.staking_pb2.DelegationResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"delegation_response",b"delegation_response"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegation_response",b"delegation_response"]) -> None: ... -global___QueryDelegationResponse = QueryDelegationResponse - -class QueryUnbondingDelegationRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDR_FIELD_NUMBER: builtins.int - VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - delegator_addr: typing.Text = ... - validator_addr: typing.Text = ... - - def __init__(self, - *, - delegator_addr : typing.Text = ..., - validator_addr : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... -global___QueryUnbondingDelegationRequest = QueryUnbondingDelegationRequest - -class QueryUnbondingDelegationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - UNBOND_FIELD_NUMBER: builtins.int - - @property - def unbond(self) -> cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation: ... - - def __init__(self, - *, - unbond : typing.Optional[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"unbond",b"unbond"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"unbond",b"unbond"]) -> None: ... -global___QueryUnbondingDelegationResponse = QueryUnbondingDelegationResponse - -class QueryDelegatorDelegationsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDR_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - delegator_addr: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - delegator_addr : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... -global___QueryDelegatorDelegationsRequest = QueryDelegatorDelegationsRequest - -class QueryDelegatorDelegationsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATION_RESPONSES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def delegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - delegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegation_responses",b"delegation_responses",u"pagination",b"pagination"]) -> None: ... -global___QueryDelegatorDelegationsResponse = QueryDelegatorDelegationsResponse - -class QueryDelegatorUnbondingDelegationsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDR_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - delegator_addr: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - delegator_addr : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... -global___QueryDelegatorUnbondingDelegationsRequest = QueryDelegatorUnbondingDelegationsRequest - -class QueryDelegatorUnbondingDelegationsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - UNBONDING_RESPONSES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def unbonding_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - unbonding_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"unbonding_responses",b"unbonding_responses"]) -> None: ... -global___QueryDelegatorUnbondingDelegationsResponse = QueryDelegatorUnbondingDelegationsResponse - -class QueryRedelegationsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDR_FIELD_NUMBER: builtins.int - SRC_VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - DST_VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - delegator_addr: typing.Text = ... - src_validator_addr: typing.Text = ... - dst_validator_addr: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - delegator_addr : typing.Text = ..., - src_validator_addr : typing.Text = ..., - dst_validator_addr : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"dst_validator_addr",b"dst_validator_addr",u"pagination",b"pagination",u"src_validator_addr",b"src_validator_addr"]) -> None: ... -global___QueryRedelegationsRequest = QueryRedelegationsRequest - -class QueryRedelegationsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REDELEGATION_RESPONSES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def redelegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.RedelegationResponse]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - redelegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.RedelegationResponse]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"redelegation_responses",b"redelegation_responses"]) -> None: ... -global___QueryRedelegationsResponse = QueryRedelegationsResponse - -class QueryDelegatorValidatorsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDR_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - delegator_addr: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - delegator_addr : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... -global___QueryDelegatorValidatorsRequest = QueryDelegatorValidatorsRequest - -class QueryDelegatorValidatorsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATORS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... -global___QueryDelegatorValidatorsResponse = QueryDelegatorValidatorsResponse - -class QueryDelegatorValidatorRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDR_FIELD_NUMBER: builtins.int - VALIDATOR_ADDR_FIELD_NUMBER: builtins.int - delegator_addr: typing.Text = ... - validator_addr: typing.Text = ... - - def __init__(self, - *, - delegator_addr : typing.Text = ..., - validator_addr : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... -global___QueryDelegatorValidatorRequest = QueryDelegatorValidatorRequest - -class QueryDelegatorValidatorResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_FIELD_NUMBER: builtins.int - - @property - def validator(self) -> cosmos.staking.v1beta1.staking_pb2.Validator: ... - - def __init__(self, - *, - validator : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Validator] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... -global___QueryDelegatorValidatorResponse = QueryDelegatorValidatorResponse - -class QueryHistoricalInfoRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - height: builtins.int = ... - - def __init__(self, - *, - height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... -global___QueryHistoricalInfoRequest = QueryHistoricalInfoRequest - -class QueryHistoricalInfoResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HIST_FIELD_NUMBER: builtins.int - - @property - def hist(self) -> cosmos.staking.v1beta1.staking_pb2.HistoricalInfo: ... - - def __init__(self, - *, - hist : typing.Optional[cosmos.staking.v1beta1.staking_pb2.HistoricalInfo] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"hist",b"hist"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hist",b"hist"]) -> None: ... -global___QueryHistoricalInfoResponse = QueryHistoricalInfoResponse - -class QueryPoolRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryPoolRequest = QueryPoolRequest - -class QueryPoolResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - POOL_FIELD_NUMBER: builtins.int - - @property - def pool(self) -> cosmos.staking.v1beta1.staking_pb2.Pool: ... - - def __init__(self, - *, - pool : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Pool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> None: ... -global___QueryPoolResponse = QueryPoolResponse - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 1c9dcee..0000000 --- a/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,154 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Validators:grpc.UnaryUnaryMultiCallable[ - global___QueryValidatorsRequest, - global___QueryValidatorsResponse] = ... - - Validator:grpc.UnaryUnaryMultiCallable[ - global___QueryValidatorRequest, - global___QueryValidatorResponse] = ... - - ValidatorDelegations:grpc.UnaryUnaryMultiCallable[ - global___QueryValidatorDelegationsRequest, - global___QueryValidatorDelegationsResponse] = ... - - ValidatorUnbondingDelegations:grpc.UnaryUnaryMultiCallable[ - global___QueryValidatorUnbondingDelegationsRequest, - global___QueryValidatorUnbondingDelegationsResponse] = ... - - Delegation:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegationRequest, - global___QueryDelegationResponse] = ... - - UnbondingDelegation:grpc.UnaryUnaryMultiCallable[ - global___QueryUnbondingDelegationRequest, - global___QueryUnbondingDelegationResponse] = ... - - DelegatorDelegations:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegatorDelegationsRequest, - global___QueryDelegatorDelegationsResponse] = ... - - DelegatorUnbondingDelegations:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegatorUnbondingDelegationsRequest, - global___QueryDelegatorUnbondingDelegationsResponse] = ... - - Redelegations:grpc.UnaryUnaryMultiCallable[ - global___QueryRedelegationsRequest, - global___QueryRedelegationsResponse] = ... - - DelegatorValidators:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegatorValidatorsRequest, - global___QueryDelegatorValidatorsResponse] = ... - - DelegatorValidator:grpc.UnaryUnaryMultiCallable[ - global___QueryDelegatorValidatorRequest, - global___QueryDelegatorValidatorResponse] = ... - - HistoricalInfo:grpc.UnaryUnaryMultiCallable[ - global___QueryHistoricalInfoRequest, - global___QueryHistoricalInfoResponse] = ... - - Pool:grpc.UnaryUnaryMultiCallable[ - global___QueryPoolRequest, - global___QueryPoolResponse] = ... - - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Validators(self, - request: global___QueryValidatorsRequest, - context: grpc.ServicerContext, - ) -> global___QueryValidatorsResponse: ... - - @abc.abstractmethod - def Validator(self, - request: global___QueryValidatorRequest, - context: grpc.ServicerContext, - ) -> global___QueryValidatorResponse: ... - - @abc.abstractmethod - def ValidatorDelegations(self, - request: global___QueryValidatorDelegationsRequest, - context: grpc.ServicerContext, - ) -> global___QueryValidatorDelegationsResponse: ... - - @abc.abstractmethod - def ValidatorUnbondingDelegations(self, - request: global___QueryValidatorUnbondingDelegationsRequest, - context: grpc.ServicerContext, - ) -> global___QueryValidatorUnbondingDelegationsResponse: ... - - @abc.abstractmethod - def Delegation(self, - request: global___QueryDelegationRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegationResponse: ... - - @abc.abstractmethod - def UnbondingDelegation(self, - request: global___QueryUnbondingDelegationRequest, - context: grpc.ServicerContext, - ) -> global___QueryUnbondingDelegationResponse: ... - - @abc.abstractmethod - def DelegatorDelegations(self, - request: global___QueryDelegatorDelegationsRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegatorDelegationsResponse: ... - - @abc.abstractmethod - def DelegatorUnbondingDelegations(self, - request: global___QueryDelegatorUnbondingDelegationsRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegatorUnbondingDelegationsResponse: ... - - @abc.abstractmethod - def Redelegations(self, - request: global___QueryRedelegationsRequest, - context: grpc.ServicerContext, - ) -> global___QueryRedelegationsResponse: ... - - @abc.abstractmethod - def DelegatorValidators(self, - request: global___QueryDelegatorValidatorsRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegatorValidatorsResponse: ... - - @abc.abstractmethod - def DelegatorValidator(self, - request: global___QueryDelegatorValidatorRequest, - context: grpc.ServicerContext, - ) -> global___QueryDelegatorValidatorResponse: ... - - @abc.abstractmethod - def HistoricalInfo(self, - request: global___QueryHistoricalInfoRequest, - context: grpc.ServicerContext, - ) -> global___QueryHistoricalInfoResponse: ... - - @abc.abstractmethod - def Pool(self, - request: global___QueryPoolRequest, - context: grpc.ServicerContext, - ) -> global___QueryPoolResponse: ... - - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi deleted file mode 100644 index ced2f74..0000000 --- a/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi +++ /dev/null @@ -1,452 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import tendermint.types.types_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class BondStatus(metaclass=_BondStatus): - V = typing.NewType('V', builtins.int) - -global___BondStatus = BondStatus - -BOND_STATUS_UNSPECIFIED = BondStatus.V(0) -BOND_STATUS_UNBONDED = BondStatus.V(1) -BOND_STATUS_UNBONDING = BondStatus.V(2) -BOND_STATUS_BONDED = BondStatus.V(3) - -class _BondStatus(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[BondStatus.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - BOND_STATUS_UNSPECIFIED = BondStatus.V(0) - BOND_STATUS_UNBONDED = BondStatus.V(1) - BOND_STATUS_UNBONDING = BondStatus.V(2) - BOND_STATUS_BONDED = BondStatus.V(3) - -class HistoricalInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEADER_FIELD_NUMBER: builtins.int - VALSET_FIELD_NUMBER: builtins.int - - @property - def header(self) -> tendermint.types.types_pb2.Header: ... - - @property - def valset(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... - - def __init__(self, - *, - header : typing.Optional[tendermint.types.types_pb2.Header] = ..., - valset : typing.Optional[typing.Iterable[global___Validator]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"header",b"header"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"header",b"header",u"valset",b"valset"]) -> None: ... -global___HistoricalInfo = HistoricalInfo - -class CommissionRates(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - RATE_FIELD_NUMBER: builtins.int - MAX_RATE_FIELD_NUMBER: builtins.int - MAX_CHANGE_RATE_FIELD_NUMBER: builtins.int - rate: typing.Text = ... - max_rate: typing.Text = ... - max_change_rate: typing.Text = ... - - def __init__(self, - *, - rate : typing.Text = ..., - max_rate : typing.Text = ..., - max_change_rate : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max_change_rate",b"max_change_rate",u"max_rate",b"max_rate",u"rate",b"rate"]) -> None: ... -global___CommissionRates = CommissionRates - -class Commission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMISSION_RATES_FIELD_NUMBER: builtins.int - UPDATE_TIME_FIELD_NUMBER: builtins.int - - @property - def commission_rates(self) -> global___CommissionRates: ... - - @property - def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - commission_rates : typing.Optional[global___CommissionRates] = ..., - update_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"commission_rates",b"commission_rates",u"update_time",b"update_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commission_rates",b"commission_rates",u"update_time",b"update_time"]) -> None: ... -global___Commission = Commission - -class Description(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MONIKER_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - WEBSITE_FIELD_NUMBER: builtins.int - SECURITY_CONTACT_FIELD_NUMBER: builtins.int - DETAILS_FIELD_NUMBER: builtins.int - moniker: typing.Text = ... - identity: typing.Text = ... - website: typing.Text = ... - security_contact: typing.Text = ... - details: typing.Text = ... - - def __init__(self, - *, - moniker : typing.Text = ..., - identity : typing.Text = ..., - website : typing.Text = ..., - security_contact : typing.Text = ..., - details : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"details",b"details",u"identity",b"identity",u"moniker",b"moniker",u"security_contact",b"security_contact",u"website",b"website"]) -> None: ... -global___Description = Description - -class Validator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - OPERATOR_ADDRESS_FIELD_NUMBER: builtins.int - CONSENSUS_PUBKEY_FIELD_NUMBER: builtins.int - JAILED_FIELD_NUMBER: builtins.int - STATUS_FIELD_NUMBER: builtins.int - TOKENS_FIELD_NUMBER: builtins.int - DELEGATOR_SHARES_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - UNBONDING_HEIGHT_FIELD_NUMBER: builtins.int - UNBONDING_TIME_FIELD_NUMBER: builtins.int - COMMISSION_FIELD_NUMBER: builtins.int - MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int - operator_address: typing.Text = ... - jailed: builtins.bool = ... - status: global___BondStatus.V = ... - tokens: typing.Text = ... - delegator_shares: typing.Text = ... - unbonding_height: builtins.int = ... - min_self_delegation: typing.Text = ... - - @property - def consensus_pubkey(self) -> google.protobuf.any_pb2.Any: ... - - @property - def description(self) -> global___Description: ... - - @property - def unbonding_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - @property - def commission(self) -> global___Commission: ... - - def __init__(self, - *, - operator_address : typing.Text = ..., - consensus_pubkey : typing.Optional[google.protobuf.any_pb2.Any] = ..., - jailed : builtins.bool = ..., - status : global___BondStatus.V = ..., - tokens : typing.Text = ..., - delegator_shares : typing.Text = ..., - description : typing.Optional[global___Description] = ..., - unbonding_height : builtins.int = ..., - unbonding_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - commission : typing.Optional[global___Commission] = ..., - min_self_delegation : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"consensus_pubkey",b"consensus_pubkey",u"description",b"description",u"unbonding_time",b"unbonding_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"consensus_pubkey",b"consensus_pubkey",u"delegator_shares",b"delegator_shares",u"description",b"description",u"jailed",b"jailed",u"min_self_delegation",b"min_self_delegation",u"operator_address",b"operator_address",u"status",b"status",u"tokens",b"tokens",u"unbonding_height",b"unbonding_height",u"unbonding_time",b"unbonding_time"]) -> None: ... -global___Validator = Validator - -class ValAddresses(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESSES_FIELD_NUMBER: builtins.int - - @property - def addresses(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - addresses : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"addresses",b"addresses"]) -> None: ... -global___ValAddresses = ValAddresses - -class DVPair(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... -global___DVPair = DVPair - -class DVPairs(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAIRS_FIELD_NUMBER: builtins.int - - @property - def pairs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DVPair]: ... - - def __init__(self, - *, - pairs : typing.Optional[typing.Iterable[global___DVPair]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pairs",b"pairs"]) -> None: ... -global___DVPairs = DVPairs - -class DVVTriplet(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_src_address: typing.Text = ... - validator_dst_address: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_src_address : typing.Text = ..., - validator_dst_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... -global___DVVTriplet = DVVTriplet - -class DVVTriplets(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TRIPLETS_FIELD_NUMBER: builtins.int - - @property - def triplets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DVVTriplet]: ... - - def __init__(self, - *, - triplets : typing.Optional[typing.Iterable[global___DVVTriplet]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"triplets",b"triplets"]) -> None: ... -global___DVVTriplets = DVVTriplets - -class Delegation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - SHARES_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - shares: typing.Text = ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - shares : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"shares",b"shares",u"validator_address",b"validator_address"]) -> None: ... -global___Delegation = Delegation - -class UnbondingDelegation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - ENTRIES_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - - @property - def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UnbondingDelegationEntry]: ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - entries : typing.Optional[typing.Iterable[global___UnbondingDelegationEntry]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"entries",b"entries",u"validator_address",b"validator_address"]) -> None: ... -global___UnbondingDelegation = UnbondingDelegation - -class UnbondingDelegationEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CREATION_HEIGHT_FIELD_NUMBER: builtins.int - COMPLETION_TIME_FIELD_NUMBER: builtins.int - INITIAL_BALANCE_FIELD_NUMBER: builtins.int - BALANCE_FIELD_NUMBER: builtins.int - creation_height: builtins.int = ... - initial_balance: typing.Text = ... - balance: typing.Text = ... - - @property - def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - creation_height : builtins.int = ..., - completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - initial_balance : typing.Text = ..., - balance : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"completion_time",b"completion_time",u"creation_height",b"creation_height",u"initial_balance",b"initial_balance"]) -> None: ... -global___UnbondingDelegationEntry = UnbondingDelegationEntry - -class RedelegationEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CREATION_HEIGHT_FIELD_NUMBER: builtins.int - COMPLETION_TIME_FIELD_NUMBER: builtins.int - INITIAL_BALANCE_FIELD_NUMBER: builtins.int - SHARES_DST_FIELD_NUMBER: builtins.int - creation_height: builtins.int = ... - initial_balance: typing.Text = ... - shares_dst: typing.Text = ... - - @property - def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - creation_height : builtins.int = ..., - completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - initial_balance : typing.Text = ..., - shares_dst : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time",u"creation_height",b"creation_height",u"initial_balance",b"initial_balance",u"shares_dst",b"shares_dst"]) -> None: ... -global___RedelegationEntry = RedelegationEntry - -class Redelegation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int - ENTRIES_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_src_address: typing.Text = ... - validator_dst_address: typing.Text = ... - - @property - def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RedelegationEntry]: ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_src_address : typing.Text = ..., - validator_dst_address : typing.Text = ..., - entries : typing.Optional[typing.Iterable[global___RedelegationEntry]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"entries",b"entries",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... -global___Redelegation = Redelegation - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - UNBONDING_TIME_FIELD_NUMBER: builtins.int - MAX_VALIDATORS_FIELD_NUMBER: builtins.int - MAX_ENTRIES_FIELD_NUMBER: builtins.int - HISTORICAL_ENTRIES_FIELD_NUMBER: builtins.int - BOND_DENOM_FIELD_NUMBER: builtins.int - max_validators: builtins.int = ... - max_entries: builtins.int = ... - historical_entries: builtins.int = ... - bond_denom: typing.Text = ... - - @property - def unbonding_time(self) -> google.protobuf.duration_pb2.Duration: ... - - def __init__(self, - *, - unbonding_time : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - max_validators : builtins.int = ..., - max_entries : builtins.int = ..., - historical_entries : builtins.int = ..., - bond_denom : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"unbonding_time",b"unbonding_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"bond_denom",b"bond_denom",u"historical_entries",b"historical_entries",u"max_entries",b"max_entries",u"max_validators",b"max_validators",u"unbonding_time",b"unbonding_time"]) -> None: ... -global___Params = Params - -class DelegationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATION_FIELD_NUMBER: builtins.int - BALANCE_FIELD_NUMBER: builtins.int - - @property - def delegation(self) -> global___Delegation: ... - - @property - def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - def __init__(self, - *, - delegation : typing.Optional[global___Delegation] = ..., - balance : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"delegation",b"delegation"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"delegation",b"delegation"]) -> None: ... -global___DelegationResponse = DelegationResponse - -class RedelegationEntryResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REDELEGATION_ENTRY_FIELD_NUMBER: builtins.int - BALANCE_FIELD_NUMBER: builtins.int - balance: typing.Text = ... - - @property - def redelegation_entry(self) -> global___RedelegationEntry: ... - - def __init__(self, - *, - redelegation_entry : typing.Optional[global___RedelegationEntry] = ..., - balance : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"redelegation_entry",b"redelegation_entry"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"redelegation_entry",b"redelegation_entry"]) -> None: ... -global___RedelegationEntryResponse = RedelegationEntryResponse - -class RedelegationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REDELEGATION_FIELD_NUMBER: builtins.int - ENTRIES_FIELD_NUMBER: builtins.int - - @property - def redelegation(self) -> global___Redelegation: ... - - @property - def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RedelegationEntryResponse]: ... - - def __init__(self, - *, - redelegation : typing.Optional[global___Redelegation] = ..., - entries : typing.Optional[typing.Iterable[global___RedelegationEntryResponse]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"redelegation",b"redelegation"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries",u"redelegation",b"redelegation"]) -> None: ... -global___RedelegationResponse = RedelegationResponse - -class Pool(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NOT_BONDED_TOKENS_FIELD_NUMBER: builtins.int - BONDED_TOKENS_FIELD_NUMBER: builtins.int - not_bonded_tokens: typing.Text = ... - bonded_tokens: typing.Text = ... - - def __init__(self, - *, - not_bonded_tokens : typing.Text = ..., - bonded_tokens : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"bonded_tokens",b"bonded_tokens",u"not_bonded_tokens",b"not_bonded_tokens"]) -> None: ... -global___Pool = Pool diff --git a/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi deleted file mode 100644 index 6268dbf..0000000 --- a/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .staking_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi deleted file mode 100644 index 52f76d9..0000000 --- a/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,195 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import cosmos.staking.v1beta1.staking_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgCreateValidator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DESCRIPTION_FIELD_NUMBER: builtins.int - COMMISSION_FIELD_NUMBER: builtins.int - MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - PUBKEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - min_self_delegation: typing.Text = ... - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - - @property - def description(self) -> cosmos.staking.v1beta1.staking_pb2.Description: ... - - @property - def commission(self) -> cosmos.staking.v1beta1.staking_pb2.CommissionRates: ... - - @property - def pubkey(self) -> google.protobuf.any_pb2.Any: ... - - @property - def value(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - def __init__(self, - *, - description : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Description] = ..., - commission : typing.Optional[cosmos.staking.v1beta1.staking_pb2.CommissionRates] = ..., - min_self_delegation : typing.Text = ..., - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - pubkey : typing.Optional[google.protobuf.any_pb2.Any] = ..., - value : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"description",b"description",u"pubkey",b"pubkey",u"value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"delegator_address",b"delegator_address",u"description",b"description",u"min_self_delegation",b"min_self_delegation",u"pubkey",b"pubkey",u"validator_address",b"validator_address",u"value",b"value"]) -> None: ... -global___MsgCreateValidator = MsgCreateValidator - -class MsgCreateValidatorResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgCreateValidatorResponse = MsgCreateValidatorResponse - -class MsgEditValidator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DESCRIPTION_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - COMMISSION_RATE_FIELD_NUMBER: builtins.int - MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - commission_rate: typing.Text = ... - min_self_delegation: typing.Text = ... - - @property - def description(self) -> cosmos.staking.v1beta1.staking_pb2.Description: ... - - def __init__(self, - *, - description : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Description] = ..., - validator_address : typing.Text = ..., - commission_rate : typing.Text = ..., - min_self_delegation : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"description",b"description"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commission_rate",b"commission_rate",u"description",b"description",u"min_self_delegation",b"min_self_delegation",u"validator_address",b"validator_address"]) -> None: ... -global___MsgEditValidator = MsgEditValidator - -class MsgEditValidatorResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgEditValidatorResponse = MsgEditValidatorResponse - -class MsgDelegate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - - @property - def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... -global___MsgDelegate = MsgDelegate - -class MsgDelegateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgDelegateResponse = MsgDelegateResponse - -class MsgBeginRedelegate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_src_address: typing.Text = ... - validator_dst_address: typing.Text = ... - - @property - def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_src_address : typing.Text = ..., - validator_dst_address : typing.Text = ..., - amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... -global___MsgBeginRedelegate = MsgBeginRedelegate - -class MsgBeginRedelegateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMPLETION_TIME_FIELD_NUMBER: builtins.int - - @property - def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> None: ... -global___MsgBeginRedelegateResponse = MsgBeginRedelegateResponse - -class MsgUndelegate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - delegator_address: typing.Text = ... - validator_address: typing.Text = ... - - @property - def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - def __init__(self, - *, - delegator_address : typing.Text = ..., - validator_address : typing.Text = ..., - amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... -global___MsgUndelegate = MsgUndelegate - -class MsgUndelegateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMPLETION_TIME_FIELD_NUMBER: builtins.int - - @property - def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> None: ... -global___MsgUndelegateResponse = MsgUndelegateResponse diff --git a/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index 6701a0f..0000000 --- a/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,64 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - CreateValidator:grpc.UnaryUnaryMultiCallable[ - global___MsgCreateValidator, - global___MsgCreateValidatorResponse] = ... - - EditValidator:grpc.UnaryUnaryMultiCallable[ - global___MsgEditValidator, - global___MsgEditValidatorResponse] = ... - - Delegate:grpc.UnaryUnaryMultiCallable[ - global___MsgDelegate, - global___MsgDelegateResponse] = ... - - BeginRedelegate:grpc.UnaryUnaryMultiCallable[ - global___MsgBeginRedelegate, - global___MsgBeginRedelegateResponse] = ... - - Undelegate:grpc.UnaryUnaryMultiCallable[ - global___MsgUndelegate, - global___MsgUndelegateResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def CreateValidator(self, - request: global___MsgCreateValidator, - context: grpc.ServicerContext, - ) -> global___MsgCreateValidatorResponse: ... - - @abc.abstractmethod - def EditValidator(self, - request: global___MsgEditValidator, - context: grpc.ServicerContext, - ) -> global___MsgEditValidatorResponse: ... - - @abc.abstractmethod - def Delegate(self, - request: global___MsgDelegate, - context: grpc.ServicerContext, - ) -> global___MsgDelegateResponse: ... - - @abc.abstractmethod - def BeginRedelegate(self, - request: global___MsgBeginRedelegate, - context: grpc.ServicerContext, - ) -> global___MsgBeginRedelegateResponse: ... - - @abc.abstractmethod - def Undelegate(self, - request: global___MsgUndelegate, - context: grpc.ServicerContext, - ) -> global___MsgUndelegateResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi deleted file mode 100644 index 1b6ef8e..0000000 --- a/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi +++ /dev/null @@ -1,122 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.crypto.multisig.v1beta1.multisig_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class SignMode(metaclass=_SignMode): - V = typing.NewType('V', builtins.int) - -global___SignMode = SignMode - -SIGN_MODE_UNSPECIFIED = SignMode.V(0) -SIGN_MODE_DIRECT = SignMode.V(1) -SIGN_MODE_TEXTUAL = SignMode.V(2) -SIGN_MODE_LEGACY_AMINO_JSON = SignMode.V(127) - -class _SignMode(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SignMode.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - SIGN_MODE_UNSPECIFIED = SignMode.V(0) - SIGN_MODE_DIRECT = SignMode.V(1) - SIGN_MODE_TEXTUAL = SignMode.V(2) - SIGN_MODE_LEGACY_AMINO_JSON = SignMode.V(127) - -class SignatureDescriptors(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIGNATURES_FIELD_NUMBER: builtins.int - - @property - def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignatureDescriptor]: ... - - def __init__(self, - *, - signatures : typing.Optional[typing.Iterable[global___SignatureDescriptor]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"signatures",b"signatures"]) -> None: ... -global___SignatureDescriptors = SignatureDescriptors - -class SignatureDescriptor(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Data(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Single(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MODE_FIELD_NUMBER: builtins.int - SIGNATURE_FIELD_NUMBER: builtins.int - mode: global___SignMode.V = ... - signature: builtins.bytes = ... - - def __init__(self, - *, - mode : global___SignMode.V = ..., - signature : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode",u"signature",b"signature"]) -> None: ... - - class Multi(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BITARRAY_FIELD_NUMBER: builtins.int - SIGNATURES_FIELD_NUMBER: builtins.int - - @property - def bitarray(self) -> cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray: ... - - @property - def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignatureDescriptor.Data]: ... - - def __init__(self, - *, - bitarray : typing.Optional[cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray] = ..., - signatures : typing.Optional[typing.Iterable[global___SignatureDescriptor.Data]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray",u"signatures",b"signatures"]) -> None: ... - - SINGLE_FIELD_NUMBER: builtins.int - MULTI_FIELD_NUMBER: builtins.int - - @property - def single(self) -> global___SignatureDescriptor.Data.Single: ... - - @property - def multi(self) -> global___SignatureDescriptor.Data.Multi: ... - - def __init__(self, - *, - single : typing.Optional[global___SignatureDescriptor.Data.Single] = ..., - multi : typing.Optional[global___SignatureDescriptor.Data.Multi] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["single","multi"]]: ... - - PUBLIC_KEY_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - sequence: builtins.int = ... - - @property - def public_key(self) -> google.protobuf.any_pb2.Any: ... - - @property - def data(self) -> global___SignatureDescriptor.Data: ... - - def __init__(self, - *, - public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., - data : typing.Optional[global___SignatureDescriptor.Data] = ..., - sequence : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"data",b"data",u"public_key",b"public_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"public_key",b"public_key",u"sequence",b"sequence"]) -> None: ... -global___SignatureDescriptor = SignatureDescriptor diff --git a/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi deleted file mode 100644 index 2556fdb..0000000 --- a/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .signing_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/tx/v1beta1/service_pb2.py b/pyband/proto/cosmos/tx/v1beta1/service_pb2.py index bcff8ed..4650deb 100644 --- a/pyband/proto/cosmos/tx/v1beta1/service_pb2.py +++ b/pyband/proto/cosmos/tx/v1beta1/service_pb2.py @@ -25,7 +25,7 @@ syntax='proto3', serialized_options=b'Z%github.com/cosmos/cosmos-sdk/types/tx\300\343\036\001', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1f\x63osmos/tx/v1beta1/service.proto\x12\x11\x63osmos.tx.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#cosmos/base/abci/v1beta1/abci.proto\x1a\x1a\x63osmos/tx/v1beta1/tx.proto\x1a\x14gogoproto/gogo.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\"\x8e\x01\n\x12GetTxsEventRequest\x12\x0e\n\x06\x65vents\x18\x01 \x03(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\x12,\n\x08order_by\x18\x03 \x01(\x0e\x32\x1a.cosmos.tx.v1beta1.OrderBy\"\xb2\x01\n\x13GetTxsEventResponse\x12\"\n\x03txs\x18\x01 \x03(\x0b\x32\x15.cosmos.tx.v1beta1.Tx\x12:\n\x0ctx_responses\x18\x02 \x03(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponse\x12;\n\npagination\x18\x03 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"V\n\x12\x42roadcastTxRequest\x12\x10\n\x08tx_bytes\x18\x01 \x01(\x0c\x12.\n\x04mode\x18\x02 \x01(\x0e\x32 .cosmos.tx.v1beta1.BroadcastMode\"P\n\x13\x42roadcastTxResponse\x12\x39\n\x0btx_response\x18\x01 \x01(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponse\"4\n\x0fSimulateRequest\x12!\n\x02tx\x18\x01 \x01(\x0b\x32\x15.cosmos.tx.v1beta1.Tx\"y\n\x10SimulateResponse\x12\x33\n\x08gas_info\x18\x01 \x01(\x0b\x32!.cosmos.base.abci.v1beta1.GasInfo\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .cosmos.base.abci.v1beta1.Result\"\x1c\n\x0cGetTxRequest\x12\x0c\n\x04hash\x18\x01 \x01(\t\"m\n\rGetTxResponse\x12!\n\x02tx\x18\x01 \x01(\x0b\x32\x15.cosmos.tx.v1beta1.Tx\x12\x39\n\x0btx_response\x18\x02 \x01(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponse*H\n\x07OrderBy\x12\x18\n\x14ORDER_BY_UNSPECIFIED\x10\x00\x12\x10\n\x0cORDER_BY_ASC\x10\x01\x12\x11\n\rORDER_BY_DESC\x10\x02*|\n\rBroadcastMode\x12\x1e\n\x1a\x42ROADCAST_MODE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x42ROADCAST_MODE_BLOCK\x10\x01\x12\x17\n\x13\x42ROADCAST_MODE_SYNC\x10\x02\x12\x18\n\x14\x42ROADCAST_MODE_ASYNC\x10\x03\x32\xf8\x03\n\x07Service\x12{\n\x08Simulate\x12\".cosmos.tx.v1beta1.SimulateRequest\x1a#.cosmos.tx.v1beta1.SimulateResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/cosmos/tx/v1beta1/simulate:\x01*\x12q\n\x05GetTx\x12\x1f.cosmos.tx.v1beta1.GetTxRequest\x1a .cosmos.tx.v1beta1.GetTxResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cosmos/tx/v1beta1/txs/{hash}\x12\x7f\n\x0b\x42roadcastTx\x12%.cosmos.tx.v1beta1.BroadcastTxRequest\x1a&.cosmos.tx.v1beta1.BroadcastTxResponse\"!\x82\xd3\xe4\x93\x02\x1b\"\x16/cosmos/tx/v1beta1/txs:\x01*\x12|\n\x0bGetTxsEvent\x12%.cosmos.tx.v1beta1.GetTxsEventRequest\x1a&.cosmos.tx.v1beta1.GetTxsEventResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/cosmos/tx/v1beta1/txsB+Z%github.com/cosmos/cosmos-sdk/types/tx\xc0\xe3\x1e\x01\x62\x06proto3' + serialized_pb=b'\n\x1f\x63osmos/tx/v1beta1/service.proto\x12\x11\x63osmos.tx.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a#cosmos/base/abci/v1beta1/abci.proto\x1a\x1a\x63osmos/tx/v1beta1/tx.proto\x1a\x14gogoproto/gogo.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\"\x8e\x01\n\x12GetTxsEventRequest\x12\x0e\n\x06\x65vents\x18\x01 \x03(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\x12,\n\x08order_by\x18\x03 \x01(\x0e\x32\x1a.cosmos.tx.v1beta1.OrderBy\"\xb2\x01\n\x13GetTxsEventResponse\x12\"\n\x03txs\x18\x01 \x03(\x0b\x32\x15.cosmos.tx.v1beta1.Tx\x12:\n\x0ctx_responses\x18\x02 \x03(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponse\x12;\n\npagination\x18\x03 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"V\n\x12\x42roadcastTxRequest\x12\x10\n\x08tx_bytes\x18\x01 \x01(\x0c\x12.\n\x04mode\x18\x02 \x01(\x0e\x32 .cosmos.tx.v1beta1.BroadcastMode\"P\n\x13\x42roadcastTxResponse\x12\x39\n\x0btx_response\x18\x01 \x01(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponse\"J\n\x0fSimulateRequest\x12%\n\x02tx\x18\x01 \x01(\x0b\x32\x15.cosmos.tx.v1beta1.TxB\x02\x18\x01\x12\x10\n\x08tx_bytes\x18\x02 \x01(\x0c\"y\n\x10SimulateResponse\x12\x33\n\x08gas_info\x18\x01 \x01(\x0b\x32!.cosmos.base.abci.v1beta1.GasInfo\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .cosmos.base.abci.v1beta1.Result\"\x1c\n\x0cGetTxRequest\x12\x0c\n\x04hash\x18\x01 \x01(\t\"m\n\rGetTxResponse\x12!\n\x02tx\x18\x01 \x01(\x0b\x32\x15.cosmos.tx.v1beta1.Tx\x12\x39\n\x0btx_response\x18\x02 \x01(\x0b\x32$.cosmos.base.abci.v1beta1.TxResponse*H\n\x07OrderBy\x12\x18\n\x14ORDER_BY_UNSPECIFIED\x10\x00\x12\x10\n\x0cORDER_BY_ASC\x10\x01\x12\x11\n\rORDER_BY_DESC\x10\x02*|\n\rBroadcastMode\x12\x1e\n\x1a\x42ROADCAST_MODE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x42ROADCAST_MODE_BLOCK\x10\x01\x12\x17\n\x13\x42ROADCAST_MODE_SYNC\x10\x02\x12\x18\n\x14\x42ROADCAST_MODE_ASYNC\x10\x03\x32\xf8\x03\n\x07Service\x12{\n\x08Simulate\x12\".cosmos.tx.v1beta1.SimulateRequest\x1a#.cosmos.tx.v1beta1.SimulateResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/cosmos/tx/v1beta1/simulate:\x01*\x12q\n\x05GetTx\x12\x1f.cosmos.tx.v1beta1.GetTxRequest\x1a .cosmos.tx.v1beta1.GetTxResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cosmos/tx/v1beta1/txs/{hash}\x12\x7f\n\x0b\x42roadcastTx\x12%.cosmos.tx.v1beta1.BroadcastTxRequest\x1a&.cosmos.tx.v1beta1.BroadcastTxResponse\"!\x82\xd3\xe4\x93\x02\x1b\"\x16/cosmos/tx/v1beta1/txs:\x01*\x12|\n\x0bGetTxsEvent\x12%.cosmos.tx.v1beta1.GetTxsEventRequest\x1a&.cosmos.tx.v1beta1.GetTxsEventResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/cosmos/tx/v1beta1/txsB+Z%github.com/cosmos/cosmos-sdk/types/tx\xc0\xe3\x1e\x01\x62\x06proto3' , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,cosmos_dot_base_dot_abci_dot_v1beta1_dot_abci__pb2.DESCRIPTOR,cosmos_dot_tx_dot_v1beta1_dot_tx__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,]) @@ -54,8 +54,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1029, - serialized_end=1101, + serialized_start=1051, + serialized_end=1123, ) _sym_db.RegisterEnumDescriptor(_ORDERBY) @@ -90,8 +90,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1103, - serialized_end=1227, + serialized_start=1125, + serialized_end=1249, ) _sym_db.RegisterEnumDescriptor(_BROADCASTMODE) @@ -283,6 +283,13 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, + serialized_options=b'\030\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='tx_bytes', full_name='cosmos.tx.v1beta1.SimulateRequest.tx_bytes', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ @@ -297,7 +304,7 @@ oneofs=[ ], serialized_start=711, - serialized_end=763, + serialized_end=785, ) @@ -335,8 +342,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=765, - serialized_end=886, + serialized_start=787, + serialized_end=908, ) @@ -367,8 +374,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=888, - serialized_end=916, + serialized_start=910, + serialized_end=938, ) @@ -406,8 +413,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=918, - serialized_end=1027, + serialized_start=940, + serialized_end=1049, ) _GETTXSEVENTREQUEST.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGEREQUEST @@ -492,6 +499,7 @@ DESCRIPTOR._options = None +_SIMULATEREQUEST.fields_by_name['tx']._options = None _SERVICE = _descriptor.ServiceDescriptor( name='Service', @@ -500,8 +508,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1230, - serialized_end=1734, + serialized_start=1252, + serialized_end=1756, methods=[ _descriptor.MethodDescriptor( name='Simulate', diff --git a/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi b/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi deleted file mode 100644 index cc2ee75..0000000 --- a/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi +++ /dev/null @@ -1,193 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.abci.v1beta1.abci_pb2 -import cosmos.base.query.v1beta1.pagination_pb2 -import cosmos.tx.v1beta1.tx_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class OrderBy(metaclass=_OrderBy): - V = typing.NewType('V', builtins.int) - -global___OrderBy = OrderBy - -ORDER_BY_UNSPECIFIED = OrderBy.V(0) -ORDER_BY_ASC = OrderBy.V(1) -ORDER_BY_DESC = OrderBy.V(2) - -class _OrderBy(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[OrderBy.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - ORDER_BY_UNSPECIFIED = OrderBy.V(0) - ORDER_BY_ASC = OrderBy.V(1) - ORDER_BY_DESC = OrderBy.V(2) - -class BroadcastMode(metaclass=_BroadcastMode): - V = typing.NewType('V', builtins.int) - -global___BroadcastMode = BroadcastMode - -BROADCAST_MODE_UNSPECIFIED = BroadcastMode.V(0) -BROADCAST_MODE_BLOCK = BroadcastMode.V(1) -BROADCAST_MODE_SYNC = BroadcastMode.V(2) -BROADCAST_MODE_ASYNC = BroadcastMode.V(3) - -class _BroadcastMode(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[BroadcastMode.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - BROADCAST_MODE_UNSPECIFIED = BroadcastMode.V(0) - BROADCAST_MODE_BLOCK = BroadcastMode.V(1) - BROADCAST_MODE_SYNC = BroadcastMode.V(2) - BROADCAST_MODE_ASYNC = BroadcastMode.V(3) - -class GetTxsEventRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EVENTS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - ORDER_BY_FIELD_NUMBER: builtins.int - - @property - def events(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - order_by: global___OrderBy.V = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - events : typing.Optional[typing.Iterable[typing.Text]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - order_by : global___OrderBy.V = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events",u"order_by",b"order_by",u"pagination",b"pagination"]) -> None: ... -global___GetTxsEventRequest = GetTxsEventRequest - -class GetTxsEventResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TXS_FIELD_NUMBER: builtins.int - TX_RESPONSES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.tx.v1beta1.tx_pb2.Tx]: ... - - @property - def tx_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.abci.v1beta1.abci_pb2.TxResponse]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - txs : typing.Optional[typing.Iterable[cosmos.tx.v1beta1.tx_pb2.Tx]] = ..., - tx_responses : typing.Optional[typing.Iterable[cosmos.base.abci.v1beta1.abci_pb2.TxResponse]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"tx_responses",b"tx_responses",u"txs",b"txs"]) -> None: ... -global___GetTxsEventResponse = GetTxsEventResponse - -class BroadcastTxRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TX_BYTES_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - tx_bytes: builtins.bytes = ... - mode: global___BroadcastMode.V = ... - - def __init__(self, - *, - tx_bytes : builtins.bytes = ..., - mode : global___BroadcastMode.V = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode",u"tx_bytes",b"tx_bytes"]) -> None: ... -global___BroadcastTxRequest = BroadcastTxRequest - -class BroadcastTxResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TX_RESPONSE_FIELD_NUMBER: builtins.int - - @property - def tx_response(self) -> cosmos.base.abci.v1beta1.abci_pb2.TxResponse: ... - - def __init__(self, - *, - tx_response : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.TxResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"tx_response",b"tx_response"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"tx_response",b"tx_response"]) -> None: ... -global___BroadcastTxResponse = BroadcastTxResponse - -class SimulateRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TX_FIELD_NUMBER: builtins.int - - @property - def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: ... - - def __init__(self, - *, - tx : typing.Optional[cosmos.tx.v1beta1.tx_pb2.Tx] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> None: ... -global___SimulateRequest = SimulateRequest - -class SimulateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - GAS_INFO_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - - @property - def gas_info(self) -> cosmos.base.abci.v1beta1.abci_pb2.GasInfo: ... - - @property - def result(self) -> cosmos.base.abci.v1beta1.abci_pb2.Result: ... - - def __init__(self, - *, - gas_info : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.GasInfo] = ..., - result : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.Result] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> None: ... -global___SimulateResponse = SimulateResponse - -class GetTxRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HASH_FIELD_NUMBER: builtins.int - hash: typing.Text = ... - - def __init__(self, - *, - hash : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... -global___GetTxRequest = GetTxRequest - -class GetTxResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TX_FIELD_NUMBER: builtins.int - TX_RESPONSE_FIELD_NUMBER: builtins.int - - @property - def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: ... - - @property - def tx_response(self) -> cosmos.base.abci.v1beta1.abci_pb2.TxResponse: ... - - def __init__(self, - *, - tx : typing.Optional[cosmos.tx.v1beta1.tx_pb2.Tx] = ..., - tx_response : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.TxResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"tx_response",b"tx_response"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"tx_response",b"tx_response"]) -> None: ... -global___GetTxResponse = GetTxResponse diff --git a/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi b/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi deleted file mode 100644 index 84294fa..0000000 --- a/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .service_pb2 import * -class ServiceStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Simulate:grpc.UnaryUnaryMultiCallable[ - global___SimulateRequest, - global___SimulateResponse] = ... - - GetTx:grpc.UnaryUnaryMultiCallable[ - global___GetTxRequest, - global___GetTxResponse] = ... - - BroadcastTx:grpc.UnaryUnaryMultiCallable[ - global___BroadcastTxRequest, - global___BroadcastTxResponse] = ... - - GetTxsEvent:grpc.UnaryUnaryMultiCallable[ - global___GetTxsEventRequest, - global___GetTxsEventResponse] = ... - - -class ServiceServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Simulate(self, - request: global___SimulateRequest, - context: grpc.ServicerContext, - ) -> global___SimulateResponse: ... - - @abc.abstractmethod - def GetTx(self, - request: global___GetTxRequest, - context: grpc.ServicerContext, - ) -> global___GetTxResponse: ... - - @abc.abstractmethod - def BroadcastTx(self, - request: global___BroadcastTxRequest, - context: grpc.ServicerContext, - ) -> global___BroadcastTxResponse: ... - - @abc.abstractmethod - def GetTxsEvent(self, - request: global___GetTxsEventRequest, - context: grpc.ServicerContext, - ) -> global___GetTxsEventResponse: ... - - -def add_ServiceServicer_to_server(servicer: ServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi deleted file mode 100644 index ecf7d10..0000000 --- a/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,229 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import cosmos.crypto.multisig.v1beta1.multisig_pb2 -import cosmos.tx.signing.v1beta1.signing_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Tx(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BODY_FIELD_NUMBER: builtins.int - AUTH_INFO_FIELD_NUMBER: builtins.int - SIGNATURES_FIELD_NUMBER: builtins.int - - @property - def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - - @property - def body(self) -> global___TxBody: ... - - @property - def auth_info(self) -> global___AuthInfo: ... - - def __init__(self, - *, - body : typing.Optional[global___TxBody] = ..., - auth_info : typing.Optional[global___AuthInfo] = ..., - signatures : typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"auth_info",b"auth_info",u"body",b"body"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"auth_info",b"auth_info",u"body",b"body",u"signatures",b"signatures"]) -> None: ... -global___Tx = Tx - -class TxRaw(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BODY_BYTES_FIELD_NUMBER: builtins.int - AUTH_INFO_BYTES_FIELD_NUMBER: builtins.int - SIGNATURES_FIELD_NUMBER: builtins.int - body_bytes: builtins.bytes = ... - auth_info_bytes: builtins.bytes = ... - - @property - def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - - def __init__(self, - *, - body_bytes : builtins.bytes = ..., - auth_info_bytes : builtins.bytes = ..., - signatures : typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"auth_info_bytes",b"auth_info_bytes",u"body_bytes",b"body_bytes",u"signatures",b"signatures"]) -> None: ... -global___TxRaw = TxRaw - -class SignDoc(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BODY_BYTES_FIELD_NUMBER: builtins.int - AUTH_INFO_BYTES_FIELD_NUMBER: builtins.int - CHAIN_ID_FIELD_NUMBER: builtins.int - ACCOUNT_NUMBER_FIELD_NUMBER: builtins.int - body_bytes: builtins.bytes = ... - auth_info_bytes: builtins.bytes = ... - chain_id: typing.Text = ... - account_number: builtins.int = ... - - def __init__(self, - *, - body_bytes : builtins.bytes = ..., - auth_info_bytes : builtins.bytes = ..., - chain_id : typing.Text = ..., - account_number : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"account_number",b"account_number",u"auth_info_bytes",b"auth_info_bytes",u"body_bytes",b"body_bytes",u"chain_id",b"chain_id"]) -> None: ... -global___SignDoc = SignDoc - -class TxBody(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MESSAGES_FIELD_NUMBER: builtins.int - MEMO_FIELD_NUMBER: builtins.int - TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int - EXTENSION_OPTIONS_FIELD_NUMBER: builtins.int - NON_CRITICAL_EXTENSION_OPTIONS_FIELD_NUMBER: builtins.int - memo: typing.Text = ... - timeout_height: builtins.int = ... - - @property - def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... - - @property - def extension_options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... - - @property - def non_critical_extension_options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... - - def __init__(self, - *, - messages : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., - memo : typing.Text = ..., - timeout_height : builtins.int = ..., - extension_options : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., - non_critical_extension_options : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"extension_options",b"extension_options",u"memo",b"memo",u"messages",b"messages",u"non_critical_extension_options",b"non_critical_extension_options",u"timeout_height",b"timeout_height"]) -> None: ... -global___TxBody = TxBody - -class AuthInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIGNER_INFOS_FIELD_NUMBER: builtins.int - FEE_FIELD_NUMBER: builtins.int - - @property - def signer_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignerInfo]: ... - - @property - def fee(self) -> global___Fee: ... - - def __init__(self, - *, - signer_infos : typing.Optional[typing.Iterable[global___SignerInfo]] = ..., - fee : typing.Optional[global___Fee] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"fee",b"fee"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"fee",b"fee",u"signer_infos",b"signer_infos"]) -> None: ... -global___AuthInfo = AuthInfo - -class SignerInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PUBLIC_KEY_FIELD_NUMBER: builtins.int - MODE_INFO_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - sequence: builtins.int = ... - - @property - def public_key(self) -> google.protobuf.any_pb2.Any: ... - - @property - def mode_info(self) -> global___ModeInfo: ... - - def __init__(self, - *, - public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., - mode_info : typing.Optional[global___ModeInfo] = ..., - sequence : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"mode_info",b"mode_info",u"public_key",b"public_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"mode_info",b"mode_info",u"public_key",b"public_key",u"sequence",b"sequence"]) -> None: ... -global___SignerInfo = SignerInfo - -class ModeInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Single(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MODE_FIELD_NUMBER: builtins.int - mode: cosmos.tx.signing.v1beta1.signing_pb2.SignMode.V = ... - - def __init__(self, - *, - mode : cosmos.tx.signing.v1beta1.signing_pb2.SignMode.V = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode"]) -> None: ... - - class Multi(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BITARRAY_FIELD_NUMBER: builtins.int - MODE_INFOS_FIELD_NUMBER: builtins.int - - @property - def bitarray(self) -> cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray: ... - - @property - def mode_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ModeInfo]: ... - - def __init__(self, - *, - bitarray : typing.Optional[cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray] = ..., - mode_infos : typing.Optional[typing.Iterable[global___ModeInfo]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray",u"mode_infos",b"mode_infos"]) -> None: ... - - SINGLE_FIELD_NUMBER: builtins.int - MULTI_FIELD_NUMBER: builtins.int - - @property - def single(self) -> global___ModeInfo.Single: ... - - @property - def multi(self) -> global___ModeInfo.Multi: ... - - def __init__(self, - *, - single : typing.Optional[global___ModeInfo.Single] = ..., - multi : typing.Optional[global___ModeInfo.Multi] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["single","multi"]]: ... -global___ModeInfo = ModeInfo - -class Fee(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - AMOUNT_FIELD_NUMBER: builtins.int - GAS_LIMIT_FIELD_NUMBER: builtins.int - PAYER_FIELD_NUMBER: builtins.int - GRANTER_FIELD_NUMBER: builtins.int - gas_limit: builtins.int = ... - payer: typing.Text = ... - granter: typing.Text = ... - - @property - def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - gas_limit : builtins.int = ..., - payer : typing.Text = ..., - granter : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"gas_limit",b"gas_limit",u"granter",b"granter",u"payer",b"payer"]) -> None: ... -global___Fee = Fee diff --git a/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index e636386..0000000 --- a/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .tx_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.py b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.py index 202cf07..cc4aef1 100644 --- a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.py +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.py @@ -22,7 +22,7 @@ syntax='proto3', serialized_options=b'Z,github.com/cosmos/cosmos-sdk/x/upgrade/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\"cosmos/upgrade/v1beta1/query.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a$cosmos/upgrade/v1beta1/upgrade.proto\"\x19\n\x17QueryCurrentPlanRequest\"F\n\x18QueryCurrentPlanResponse\x12*\n\x04plan\x18\x01 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.Plan\"\'\n\x17QueryAppliedPlanRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"*\n\x18QueryAppliedPlanResponse\x12\x0e\n\x06height\x18\x01 \x01(\x03\"9\n\"QueryUpgradedConsensusStateRequest\x12\x13\n\x0blast_height\x18\x01 \x01(\x03\"]\n#QueryUpgradedConsensusStateResponse\x12\x36\n\x18upgraded_consensus_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any2\xac\x04\n\x05Query\x12\x9e\x01\n\x0b\x43urrentPlan\x12/.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse\",\x82\xd3\xe4\x93\x02&\x12$/cosmos/upgrade/v1beta1/current_plan\x12\xa5\x01\n\x0b\x41ppliedPlan\x12/.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/upgrade/v1beta1/applied_plan/{name}\x12\xd9\x01\n\x16UpgradedConsensusState\x12:.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest\x1a;.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse\"F\x82\xd3\xe4\x93\x02@\x12>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}B.Z,github.com/cosmos/cosmos-sdk/x/upgrade/typesb\x06proto3' + serialized_pb=b'\n\"cosmos/upgrade/v1beta1/query.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a$cosmos/upgrade/v1beta1/upgrade.proto\"\x19\n\x17QueryCurrentPlanRequest\"F\n\x18QueryCurrentPlanResponse\x12*\n\x04plan\x18\x01 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.Plan\"\'\n\x17QueryAppliedPlanRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"*\n\x18QueryAppliedPlanResponse\x12\x0e\n\x06height\x18\x01 \x01(\x03\"9\n\"QueryUpgradedConsensusStateRequest\x12\x13\n\x0blast_height\x18\x01 \x01(\x03\"M\n#QueryUpgradedConsensusStateResponse\x12 \n\x18upgraded_consensus_state\x18\x02 \x01(\x0cJ\x04\x08\x01\x10\x02\"1\n\x1aQueryModuleVersionsRequest\x12\x13\n\x0bmodule_name\x18\x01 \x01(\t\"]\n\x1bQueryModuleVersionsResponse\x12>\n\x0fmodule_versions\x18\x01 \x03(\x0b\x32%.cosmos.upgrade.v1beta1.ModuleVersion2\xd9\x05\n\x05Query\x12\x9e\x01\n\x0b\x43urrentPlan\x12/.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse\",\x82\xd3\xe4\x93\x02&\x12$/cosmos/upgrade/v1beta1/current_plan\x12\xa5\x01\n\x0b\x41ppliedPlan\x12/.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/upgrade/v1beta1/applied_plan/{name}\x12\xd9\x01\n\x16UpgradedConsensusState\x12:.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest\x1a;.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse\"F\x82\xd3\xe4\x93\x02@\x12>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}\x12\xaa\x01\n\x0eModuleVersions\x12\x32.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest\x1a\x33.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/upgrade/v1beta1/module_versionsB.Z,github.com/cosmos/cosmos-sdk/x/upgrade/typesb\x06proto3' , dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2.DESCRIPTOR,]) @@ -192,8 +192,8 @@ fields=[ _descriptor.FieldDescriptor( name='upgraded_consensus_state', full_name='cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.upgraded_consensus_state', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -210,17 +210,83 @@ oneofs=[ ], serialized_start=400, - serialized_end=493, + serialized_end=477, +) + + +_QUERYMODULEVERSIONSREQUEST = _descriptor.Descriptor( + name='QueryModuleVersionsRequest', + full_name='cosmos.upgrade.v1beta1.QueryModuleVersionsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='module_name', full_name='cosmos.upgrade.v1beta1.QueryModuleVersionsRequest.module_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=479, + serialized_end=528, +) + + +_QUERYMODULEVERSIONSRESPONSE = _descriptor.Descriptor( + name='QueryModuleVersionsResponse', + full_name='cosmos.upgrade.v1beta1.QueryModuleVersionsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='module_versions', full_name='cosmos.upgrade.v1beta1.QueryModuleVersionsResponse.module_versions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=530, + serialized_end=623, ) _QUERYCURRENTPLANRESPONSE.fields_by_name['plan'].message_type = cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2._PLAN -_QUERYUPGRADEDCONSENSUSSTATERESPONSE.fields_by_name['upgraded_consensus_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_QUERYMODULEVERSIONSRESPONSE.fields_by_name['module_versions'].message_type = cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2._MODULEVERSION DESCRIPTOR.message_types_by_name['QueryCurrentPlanRequest'] = _QUERYCURRENTPLANREQUEST DESCRIPTOR.message_types_by_name['QueryCurrentPlanResponse'] = _QUERYCURRENTPLANRESPONSE DESCRIPTOR.message_types_by_name['QueryAppliedPlanRequest'] = _QUERYAPPLIEDPLANREQUEST DESCRIPTOR.message_types_by_name['QueryAppliedPlanResponse'] = _QUERYAPPLIEDPLANRESPONSE DESCRIPTOR.message_types_by_name['QueryUpgradedConsensusStateRequest'] = _QUERYUPGRADEDCONSENSUSSTATEREQUEST DESCRIPTOR.message_types_by_name['QueryUpgradedConsensusStateResponse'] = _QUERYUPGRADEDCONSENSUSSTATERESPONSE +DESCRIPTOR.message_types_by_name['QueryModuleVersionsRequest'] = _QUERYMODULEVERSIONSREQUEST +DESCRIPTOR.message_types_by_name['QueryModuleVersionsResponse'] = _QUERYMODULEVERSIONSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) QueryCurrentPlanRequest = _reflection.GeneratedProtocolMessageType('QueryCurrentPlanRequest', (_message.Message,), { @@ -265,6 +331,20 @@ }) _sym_db.RegisterMessage(QueryUpgradedConsensusStateResponse) +QueryModuleVersionsRequest = _reflection.GeneratedProtocolMessageType('QueryModuleVersionsRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYMODULEVERSIONSREQUEST, + '__module__' : 'cosmos.upgrade.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryModuleVersionsRequest) + }) +_sym_db.RegisterMessage(QueryModuleVersionsRequest) + +QueryModuleVersionsResponse = _reflection.GeneratedProtocolMessageType('QueryModuleVersionsResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYMODULEVERSIONSRESPONSE, + '__module__' : 'cosmos.upgrade.v1beta1.query_pb2' + # @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryModuleVersionsResponse) + }) +_sym_db.RegisterMessage(QueryModuleVersionsResponse) + DESCRIPTOR._options = None @@ -275,8 +355,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=496, - serialized_end=1052, + serialized_start=626, + serialized_end=1355, methods=[ _descriptor.MethodDescriptor( name='CurrentPlan', @@ -308,6 +388,16 @@ serialized_options=b'\202\323\344\223\002@\022>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}', create_key=_descriptor._internal_create_key, ), + _descriptor.MethodDescriptor( + name='ModuleVersions', + full_name='cosmos.upgrade.v1beta1.Query.ModuleVersions', + index=3, + containing_service=None, + input_type=_QUERYMODULEVERSIONSREQUEST, + output_type=_QUERYMODULEVERSIONSRESPONSE, + serialized_options=b'\202\323\344\223\002)\022\'/cosmos/upgrade/v1beta1/module_versions', + create_key=_descriptor._internal_create_key, + ), ]) _sym_db.RegisterServiceDescriptor(_QUERY) diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi deleted file mode 100644 index 2013ffb..0000000 --- a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi +++ /dev/null @@ -1,86 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.upgrade.v1beta1.upgrade_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryCurrentPlanRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryCurrentPlanRequest = QueryCurrentPlanRequest - -class QueryCurrentPlanResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PLAN_FIELD_NUMBER: builtins.int - - @property - def plan(self) -> cosmos.upgrade.v1beta1.upgrade_pb2.Plan: ... - - def __init__(self, - *, - plan : typing.Optional[cosmos.upgrade.v1beta1.upgrade_pb2.Plan] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> None: ... -global___QueryCurrentPlanResponse = QueryCurrentPlanResponse - -class QueryAppliedPlanRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - name: typing.Text = ... - - def __init__(self, - *, - name : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... -global___QueryAppliedPlanRequest = QueryAppliedPlanRequest - -class QueryAppliedPlanResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - height: builtins.int = ... - - def __init__(self, - *, - height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... -global___QueryAppliedPlanResponse = QueryAppliedPlanResponse - -class QueryUpgradedConsensusStateRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - LAST_HEIGHT_FIELD_NUMBER: builtins.int - last_height: builtins.int = ... - - def __init__(self, - *, - last_height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"last_height",b"last_height"]) -> None: ... -global___QueryUpgradedConsensusStateRequest = QueryUpgradedConsensusStateRequest - -class QueryUpgradedConsensusStateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - UPGRADED_CONSENSUS_STATE_FIELD_NUMBER: builtins.int - - @property - def upgraded_consensus_state(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - upgraded_consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> None: ... -global___QueryUpgradedConsensusStateResponse = QueryUpgradedConsensusStateResponse diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py index e52a15d..19347ed 100644 --- a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py @@ -30,6 +30,11 @@ def __init__(self, channel): request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateRequest.SerializeToString, response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateResponse.FromString, ) + self.ModuleVersions = channel.unary_unary( + '/cosmos.upgrade.v1beta1.Query/ModuleVersions', + request_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsRequest.SerializeToString, + response_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsResponse.FromString, + ) class QueryServicer(object): @@ -60,6 +65,13 @@ def UpgradedConsensusState(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def ModuleVersions(self, request, context): + """ModuleVersions queries the list of module versions from state. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_QueryServicer_to_server(servicer, server): rpc_method_handlers = { @@ -78,6 +90,11 @@ def add_QueryServicer_to_server(servicer, server): request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateRequest.FromString, response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateResponse.SerializeToString, ), + 'ModuleVersions': grpc.unary_unary_rpc_method_handler( + servicer.ModuleVersions, + request_deserializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsRequest.FromString, + response_serializer=cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'cosmos.upgrade.v1beta1.Query', rpc_method_handlers) @@ -139,3 +156,20 @@ def UpgradedConsensusState(request, cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryUpgradedConsensusStateResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ModuleVersions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/cosmos.upgrade.v1beta1.Query/ModuleVersions', + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsRequest.SerializeToString, + cosmos_dot_upgrade_dot_v1beta1_dot_query__pb2.QueryModuleVersionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi deleted file mode 100644 index 97110bb..0000000 --- a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi +++ /dev/null @@ -1,44 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - CurrentPlan:grpc.UnaryUnaryMultiCallable[ - global___QueryCurrentPlanRequest, - global___QueryCurrentPlanResponse] = ... - - AppliedPlan:grpc.UnaryUnaryMultiCallable[ - global___QueryAppliedPlanRequest, - global___QueryAppliedPlanResponse] = ... - - UpgradedConsensusState:grpc.UnaryUnaryMultiCallable[ - global___QueryUpgradedConsensusStateRequest, - global___QueryUpgradedConsensusStateResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def CurrentPlan(self, - request: global___QueryCurrentPlanRequest, - context: grpc.ServicerContext, - ) -> global___QueryCurrentPlanResponse: ... - - @abc.abstractmethod - def AppliedPlan(self, - request: global___QueryAppliedPlanRequest, - context: grpc.ServicerContext, - ) -> global___QueryAppliedPlanResponse: ... - - @abc.abstractmethod - def UpgradedConsensusState(self, - request: global___QueryUpgradedConsensusStateRequest, - context: grpc.ServicerContext, - ) -> global___QueryUpgradedConsensusStateResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.py b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.py index 402461c..f9db11d 100644 --- a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.py +++ b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.py @@ -20,9 +20,9 @@ name='cosmos/upgrade/v1beta1/upgrade.proto', package='cosmos.upgrade.v1beta1', syntax='proto3', - serialized_options=b'Z,github.com/cosmos/cosmos-sdk/x/upgrade/types\330\341\036\000\310\341\036\000', + serialized_options=b'Z,github.com/cosmos/cosmos-sdk/x/upgrade/types\310\341\036\000', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n$cosmos/upgrade/v1beta1/upgrade.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc3\x01\n\x04Plan\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\x90\xdf\x1f\x01\xc8\xde\x1f\x00\x12\x0e\n\x06height\x18\x03 \x01(\x03\x12\x0c\n\x04info\x18\x04 \x01(\t\x12U\n\x15upgraded_client_state\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyB \xf2\xde\x1f\x1cyaml:\"upgraded_client_state\":\x04\xe8\xa0\x1f\x01\"u\n\x17SoftwareUpgradeProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x30\n\x04plan\x18\x03 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.PlanB\x04\xc8\xde\x1f\x00:\x04\xe8\xa0\x1f\x01\"I\n\x1d\x43\x61ncelSoftwareUpgradeProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t:\x04\xe8\xa0\x1f\x01\x42\x36Z,github.com/cosmos/cosmos-sdk/x/upgrade/types\xd8\xe1\x1e\x00\xc8\xe1\x1e\x00\x62\x06proto3' + serialized_pb=b'\n$cosmos/upgrade/v1beta1/upgrade.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x01\n\x04Plan\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\x18\x01\x90\xdf\x1f\x01\xc8\xde\x1f\x00\x12\x0e\n\x06height\x18\x03 \x01(\x03\x12\x0c\n\x04info\x18\x04 \x01(\t\x12W\n\x15upgraded_client_state\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyB\"\x18\x01\xf2\xde\x1f\x1cyaml:\"upgraded_client_state\":\x08\xe8\xa0\x1f\x01\x98\xa0\x1f\x00\"y\n\x17SoftwareUpgradeProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x30\n\x04plan\x18\x03 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.PlanB\x04\xc8\xde\x1f\x00:\x08\xe8\xa0\x1f\x01\x98\xa0\x1f\x00\"M\n\x1d\x43\x61ncelSoftwareUpgradeProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t:\x08\xe8\xa0\x1f\x01\x98\xa0\x1f\x00\"8\n\rModuleVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x04:\x08\xe8\xa0\x1f\x01\x98\xa0\x1f\x01\x42\x32Z,github.com/cosmos/cosmos-sdk/x/upgrade/types\xc8\xe1\x1e\x00\x62\x06proto3' , dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) @@ -50,7 +50,7 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\220\337\037\001\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\030\001\220\337\037\001\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='height', full_name='cosmos.upgrade.v1beta1.Plan.height', index=2, number=3, type=3, cpp_type=2, label=1, @@ -71,21 +71,21 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\362\336\037\034yaml:\"upgraded_client_state\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\030\001\362\336\037\034yaml:\"upgraded_client_state\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=b'\350\240\037\001', + serialized_options=b'\350\240\037\001\230\240\037\000', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=147, - serialized_end=342, + serialized_end=350, ) @@ -124,14 +124,14 @@ nested_types=[], enum_types=[ ], - serialized_options=b'\350\240\037\001', + serialized_options=b'\350\240\037\001\230\240\037\000', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=344, - serialized_end=461, + serialized_start=352, + serialized_end=473, ) @@ -163,14 +163,53 @@ nested_types=[], enum_types=[ ], - serialized_options=b'\350\240\037\001', + serialized_options=b'\350\240\037\001\230\240\037\000', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=463, - serialized_end=536, + serialized_start=475, + serialized_end=552, +) + + +_MODULEVERSION = _descriptor.Descriptor( + name='ModuleVersion', + full_name='cosmos.upgrade.v1beta1.ModuleVersion', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='cosmos.upgrade.v1beta1.ModuleVersion.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='version', full_name='cosmos.upgrade.v1beta1.ModuleVersion.version', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\350\240\037\001\230\240\037\001', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=554, + serialized_end=610, ) _PLAN.fields_by_name['time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP @@ -179,6 +218,7 @@ DESCRIPTOR.message_types_by_name['Plan'] = _PLAN DESCRIPTOR.message_types_by_name['SoftwareUpgradeProposal'] = _SOFTWAREUPGRADEPROPOSAL DESCRIPTOR.message_types_by_name['CancelSoftwareUpgradeProposal'] = _CANCELSOFTWAREUPGRADEPROPOSAL +DESCRIPTOR.message_types_by_name['ModuleVersion'] = _MODULEVERSION _sym_db.RegisterFileDescriptor(DESCRIPTOR) Plan = _reflection.GeneratedProtocolMessageType('Plan', (_message.Message,), { @@ -202,6 +242,13 @@ }) _sym_db.RegisterMessage(CancelSoftwareUpgradeProposal) +ModuleVersion = _reflection.GeneratedProtocolMessageType('ModuleVersion', (_message.Message,), { + 'DESCRIPTOR' : _MODULEVERSION, + '__module__' : 'cosmos.upgrade.v1beta1.upgrade_pb2' + # @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.ModuleVersion) + }) +_sym_db.RegisterMessage(ModuleVersion) + DESCRIPTOR._options = None _PLAN.fields_by_name['time']._options = None @@ -210,4 +257,5 @@ _SOFTWAREUPGRADEPROPOSAL.fields_by_name['plan']._options = None _SOFTWAREUPGRADEPROPOSAL._options = None _CANCELSOFTWAREUPGRADEPROPOSAL._options = None +_MODULEVERSION._options = None # @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi deleted file mode 100644 index 86cda5f..0000000 --- a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi +++ /dev/null @@ -1,78 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Plan(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - TIME_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - UPGRADED_CLIENT_STATE_FIELD_NUMBER: builtins.int - name: typing.Text = ... - height: builtins.int = ... - info: typing.Text = ... - - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - @property - def upgraded_client_state(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - name : typing.Text = ..., - time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - height : builtins.int = ..., - info : typing.Text = ..., - upgraded_client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"time",b"time",u"upgraded_client_state",b"upgraded_client_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"info",b"info",u"name",b"name",u"time",b"time",u"upgraded_client_state",b"upgraded_client_state"]) -> None: ... -global___Plan = Plan - -class SoftwareUpgradeProposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TITLE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - PLAN_FIELD_NUMBER: builtins.int - title: typing.Text = ... - description: typing.Text = ... - - @property - def plan(self) -> global___Plan: ... - - def __init__(self, - *, - title : typing.Text = ..., - description : typing.Text = ..., - plan : typing.Optional[global___Plan] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"plan",b"plan",u"title",b"title"]) -> None: ... -global___SoftwareUpgradeProposal = SoftwareUpgradeProposal - -class CancelSoftwareUpgradeProposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TITLE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - title: typing.Text = ... - description: typing.Text = ... - - def __init__(self, - *, - title : typing.Text = ..., - description : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"title",b"title"]) -> None: ... -global___CancelSoftwareUpgradeProposal = CancelSoftwareUpgradeProposal diff --git a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi deleted file mode 100644 index dec3ec0..0000000 --- a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .upgrade_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi deleted file mode 100644 index f6ddddd..0000000 --- a/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi +++ /dev/null @@ -1,46 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgCreateVestingAccount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - FROM_ADDRESS_FIELD_NUMBER: builtins.int - TO_ADDRESS_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - END_TIME_FIELD_NUMBER: builtins.int - DELAYED_FIELD_NUMBER: builtins.int - from_address: typing.Text = ... - to_address: typing.Text = ... - end_time: builtins.int = ... - delayed: builtins.bool = ... - - @property - def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - from_address : typing.Text = ..., - to_address : typing.Text = ..., - amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - end_time : builtins.int = ..., - delayed : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delayed",b"delayed",u"end_time",b"end_time",u"from_address",b"from_address",u"to_address",b"to_address"]) -> None: ... -global___MsgCreateVestingAccount = MsgCreateVestingAccount - -class MsgCreateVestingAccountResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgCreateVestingAccountResponse = MsgCreateVestingAccountResponse diff --git a/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi deleted file mode 100644 index 627ed08..0000000 --- a/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,24 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - CreateVestingAccount:grpc.UnaryUnaryMultiCallable[ - global___MsgCreateVestingAccount, - global___MsgCreateVestingAccountResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def CreateVestingAccount(self, - request: global___MsgCreateVestingAccount, - context: grpc.ServicerContext, - ) -> global___MsgCreateVestingAccountResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.py b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.py index 7160eb3..e8b049d 100644 --- a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.py +++ b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.py @@ -22,7 +22,7 @@ syntax='proto3', serialized_options=b'Z1github.com/cosmos/cosmos-sdk/x/auth/vesting/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n$cosmos/vesting/v1beta1/vesting.proto\x12\x16\x63osmos.vesting.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1e\x63osmos/auth/v1beta1/auth.proto\"\x89\x04\n\x12\x42\x61seVestingAccount\x12<\n\x0c\x62\x61se_account\x18\x01 \x01(\x0b\x32 .cosmos.auth.v1beta1.BaseAccountB\x04\xd0\xde\x1f\x01\x12\x80\x01\n\x10original_vesting\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBK\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x17yaml:\"original_vesting\"\x12|\n\x0e\x64\x65legated_free\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBI\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x15yaml:\"delegated_free\"\x12\x82\x01\n\x11\x64\x65legated_vesting\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBL\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x18yaml:\"delegated_vesting\"\x12%\n\x08\x65nd_time\x18\x05 \x01(\x03\x42\x13\xf2\xde\x1f\x0fyaml:\"end_time\":\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"\x9f\x01\n\x18\x43ontinuousVestingAccount\x12N\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01\x12)\n\nstart_time\x18\x02 \x01(\x03\x42\x15\xf2\xde\x1f\x11yaml:\"start_time\":\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"q\n\x15\x44\x65layedVestingAccount\x12N\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01:\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"{\n\x06Period\x12\x0e\n\x06length\x18\x01 \x01(\x03\x12[\n\x06\x61mount\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x04\x98\xa0\x1f\x00\"\xf6\x01\n\x16PeriodicVestingAccount\x12N\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01\x12)\n\nstart_time\x18\x02 \x01(\x03\x42\x15\xf2\xde\x1f\x11yaml:\"start_time\"\x12W\n\x0fvesting_periods\x18\x03 \x03(\x0b\x32\x1e.cosmos.vesting.v1beta1.PeriodB\x1e\xf2\xde\x1f\x16yaml:\"vesting_periods\"\xc8\xde\x1f\x00:\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\x42\x33Z1github.com/cosmos/cosmos-sdk/x/auth/vesting/typesb\x06proto3' + serialized_pb=b'\n$cosmos/vesting/v1beta1/vesting.proto\x12\x16\x63osmos.vesting.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1e\x63osmos/auth/v1beta1/auth.proto\"\x89\x04\n\x12\x42\x61seVestingAccount\x12<\n\x0c\x62\x61se_account\x18\x01 \x01(\x0b\x32 .cosmos.auth.v1beta1.BaseAccountB\x04\xd0\xde\x1f\x01\x12\x80\x01\n\x10original_vesting\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBK\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x17yaml:\"original_vesting\"\x12|\n\x0e\x64\x65legated_free\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBI\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x15yaml:\"delegated_free\"\x12\x82\x01\n\x11\x64\x65legated_vesting\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinBL\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xf2\xde\x1f\x18yaml:\"delegated_vesting\"\x12%\n\x08\x65nd_time\x18\x05 \x01(\x03\x42\x13\xf2\xde\x1f\x0fyaml:\"end_time\":\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"\x9f\x01\n\x18\x43ontinuousVestingAccount\x12N\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01\x12)\n\nstart_time\x18\x02 \x01(\x03\x42\x15\xf2\xde\x1f\x11yaml:\"start_time\":\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"q\n\x15\x44\x65layedVestingAccount\x12N\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01:\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"{\n\x06Period\x12\x0e\n\x06length\x18\x01 \x01(\x03\x12[\n\x06\x61mount\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x04\x98\xa0\x1f\x00\"\xf6\x01\n\x16PeriodicVestingAccount\x12N\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01\x12)\n\nstart_time\x18\x02 \x01(\x03\x42\x15\xf2\xde\x1f\x11yaml:\"start_time\"\x12W\n\x0fvesting_periods\x18\x03 \x03(\x0b\x32\x1e.cosmos.vesting.v1beta1.PeriodB\x1e\xf2\xde\x1f\x16yaml:\"vesting_periods\"\xc8\xde\x1f\x00:\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"r\n\x16PermanentLockedAccount\x12N\n\x14\x62\x61se_vesting_account\x18\x01 \x01(\x0b\x32*.cosmos.vesting.v1beta1.BaseVestingAccountB\x04\xd0\xde\x1f\x01:\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\x42\x33Z1github.com/cosmos/cosmos-sdk/x/auth/vesting/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,cosmos_dot_auth_dot_v1beta1_dot_auth__pb2.DESCRIPTOR,]) @@ -244,6 +244,38 @@ serialized_end=1323, ) + +_PERMANENTLOCKEDACCOUNT = _descriptor.Descriptor( + name='PermanentLockedAccount', + full_name='cosmos.vesting.v1beta1.PermanentLockedAccount', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='base_vesting_account', full_name='cosmos.vesting.v1beta1.PermanentLockedAccount.base_vesting_account', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\320\336\037\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000\230\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1325, + serialized_end=1439, +) + _BASEVESTINGACCOUNT.fields_by_name['base_account'].message_type = cosmos_dot_auth_dot_v1beta1_dot_auth__pb2._BASEACCOUNT _BASEVESTINGACCOUNT.fields_by_name['original_vesting'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN _BASEVESTINGACCOUNT.fields_by_name['delegated_free'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN @@ -253,11 +285,13 @@ _PERIOD.fields_by_name['amount'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN _PERIODICVESTINGACCOUNT.fields_by_name['base_vesting_account'].message_type = _BASEVESTINGACCOUNT _PERIODICVESTINGACCOUNT.fields_by_name['vesting_periods'].message_type = _PERIOD +_PERMANENTLOCKEDACCOUNT.fields_by_name['base_vesting_account'].message_type = _BASEVESTINGACCOUNT DESCRIPTOR.message_types_by_name['BaseVestingAccount'] = _BASEVESTINGACCOUNT DESCRIPTOR.message_types_by_name['ContinuousVestingAccount'] = _CONTINUOUSVESTINGACCOUNT DESCRIPTOR.message_types_by_name['DelayedVestingAccount'] = _DELAYEDVESTINGACCOUNT DESCRIPTOR.message_types_by_name['Period'] = _PERIOD DESCRIPTOR.message_types_by_name['PeriodicVestingAccount'] = _PERIODICVESTINGACCOUNT +DESCRIPTOR.message_types_by_name['PermanentLockedAccount'] = _PERMANENTLOCKEDACCOUNT _sym_db.RegisterFileDescriptor(DESCRIPTOR) BaseVestingAccount = _reflection.GeneratedProtocolMessageType('BaseVestingAccount', (_message.Message,), { @@ -295,6 +329,13 @@ }) _sym_db.RegisterMessage(PeriodicVestingAccount) +PermanentLockedAccount = _reflection.GeneratedProtocolMessageType('PermanentLockedAccount', (_message.Message,), { + 'DESCRIPTOR' : _PERMANENTLOCKEDACCOUNT, + '__module__' : 'cosmos.vesting.v1beta1.vesting_pb2' + # @@protoc_insertion_point(class_scope:cosmos.vesting.v1beta1.PermanentLockedAccount) + }) +_sym_db.RegisterMessage(PermanentLockedAccount) + DESCRIPTOR._options = None _BASEVESTINGACCOUNT.fields_by_name['base_account']._options = None @@ -314,4 +355,6 @@ _PERIODICVESTINGACCOUNT.fields_by_name['start_time']._options = None _PERIODICVESTINGACCOUNT.fields_by_name['vesting_periods']._options = None _PERIODICVESTINGACCOUNT._options = None +_PERMANENTLOCKEDACCOUNT.fields_by_name['base_vesting_account']._options = None +_PERMANENTLOCKEDACCOUNT._options = None # @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi deleted file mode 100644 index b1a3605..0000000 --- a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi +++ /dev/null @@ -1,120 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.auth.v1beta1.auth_pb2 -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class BaseVestingAccount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BASE_ACCOUNT_FIELD_NUMBER: builtins.int - ORIGINAL_VESTING_FIELD_NUMBER: builtins.int - DELEGATED_FREE_FIELD_NUMBER: builtins.int - DELEGATED_VESTING_FIELD_NUMBER: builtins.int - END_TIME_FIELD_NUMBER: builtins.int - end_time: builtins.int = ... - - @property - def base_account(self) -> cosmos.auth.v1beta1.auth_pb2.BaseAccount: ... - - @property - def original_vesting(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - @property - def delegated_free(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - @property - def delegated_vesting(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - base_account : typing.Optional[cosmos.auth.v1beta1.auth_pb2.BaseAccount] = ..., - original_vesting : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - delegated_free : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - delegated_vesting : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - end_time : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account",u"delegated_free",b"delegated_free",u"delegated_vesting",b"delegated_vesting",u"end_time",b"end_time",u"original_vesting",b"original_vesting"]) -> None: ... -global___BaseVestingAccount = BaseVestingAccount - -class ContinuousVestingAccount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int - START_TIME_FIELD_NUMBER: builtins.int - start_time: builtins.int = ... - - @property - def base_vesting_account(self) -> global___BaseVestingAccount: ... - - def __init__(self, - *, - base_vesting_account : typing.Optional[global___BaseVestingAccount] = ..., - start_time : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account",u"start_time",b"start_time"]) -> None: ... -global___ContinuousVestingAccount = ContinuousVestingAccount - -class DelayedVestingAccount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int - - @property - def base_vesting_account(self) -> global___BaseVestingAccount: ... - - def __init__(self, - *, - base_vesting_account : typing.Optional[global___BaseVestingAccount] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> None: ... -global___DelayedVestingAccount = DelayedVestingAccount - -class Period(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - LENGTH_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - length: builtins.int = ... - - @property - def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - length : builtins.int = ..., - amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"length",b"length"]) -> None: ... -global___Period = Period - -class PeriodicVestingAccount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int - START_TIME_FIELD_NUMBER: builtins.int - VESTING_PERIODS_FIELD_NUMBER: builtins.int - start_time: builtins.int = ... - - @property - def base_vesting_account(self) -> global___BaseVestingAccount: ... - - @property - def vesting_periods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Period]: ... - - def __init__(self, - *, - base_vesting_account : typing.Optional[global___BaseVestingAccount] = ..., - start_time : builtins.int = ..., - vesting_periods : typing.Optional[typing.Iterable[global___Period]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account",u"start_time",b"start_time",u"vesting_periods",b"vesting_periods"]) -> None: ... -global___PeriodicVestingAccount = PeriodicVestingAccount diff --git a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi deleted file mode 100644 index d6046c2..0000000 --- a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .vesting_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos_proto/cosmos_pb2.pyi b/pyband/proto/cosmos_proto/cosmos_pb2.pyi deleted file mode 100644 index e521b1d..0000000 --- a/pyband/proto/cosmos_proto/cosmos_pb2.pyi +++ /dev/null @@ -1,13 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import google.protobuf.descriptor - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -interface_type: google.protobuf.descriptor.FieldDescriptor = ... - -implements_interface: google.protobuf.descriptor.FieldDescriptor = ... - -accepts_interface: google.protobuf.descriptor.FieldDescriptor = ... diff --git a/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi b/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi deleted file mode 100644 index e813185..0000000 --- a/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .cosmos_pb2 import * \ No newline at end of file diff --git a/pyband/proto/gogoproto/gogo_pb2.pyi b/pyband/proto/gogoproto/gogo_pb2.pyi deleted file mode 100644 index 69ee69a..0000000 --- a/pyband/proto/gogoproto/gogo_pb2.pyi +++ /dev/null @@ -1,161 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import google.protobuf.descriptor - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -goproto_enum_prefix: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_enum_stringer: google.protobuf.descriptor.FieldDescriptor = ... - -enum_stringer: google.protobuf.descriptor.FieldDescriptor = ... - -enum_customname: google.protobuf.descriptor.FieldDescriptor = ... - -enumdecl: google.protobuf.descriptor.FieldDescriptor = ... - -enumvalue_customname: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_getters_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_enum_prefix_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_stringer_all: google.protobuf.descriptor.FieldDescriptor = ... - -verbose_equal_all: google.protobuf.descriptor.FieldDescriptor = ... - -face_all: google.protobuf.descriptor.FieldDescriptor = ... - -gostring_all: google.protobuf.descriptor.FieldDescriptor = ... - -populate_all: google.protobuf.descriptor.FieldDescriptor = ... - -stringer_all: google.protobuf.descriptor.FieldDescriptor = ... - -onlyone_all: google.protobuf.descriptor.FieldDescriptor = ... - -equal_all: google.protobuf.descriptor.FieldDescriptor = ... - -description_all: google.protobuf.descriptor.FieldDescriptor = ... - -testgen_all: google.protobuf.descriptor.FieldDescriptor = ... - -benchgen_all: google.protobuf.descriptor.FieldDescriptor = ... - -marshaler_all: google.protobuf.descriptor.FieldDescriptor = ... - -unmarshaler_all: google.protobuf.descriptor.FieldDescriptor = ... - -stable_marshaler_all: google.protobuf.descriptor.FieldDescriptor = ... - -sizer_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_enum_stringer_all: google.protobuf.descriptor.FieldDescriptor = ... - -enum_stringer_all: google.protobuf.descriptor.FieldDescriptor = ... - -unsafe_marshaler_all: google.protobuf.descriptor.FieldDescriptor = ... - -unsafe_unmarshaler_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_extensions_map_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_unrecognized_all: google.protobuf.descriptor.FieldDescriptor = ... - -gogoproto_import: google.protobuf.descriptor.FieldDescriptor = ... - -protosizer_all: google.protobuf.descriptor.FieldDescriptor = ... - -compare_all: google.protobuf.descriptor.FieldDescriptor = ... - -typedecl_all: google.protobuf.descriptor.FieldDescriptor = ... - -enumdecl_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_registration: google.protobuf.descriptor.FieldDescriptor = ... - -messagename_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_sizecache_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_unkeyed_all: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_getters: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_stringer: google.protobuf.descriptor.FieldDescriptor = ... - -verbose_equal: google.protobuf.descriptor.FieldDescriptor = ... - -face: google.protobuf.descriptor.FieldDescriptor = ... - -gostring: google.protobuf.descriptor.FieldDescriptor = ... - -populate: google.protobuf.descriptor.FieldDescriptor = ... - -stringer: google.protobuf.descriptor.FieldDescriptor = ... - -onlyone: google.protobuf.descriptor.FieldDescriptor = ... - -equal: google.protobuf.descriptor.FieldDescriptor = ... - -description: google.protobuf.descriptor.FieldDescriptor = ... - -testgen: google.protobuf.descriptor.FieldDescriptor = ... - -benchgen: google.protobuf.descriptor.FieldDescriptor = ... - -marshaler: google.protobuf.descriptor.FieldDescriptor = ... - -unmarshaler: google.protobuf.descriptor.FieldDescriptor = ... - -stable_marshaler: google.protobuf.descriptor.FieldDescriptor = ... - -sizer: google.protobuf.descriptor.FieldDescriptor = ... - -unsafe_marshaler: google.protobuf.descriptor.FieldDescriptor = ... - -unsafe_unmarshaler: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_extensions_map: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_unrecognized: google.protobuf.descriptor.FieldDescriptor = ... - -protosizer: google.protobuf.descriptor.FieldDescriptor = ... - -compare: google.protobuf.descriptor.FieldDescriptor = ... - -typedecl: google.protobuf.descriptor.FieldDescriptor = ... - -messagename: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_sizecache: google.protobuf.descriptor.FieldDescriptor = ... - -goproto_unkeyed: google.protobuf.descriptor.FieldDescriptor = ... - -nullable: google.protobuf.descriptor.FieldDescriptor = ... - -embed: google.protobuf.descriptor.FieldDescriptor = ... - -customtype: google.protobuf.descriptor.FieldDescriptor = ... - -customname: google.protobuf.descriptor.FieldDescriptor = ... - -jsontag: google.protobuf.descriptor.FieldDescriptor = ... - -moretags: google.protobuf.descriptor.FieldDescriptor = ... - -casttype: google.protobuf.descriptor.FieldDescriptor = ... - -castkey: google.protobuf.descriptor.FieldDescriptor = ... - -castvalue: google.protobuf.descriptor.FieldDescriptor = ... - -stdtime: google.protobuf.descriptor.FieldDescriptor = ... - -stdduration: google.protobuf.descriptor.FieldDescriptor = ... - -wktpointer: google.protobuf.descriptor.FieldDescriptor = ... - -castrepeated: google.protobuf.descriptor.FieldDescriptor = ... diff --git a/pyband/proto/gogoproto/gogo_pb2_grpc.pyi b/pyband/proto/gogoproto/gogo_pb2_grpc.pyi deleted file mode 100644 index a66f997..0000000 --- a/pyband/proto/gogoproto/gogo_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .gogo_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/annotations_pb2.pyi b/pyband/proto/google/api/annotations_pb2.pyi deleted file mode 100644 index 1815326..0000000 --- a/pyband/proto/google/api/annotations_pb2.pyi +++ /dev/null @@ -1,9 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import google.protobuf.descriptor - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -http: google.protobuf.descriptor.FieldDescriptor = ... diff --git a/pyband/proto/google/api/annotations_pb2_grpc.pyi b/pyband/proto/google/api/annotations_pb2_grpc.pyi deleted file mode 100644 index cfe981e..0000000 --- a/pyband/proto/google/api/annotations_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .annotations_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/http_pb2.pyi b/pyband/proto/google/api/http_pb2.pyi deleted file mode 100644 index b5e2efa..0000000 --- a/pyband/proto/google/api/http_pb2.pyi +++ /dev/null @@ -1,89 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Http(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - RULES_FIELD_NUMBER: builtins.int - FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: builtins.int - fully_decode_reserved_expansion: builtins.bool = ... - - @property - def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___HttpRule]: ... - - def __init__(self, - *, - rules : typing.Optional[typing.Iterable[global___HttpRule]] = ..., - fully_decode_reserved_expansion : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"fully_decode_reserved_expansion",b"fully_decode_reserved_expansion",u"rules",b"rules"]) -> None: ... -global___Http = Http - -class HttpRule(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SELECTOR_FIELD_NUMBER: builtins.int - GET_FIELD_NUMBER: builtins.int - PUT_FIELD_NUMBER: builtins.int - POST_FIELD_NUMBER: builtins.int - DELETE_FIELD_NUMBER: builtins.int - PATCH_FIELD_NUMBER: builtins.int - CUSTOM_FIELD_NUMBER: builtins.int - BODY_FIELD_NUMBER: builtins.int - RESPONSE_BODY_FIELD_NUMBER: builtins.int - ADDITIONAL_BINDINGS_FIELD_NUMBER: builtins.int - selector: typing.Text = ... - get: typing.Text = ... - put: typing.Text = ... - post: typing.Text = ... - delete: typing.Text = ... - patch: typing.Text = ... - body: typing.Text = ... - response_body: typing.Text = ... - - @property - def custom(self) -> global___CustomHttpPattern: ... - - @property - def additional_bindings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___HttpRule]: ... - - def __init__(self, - *, - selector : typing.Text = ..., - get : typing.Text = ..., - put : typing.Text = ..., - post : typing.Text = ..., - delete : typing.Text = ..., - patch : typing.Text = ..., - custom : typing.Optional[global___CustomHttpPattern] = ..., - body : typing.Text = ..., - response_body : typing.Text = ..., - additional_bindings : typing.Optional[typing.Iterable[global___HttpRule]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"custom",b"custom",u"delete",b"delete",u"get",b"get",u"patch",b"patch",u"pattern",b"pattern",u"post",b"post",u"put",b"put"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"additional_bindings",b"additional_bindings",u"body",b"body",u"custom",b"custom",u"delete",b"delete",u"get",b"get",u"patch",b"patch",u"pattern",b"pattern",u"post",b"post",u"put",b"put",u"response_body",b"response_body",u"selector",b"selector"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"pattern",b"pattern"]) -> typing.Optional[typing_extensions.Literal["get","put","post","delete","patch","custom"]]: ... -global___HttpRule = HttpRule - -class CustomHttpPattern(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KIND_FIELD_NUMBER: builtins.int - PATH_FIELD_NUMBER: builtins.int - kind: typing.Text = ... - path: typing.Text = ... - - def __init__(self, - *, - kind : typing.Text = ..., - path : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"kind",b"kind",u"path",b"path"]) -> None: ... -global___CustomHttpPattern = CustomHttpPattern diff --git a/pyband/proto/google/api/http_pb2_grpc.pyi b/pyband/proto/google/api/http_pb2_grpc.pyi deleted file mode 100644 index d2c5ab5..0000000 --- a/pyband/proto/google/api/http_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .http_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/httpbody_pb2.pyi b/pyband/proto/google/api/httpbody_pb2.pyi deleted file mode 100644 index 4d19565..0000000 --- a/pyband/proto/google/api/httpbody_pb2.pyi +++ /dev/null @@ -1,33 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class HttpBody(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONTENT_TYPE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - EXTENSIONS_FIELD_NUMBER: builtins.int - content_type: typing.Text = ... - data: builtins.bytes = ... - - @property - def extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... - - def __init__(self, - *, - content_type : typing.Text = ..., - data : builtins.bytes = ..., - extensions : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"content_type",b"content_type",u"data",b"data",u"extensions",b"extensions"]) -> None: ... -global___HttpBody = HttpBody diff --git a/pyband/proto/google/api/httpbody_pb2_grpc.pyi b/pyband/proto/google/api/httpbody_pb2_grpc.pyi deleted file mode 100644 index 3b2bc13..0000000 --- a/pyband/proto/google/api/httpbody_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .httpbody_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/protobuf/any_pb2.pyi b/pyband/proto/google/protobuf/any_pb2.pyi deleted file mode 100644 index 984fc2d..0000000 --- a/pyband/proto/google/protobuf/any_pb2.pyi +++ /dev/null @@ -1,27 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.well_known_types -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Any): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TYPE_URL_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - type_url: typing.Text = ... - value: builtins.bytes = ... - - def __init__(self, - *, - type_url : typing.Text = ..., - value : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"type_url",b"type_url",u"value",b"value"]) -> None: ... -global___Any = Any diff --git a/pyband/proto/google/protobuf/any_pb2_grpc.pyi b/pyband/proto/google/protobuf/any_pb2_grpc.pyi deleted file mode 100644 index 1fec1ac..0000000 --- a/pyband/proto/google/protobuf/any_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .any_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.py b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.py index ee2174a..4fdffc6 100644 --- a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.py +++ b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.py @@ -11,19 +11,19 @@ _sym_db = _symbol_database.Default() -from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 from ibc.applications.transfer.v1 import transfer_pb2 as ibc_dot_applications_dot_transfer_dot_v1_dot_transfer__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='ibc/applications/transfer/v1/genesis.proto', package='ibc.applications.transfer.v1', syntax='proto3', - serialized_options=b'Z>github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types', + serialized_options=b'Z4github.com/cosmos/ibc-go/modules/apps/transfer/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n*ibc/applications/transfer/v1/genesis.proto\x12\x1cibc.applications.transfer.v1\x1a\x14gogoproto/gogo.proto\x1a+ibc/applications/transfer/v1/transfer.proto\"\xd6\x01\n\x0cGenesisState\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12\x65\n\x0c\x64\x65nom_traces\x18\x02 \x03(\x0b\x32(.ibc.applications.transfer.v1.DenomTraceB%\xaa\xdf\x1f\x06Traces\xc8\xde\x1f\x00\xf2\xde\x1f\x13yaml:\"denom_traces\"\x12:\n\x06params\x18\x03 \x01(\x0b\x32$.ibc.applications.transfer.v1.ParamsB\x04\xc8\xde\x1f\x00\x42@Z>github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/typesb\x06proto3' + serialized_pb=b'\n*ibc/applications/transfer/v1/genesis.proto\x12\x1cibc.applications.transfer.v1\x1a+ibc/applications/transfer/v1/transfer.proto\x1a\x14gogoproto/gogo.proto\"\xd6\x01\n\x0cGenesisState\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12\x65\n\x0c\x64\x65nom_traces\x18\x02 \x03(\x0b\x32(.ibc.applications.transfer.v1.DenomTraceB%\xaa\xdf\x1f\x06Traces\xc8\xde\x1f\x00\xf2\xde\x1f\x13yaml:\"denom_traces\"\x12:\n\x06params\x18\x03 \x01(\x0b\x32$.ibc.applications.transfer.v1.ParamsB\x04\xc8\xde\x1f\x00\x42\x36Z4github.com/cosmos/ibc-go/modules/apps/transfer/typesb\x06proto3' , - dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,ibc_dot_applications_dot_transfer_dot_v1_dot_transfer__pb2.DESCRIPTOR,]) + dependencies=[ibc_dot_applications_dot_transfer_dot_v1_dot_transfer__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi deleted file mode 100644 index 385b1d2..0000000 --- a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi +++ /dev/null @@ -1,36 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.applications.transfer.v1.transfer_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - DENOM_TRACES_FIELD_NUMBER: builtins.int - PARAMS_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - - @property - def denom_traces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]: ... - - @property - def params(self) -> ibc.applications.transfer.v1.transfer_pb2.Params: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - denom_traces : typing.Optional[typing.Iterable[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]] = ..., - params : typing.Optional[ibc.applications.transfer.v1.transfer_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"denom_traces",b"denom_traces",u"params",b"params",u"port_id",b"port_id"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/query_pb2.py b/pyband/proto/ibc/applications/transfer/v1/query_pb2.py index 77cbe30..26bdee8 100644 --- a/pyband/proto/ibc/applications/transfer/v1/query_pb2.py +++ b/pyband/proto/ibc/applications/transfer/v1/query_pb2.py @@ -21,9 +21,9 @@ name='ibc/applications/transfer/v1/query.proto', package='ibc.applications.transfer.v1', syntax='proto3', - serialized_options=b'Z>github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types', + serialized_options=b'Z4github.com/cosmos/ibc-go/modules/apps/transfer/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n(ibc/applications/transfer/v1/query.proto\x12\x1cibc.applications.transfer.v1\x1a\x14gogoproto/gogo.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a+ibc/applications/transfer/v1/transfer.proto\x1a\x1cgoogle/api/annotations.proto\"&\n\x16QueryDenomTraceRequest\x12\x0c\n\x04hash\x18\x01 \x01(\t\"X\n\x17QueryDenomTraceResponse\x12=\n\x0b\x64\x65nom_trace\x18\x01 \x01(\x0b\x32(.ibc.applications.transfer.v1.DenomTrace\"U\n\x17QueryDenomTracesRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xa7\x01\n\x18QueryDenomTracesResponse\x12N\n\x0c\x64\x65nom_traces\x18\x01 \x03(\x0b\x32(.ibc.applications.transfer.v1.DenomTraceB\x0e\xaa\xdf\x1f\x06Traces\xc8\xde\x1f\x00\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"\x14\n\x12QueryParamsRequest\"K\n\x13QueryParamsResponse\x12\x34\n\x06params\x18\x01 \x01(\x0b\x32$.ibc.applications.transfer.v1.Params2\x9e\x04\n\x05Query\x12\xb9\x01\n\nDenomTrace\x12\x34.ibc.applications.transfer.v1.QueryDenomTraceRequest\x1a\x35.ibc.applications.transfer.v1.QueryDenomTraceResponse\">\x82\xd3\xe4\x93\x02\x38\x12\x36/ibc/applications/transfer/v1beta1/denom_traces/{hash}\x12\xb5\x01\n\x0b\x44\x65nomTraces\x12\x35.ibc.applications.transfer.v1.QueryDenomTracesRequest\x1a\x36.ibc.applications.transfer.v1.QueryDenomTracesResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//ibc/applications/transfer/v1beta1/denom_traces\x12\xa0\x01\n\x06Params\x12\x30.ibc.applications.transfer.v1.QueryParamsRequest\x1a\x31.ibc.applications.transfer.v1.QueryParamsResponse\"1\x82\xd3\xe4\x93\x02+\x12)/ibc/applications/transfer/v1beta1/paramsB@Z>github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/typesb\x06proto3' + serialized_pb=b'\n(ibc/applications/transfer/v1/query.proto\x12\x1cibc.applications.transfer.v1\x1a\x14gogoproto/gogo.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a+ibc/applications/transfer/v1/transfer.proto\x1a\x1cgoogle/api/annotations.proto\"&\n\x16QueryDenomTraceRequest\x12\x0c\n\x04hash\x18\x01 \x01(\t\"X\n\x17QueryDenomTraceResponse\x12=\n\x0b\x64\x65nom_trace\x18\x01 \x01(\x0b\x32(.ibc.applications.transfer.v1.DenomTrace\"U\n\x17QueryDenomTracesRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xa7\x01\n\x18QueryDenomTracesResponse\x12N\n\x0c\x64\x65nom_traces\x18\x01 \x03(\x0b\x32(.ibc.applications.transfer.v1.DenomTraceB\x0e\xaa\xdf\x1f\x06Traces\xc8\xde\x1f\x00\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"\x14\n\x12QueryParamsRequest\"K\n\x13QueryParamsResponse\x12\x34\n\x06params\x18\x01 \x01(\x0b\x32$.ibc.applications.transfer.v1.Params2\xf7\x03\n\x05Query\x12\xac\x01\n\nDenomTrace\x12\x34.ibc.applications.transfer.v1.QueryDenomTraceRequest\x1a\x35.ibc.applications.transfer.v1.QueryDenomTraceResponse\"1\x82\xd3\xe4\x93\x02+\x12)/ibc/apps/transfer/v1/denom_traces/{hash}\x12\xa8\x01\n\x0b\x44\x65nomTraces\x12\x35.ibc.applications.transfer.v1.QueryDenomTracesRequest\x1a\x36.ibc.applications.transfer.v1.QueryDenomTracesResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/ibc/apps/transfer/v1/denom_traces\x12\x93\x01\n\x06Params\x12\x30.ibc.applications.transfer.v1.QueryParamsRequest\x1a\x31.ibc.applications.transfer.v1.QueryParamsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/ibc/apps/transfer/v1/paramsB6Z4github.com/cosmos/ibc-go/modules/apps/transfer/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,ibc_dot_applications_dot_transfer_dot_v1_dot_transfer__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -288,7 +288,7 @@ serialized_options=None, create_key=_descriptor._internal_create_key, serialized_start=702, - serialized_end=1244, + serialized_end=1205, methods=[ _descriptor.MethodDescriptor( name='DenomTrace', @@ -297,7 +297,7 @@ containing_service=None, input_type=_QUERYDENOMTRACEREQUEST, output_type=_QUERYDENOMTRACERESPONSE, - serialized_options=b'\202\323\344\223\0028\0226/ibc/applications/transfer/v1beta1/denom_traces/{hash}', + serialized_options=b'\202\323\344\223\002+\022)/ibc/apps/transfer/v1/denom_traces/{hash}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -307,7 +307,7 @@ containing_service=None, input_type=_QUERYDENOMTRACESREQUEST, output_type=_QUERYDENOMTRACESRESPONSE, - serialized_options=b'\202\323\344\223\0021\022//ibc/applications/transfer/v1beta1/denom_traces', + serialized_options=b'\202\323\344\223\002$\022\"/ibc/apps/transfer/v1/denom_traces', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -317,7 +317,7 @@ containing_service=None, input_type=_QUERYPARAMSREQUEST, output_type=_QUERYPARAMSRESPONSE, - serialized_options=b'\202\323\344\223\002+\022)/ibc/applications/transfer/v1beta1/params', + serialized_options=b'\202\323\344\223\002\036\022\034/ibc/apps/transfer/v1/params', create_key=_descriptor._internal_create_key, ), ]) diff --git a/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi deleted file mode 100644 index f6ec868..0000000 --- a/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi +++ /dev/null @@ -1,98 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.applications.transfer.v1.transfer_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryDenomTraceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HASH_FIELD_NUMBER: builtins.int - hash: typing.Text = ... - - def __init__(self, - *, - hash : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... -global___QueryDenomTraceRequest = QueryDenomTraceRequest - -class QueryDenomTraceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_TRACE_FIELD_NUMBER: builtins.int - - @property - def denom_trace(self) -> ibc.applications.transfer.v1.transfer_pb2.DenomTrace: ... - - def __init__(self, - *, - denom_trace : typing.Optional[ibc.applications.transfer.v1.transfer_pb2.DenomTrace] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"denom_trace",b"denom_trace"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"denom_trace",b"denom_trace"]) -> None: ... -global___QueryDenomTraceResponse = QueryDenomTraceResponse - -class QueryDenomTracesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... -global___QueryDenomTracesRequest = QueryDenomTracesRequest - -class QueryDenomTracesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_TRACES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def denom_traces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - denom_traces : typing.Optional[typing.Iterable[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"denom_traces",b"denom_traces",u"pagination",b"pagination"]) -> None: ... -global___QueryDenomTracesResponse = QueryDenomTracesResponse - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> ibc.applications.transfer.v1.transfer_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[ibc.applications.transfer.v1.transfer_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi deleted file mode 100644 index 3f770b4..0000000 --- a/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi +++ /dev/null @@ -1,44 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - DenomTrace:grpc.UnaryUnaryMultiCallable[ - global___QueryDenomTraceRequest, - global___QueryDenomTraceResponse] = ... - - DenomTraces:grpc.UnaryUnaryMultiCallable[ - global___QueryDenomTracesRequest, - global___QueryDenomTracesResponse] = ... - - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def DenomTrace(self, - request: global___QueryDenomTraceRequest, - context: grpc.ServicerContext, - ) -> global___QueryDenomTraceResponse: ... - - @abc.abstractmethod - def DenomTraces(self, - request: global___QueryDenomTracesRequest, - context: grpc.ServicerContext, - ) -> global___QueryDenomTracesResponse: ... - - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.py b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.py index 2b0e5be..ff6ba6d 100644 --- a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.py +++ b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.py @@ -18,9 +18,9 @@ name='ibc/applications/transfer/v1/transfer.proto', package='ibc.applications.transfer.v1', syntax='proto3', - serialized_options=b'Z>github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types', + serialized_options=b'Z4github.com/cosmos/ibc-go/modules/apps/transfer/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n+ibc/applications/transfer/v1/transfer.proto\x12\x1cibc.applications.transfer.v1\x1a\x14gogoproto/gogo.proto\"Z\n\x17\x46ungibleTokenPacketData\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x04\x12\x0e\n\x06sender\x18\x03 \x01(\t\x12\x10\n\x08receiver\x18\x04 \x01(\t\".\n\nDenomTrace\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x12\n\nbase_denom\x18\x02 \x01(\t\"l\n\x06Params\x12-\n\x0csend_enabled\x18\x01 \x01(\x08\x42\x17\xf2\xde\x1f\x13yaml:\"send_enabled\"\x12\x33\n\x0freceive_enabled\x18\x02 \x01(\x08\x42\x1a\xf2\xde\x1f\x16yaml:\"receive_enabled\"B@Z>github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/typesb\x06proto3' + serialized_pb=b'\n+ibc/applications/transfer/v1/transfer.proto\x12\x1cibc.applications.transfer.v1\x1a\x14gogoproto/gogo.proto\"Z\n\x17\x46ungibleTokenPacketData\x12\r\n\x05\x64\x65nom\x18\x01 \x01(\t\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x04\x12\x0e\n\x06sender\x18\x03 \x01(\t\x12\x10\n\x08receiver\x18\x04 \x01(\t\".\n\nDenomTrace\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x12\n\nbase_denom\x18\x02 \x01(\t\"l\n\x06Params\x12-\n\x0csend_enabled\x18\x01 \x01(\x08\x42\x17\xf2\xde\x1f\x13yaml:\"send_enabled\"\x12\x33\n\x0freceive_enabled\x18\x02 \x01(\x08\x42\x1a\xf2\xde\x1f\x16yaml:\"receive_enabled\"B6Z4github.com/cosmos/ibc-go/modules/apps/transfer/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi deleted file mode 100644 index 6cc5825..0000000 --- a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class FungibleTokenPacketData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DENOM_FIELD_NUMBER: builtins.int - AMOUNT_FIELD_NUMBER: builtins.int - SENDER_FIELD_NUMBER: builtins.int - RECEIVER_FIELD_NUMBER: builtins.int - denom: typing.Text = ... - amount: builtins.int = ... - sender: typing.Text = ... - receiver: typing.Text = ... - - def __init__(self, - *, - denom : typing.Text = ..., - amount : builtins.int = ..., - sender : typing.Text = ..., - receiver : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom",u"receiver",b"receiver",u"sender",b"sender"]) -> None: ... -global___FungibleTokenPacketData = FungibleTokenPacketData - -class DenomTrace(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - BASE_DENOM_FIELD_NUMBER: builtins.int - path: typing.Text = ... - base_denom: typing.Text = ... - - def __init__(self, - *, - path : typing.Text = ..., - base_denom : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base_denom",b"base_denom",u"path",b"path"]) -> None: ... -global___DenomTrace = DenomTrace - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SEND_ENABLED_FIELD_NUMBER: builtins.int - RECEIVE_ENABLED_FIELD_NUMBER: builtins.int - send_enabled: builtins.bool = ... - receive_enabled: builtins.bool = ... - - def __init__(self, - *, - send_enabled : builtins.bool = ..., - receive_enabled : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"receive_enabled",b"receive_enabled",u"send_enabled",b"send_enabled"]) -> None: ... -global___Params = Params diff --git a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi deleted file mode 100644 index 6011570..0000000 --- a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .transfer_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/tx_pb2.py b/pyband/proto/ibc/applications/transfer/v1/tx_pb2.py index 6eda511..0657b2c 100644 --- a/pyband/proto/ibc/applications/transfer/v1/tx_pb2.py +++ b/pyband/proto/ibc/applications/transfer/v1/tx_pb2.py @@ -20,9 +20,9 @@ name='ibc/applications/transfer/v1/tx.proto', package='ibc.applications.transfer.v1', syntax='proto3', - serialized_options=b'Z>github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types', + serialized_options=b'Z4github.com/cosmos/ibc-go/modules/apps/transfer/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n%ibc/applications/transfer/v1/tx.proto\x12\x1cibc.applications.transfer.v1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1fibc/core/client/v1/client.proto\"\xd5\x02\n\x0bMsgTransfer\x12+\n\x0bsource_port\x18\x01 \x01(\tB\x16\xf2\xde\x1f\x12yaml:\"source_port\"\x12\x31\n\x0esource_channel\x18\x02 \x01(\tB\x19\xf2\xde\x1f\x15yaml:\"source_channel\"\x12.\n\x05token\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00\x12\x0e\n\x06sender\x18\x04 \x01(\t\x12\x10\n\x08receiver\x18\x05 \x01(\t\x12Q\n\x0etimeout_height\x18\x06 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1d\xf2\xde\x1f\x15yaml:\"timeout_height\"\xc8\xde\x1f\x00\x12\x37\n\x11timeout_timestamp\x18\x07 \x01(\x04\x42\x1c\xf2\xde\x1f\x18yaml:\"timeout_timestamp\":\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x15\n\x13MsgTransferResponse2o\n\x03Msg\x12h\n\x08Transfer\x12).ibc.applications.transfer.v1.MsgTransfer\x1a\x31.ibc.applications.transfer.v1.MsgTransferResponseB@Z>github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/typesb\x06proto3' + serialized_pb=b'\n%ibc/applications/transfer/v1/tx.proto\x12\x1cibc.applications.transfer.v1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1fibc/core/client/v1/client.proto\"\xd5\x02\n\x0bMsgTransfer\x12+\n\x0bsource_port\x18\x01 \x01(\tB\x16\xf2\xde\x1f\x12yaml:\"source_port\"\x12\x31\n\x0esource_channel\x18\x02 \x01(\tB\x19\xf2\xde\x1f\x15yaml:\"source_channel\"\x12.\n\x05token\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00\x12\x0e\n\x06sender\x18\x04 \x01(\t\x12\x10\n\x08receiver\x18\x05 \x01(\t\x12Q\n\x0etimeout_height\x18\x06 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1d\xf2\xde\x1f\x15yaml:\"timeout_height\"\xc8\xde\x1f\x00\x12\x37\n\x11timeout_timestamp\x18\x07 \x01(\x04\x42\x1c\xf2\xde\x1f\x18yaml:\"timeout_timestamp\":\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x15\n\x13MsgTransferResponse2o\n\x03Msg\x12h\n\x08Transfer\x12).ibc.applications.transfer.v1.MsgTransfer\x1a\x31.ibc.applications.transfer.v1.MsgTransferResponseB6Z4github.com/cosmos/ibc-go/modules/apps/transfer/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi deleted file mode 100644 index c808dbf..0000000 --- a/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import ibc.core.client.v1.client_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgTransfer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SOURCE_PORT_FIELD_NUMBER: builtins.int - SOURCE_CHANNEL_FIELD_NUMBER: builtins.int - TOKEN_FIELD_NUMBER: builtins.int - SENDER_FIELD_NUMBER: builtins.int - RECEIVER_FIELD_NUMBER: builtins.int - TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int - TIMEOUT_TIMESTAMP_FIELD_NUMBER: builtins.int - source_port: typing.Text = ... - source_channel: typing.Text = ... - sender: typing.Text = ... - receiver: typing.Text = ... - timeout_timestamp: builtins.int = ... - - @property - def token(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... - - @property - def timeout_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - source_port : typing.Text = ..., - source_channel : typing.Text = ..., - token : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., - sender : typing.Text = ..., - receiver : typing.Text = ..., - timeout_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - timeout_timestamp : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"timeout_height",b"timeout_height",u"token",b"token"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"receiver",b"receiver",u"sender",b"sender",u"source_channel",b"source_channel",u"source_port",b"source_port",u"timeout_height",b"timeout_height",u"timeout_timestamp",b"timeout_timestamp",u"token",b"token"]) -> None: ... -global___MsgTransfer = MsgTransfer - -class MsgTransferResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgTransferResponse = MsgTransferResponse diff --git a/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi deleted file mode 100644 index 1db6576..0000000 --- a/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,24 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Transfer:grpc.UnaryUnaryMultiCallable[ - global___MsgTransfer, - global___MsgTransferResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Transfer(self, - request: global___MsgTransfer, - context: grpc.ServicerContext, - ) -> global___MsgTransferResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/channel/v1/channel_pb2.py b/pyband/proto/ibc/core/channel/v1/channel_pb2.py index 1129f34..e9d3f73 100644 --- a/pyband/proto/ibc/core/channel/v1/channel_pb2.py +++ b/pyband/proto/ibc/core/channel/v1/channel_pb2.py @@ -20,9 +20,9 @@ name='ibc/core/channel/v1/channel.proto', package='ibc.core.channel.v1', syntax='proto3', - serialized_options=b'Z8github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types', + serialized_options=b'Z6github.com/cosmos/ibc-go/modules/core/04-channel/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n!ibc/core/channel/v1/channel.proto\x12\x13ibc.core.channel.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fibc/core/client/v1/client.proto\"\xed\x01\n\x07\x43hannel\x12)\n\x05state\x18\x01 \x01(\x0e\x32\x1a.ibc.core.channel.v1.State\x12,\n\x08ordering\x18\x02 \x01(\x0e\x32\x1a.ibc.core.channel.v1.Order\x12=\n\x0c\x63ounterparty\x18\x03 \x01(\x0b\x32!.ibc.core.channel.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12\x33\n\x0f\x63onnection_hops\x18\x04 \x03(\tB\x1a\xf2\xde\x1f\x16yaml:\"connection_hops\"\x12\x0f\n\x07version\x18\x05 \x01(\t:\x04\x88\xa0\x1f\x00\"\x9c\x02\n\x11IdentifiedChannel\x12)\n\x05state\x18\x01 \x01(\x0e\x32\x1a.ibc.core.channel.v1.State\x12,\n\x08ordering\x18\x02 \x01(\x0e\x32\x1a.ibc.core.channel.v1.Order\x12=\n\x0c\x63ounterparty\x18\x03 \x01(\x0b\x32!.ibc.core.channel.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12\x33\n\x0f\x63onnection_hops\x18\x04 \x03(\tB\x1a\xf2\xde\x1f\x16yaml:\"connection_hops\"\x12\x0f\n\x07version\x18\x05 \x01(\t\x12\x0f\n\x07port_id\x18\x06 \x01(\t\x12\x12\n\nchannel_id\x18\x07 \x01(\t:\x04\x88\xa0\x1f\x00\"d\n\x0c\x43ounterparty\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\":\x04\x88\xa0\x1f\x00\"\x8e\x03\n\x06Packet\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12+\n\x0bsource_port\x18\x02 \x01(\tB\x16\xf2\xde\x1f\x12yaml:\"source_port\"\x12\x31\n\x0esource_channel\x18\x03 \x01(\tB\x19\xf2\xde\x1f\x15yaml:\"source_channel\"\x12\x35\n\x10\x64\x65stination_port\x18\x04 \x01(\tB\x1b\xf2\xde\x1f\x17yaml:\"destination_port\"\x12;\n\x13\x64\x65stination_channel\x18\x05 \x01(\tB\x1e\xf2\xde\x1f\x1ayaml:\"destination_channel\"\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c\x12Q\n\x0etimeout_height\x18\x07 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1d\xf2\xde\x1f\x15yaml:\"timeout_height\"\xc8\xde\x1f\x00\x12\x37\n\x11timeout_timestamp\x18\x08 \x01(\x04\x42\x1c\xf2\xde\x1f\x18yaml:\"timeout_timestamp\":\x04\x88\xa0\x1f\x00\"\x83\x01\n\x0bPacketState\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\x10\n\x08sequence\x18\x03 \x01(\x04\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c:\x04\x88\xa0\x1f\x00\"@\n\x0f\x41\x63knowledgement\x12\x10\n\x06result\x18\x15 \x01(\x0cH\x00\x12\x0f\n\x05\x65rror\x18\x16 \x01(\tH\x00\x42\n\n\x08response*\xb7\x01\n\x05State\x12\x36\n\x1fSTATE_UNINITIALIZED_UNSPECIFIED\x10\x00\x1a\x11\x8a\x9d \rUNINITIALIZED\x12\x18\n\nSTATE_INIT\x10\x01\x1a\x08\x8a\x9d \x04INIT\x12\x1e\n\rSTATE_TRYOPEN\x10\x02\x1a\x0b\x8a\x9d \x07TRYOPEN\x12\x18\n\nSTATE_OPEN\x10\x03\x1a\x08\x8a\x9d \x04OPEN\x12\x1c\n\x0cSTATE_CLOSED\x10\x04\x1a\n\x8a\x9d \x06\x43LOSED\x1a\x04\x88\xa3\x1e\x00*w\n\x05Order\x12$\n\x16ORDER_NONE_UNSPECIFIED\x10\x00\x1a\x08\x8a\x9d \x04NONE\x12\"\n\x0fORDER_UNORDERED\x10\x01\x1a\r\x8a\x9d \tUNORDERED\x12\x1e\n\rORDER_ORDERED\x10\x02\x1a\x0b\x8a\x9d \x07ORDERED\x1a\x04\x88\xa3\x1e\x00\x42:Z8github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/typesb\x06proto3' + serialized_pb=b'\n!ibc/core/channel/v1/channel.proto\x12\x13ibc.core.channel.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fibc/core/client/v1/client.proto\"\xed\x01\n\x07\x43hannel\x12)\n\x05state\x18\x01 \x01(\x0e\x32\x1a.ibc.core.channel.v1.State\x12,\n\x08ordering\x18\x02 \x01(\x0e\x32\x1a.ibc.core.channel.v1.Order\x12=\n\x0c\x63ounterparty\x18\x03 \x01(\x0b\x32!.ibc.core.channel.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12\x33\n\x0f\x63onnection_hops\x18\x04 \x03(\tB\x1a\xf2\xde\x1f\x16yaml:\"connection_hops\"\x12\x0f\n\x07version\x18\x05 \x01(\t:\x04\x88\xa0\x1f\x00\"\x9c\x02\n\x11IdentifiedChannel\x12)\n\x05state\x18\x01 \x01(\x0e\x32\x1a.ibc.core.channel.v1.State\x12,\n\x08ordering\x18\x02 \x01(\x0e\x32\x1a.ibc.core.channel.v1.Order\x12=\n\x0c\x63ounterparty\x18\x03 \x01(\x0b\x32!.ibc.core.channel.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12\x33\n\x0f\x63onnection_hops\x18\x04 \x03(\tB\x1a\xf2\xde\x1f\x16yaml:\"connection_hops\"\x12\x0f\n\x07version\x18\x05 \x01(\t\x12\x0f\n\x07port_id\x18\x06 \x01(\t\x12\x12\n\nchannel_id\x18\x07 \x01(\t:\x04\x88\xa0\x1f\x00\"d\n\x0c\x43ounterparty\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\":\x04\x88\xa0\x1f\x00\"\x8e\x03\n\x06Packet\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12+\n\x0bsource_port\x18\x02 \x01(\tB\x16\xf2\xde\x1f\x12yaml:\"source_port\"\x12\x31\n\x0esource_channel\x18\x03 \x01(\tB\x19\xf2\xde\x1f\x15yaml:\"source_channel\"\x12\x35\n\x10\x64\x65stination_port\x18\x04 \x01(\tB\x1b\xf2\xde\x1f\x17yaml:\"destination_port\"\x12;\n\x13\x64\x65stination_channel\x18\x05 \x01(\tB\x1e\xf2\xde\x1f\x1ayaml:\"destination_channel\"\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c\x12Q\n\x0etimeout_height\x18\x07 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1d\xf2\xde\x1f\x15yaml:\"timeout_height\"\xc8\xde\x1f\x00\x12\x37\n\x11timeout_timestamp\x18\x08 \x01(\x04\x42\x1c\xf2\xde\x1f\x18yaml:\"timeout_timestamp\":\x04\x88\xa0\x1f\x00\"\x83\x01\n\x0bPacketState\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\x10\n\x08sequence\x18\x03 \x01(\x04\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c:\x04\x88\xa0\x1f\x00\"@\n\x0f\x41\x63knowledgement\x12\x10\n\x06result\x18\x15 \x01(\x0cH\x00\x12\x0f\n\x05\x65rror\x18\x16 \x01(\tH\x00\x42\n\n\x08response*\xb7\x01\n\x05State\x12\x36\n\x1fSTATE_UNINITIALIZED_UNSPECIFIED\x10\x00\x1a\x11\x8a\x9d \rUNINITIALIZED\x12\x18\n\nSTATE_INIT\x10\x01\x1a\x08\x8a\x9d \x04INIT\x12\x1e\n\rSTATE_TRYOPEN\x10\x02\x1a\x0b\x8a\x9d \x07TRYOPEN\x12\x18\n\nSTATE_OPEN\x10\x03\x1a\x08\x8a\x9d \x04OPEN\x12\x1c\n\x0cSTATE_CLOSED\x10\x04\x1a\n\x8a\x9d \x06\x43LOSED\x1a\x04\x88\xa3\x1e\x00*w\n\x05Order\x12$\n\x16ORDER_NONE_UNSPECIFIED\x10\x00\x1a\x08\x8a\x9d \x04NONE\x12\"\n\x0fORDER_UNORDERED\x10\x01\x1a\r\x8a\x9d \tUNORDERED\x12\x1e\n\rORDER_ORDERED\x10\x02\x1a\x0b\x8a\x9d \x07ORDERED\x1a\x04\x88\xa3\x1e\x00\x42\x38Z6github.com/cosmos/ibc-go/modules/core/04-channel/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi b/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi deleted file mode 100644 index 0ea15c5..0000000 --- a/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi +++ /dev/null @@ -1,201 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import ibc.core.client.v1.client_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class State(metaclass=_State): - V = typing.NewType('V', builtins.int) - -global___State = State - -STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) -STATE_INIT = State.V(1) -STATE_TRYOPEN = State.V(2) -STATE_OPEN = State.V(3) -STATE_CLOSED = State.V(4) - -class _State(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[State.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) - STATE_INIT = State.V(1) - STATE_TRYOPEN = State.V(2) - STATE_OPEN = State.V(3) - STATE_CLOSED = State.V(4) - -class Order(metaclass=_Order): - V = typing.NewType('V', builtins.int) - -global___Order = Order - -ORDER_NONE_UNSPECIFIED = Order.V(0) -ORDER_UNORDERED = Order.V(1) -ORDER_ORDERED = Order.V(2) - -class _Order(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Order.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - ORDER_NONE_UNSPECIFIED = Order.V(0) - ORDER_UNORDERED = Order.V(1) - ORDER_ORDERED = Order.V(2) - -class Channel(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - STATE_FIELD_NUMBER: builtins.int - ORDERING_FIELD_NUMBER: builtins.int - COUNTERPARTY_FIELD_NUMBER: builtins.int - CONNECTION_HOPS_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - state: global___State.V = ... - ordering: global___Order.V = ... - - @property - def connection_hops(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - version: typing.Text = ... - - @property - def counterparty(self) -> global___Counterparty: ... - - def __init__(self, - *, - state : global___State.V = ..., - ordering : global___Order.V = ..., - counterparty : typing.Optional[global___Counterparty] = ..., - connection_hops : typing.Optional[typing.Iterable[typing.Text]] = ..., - version : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection_hops",b"connection_hops",u"counterparty",b"counterparty",u"ordering",b"ordering",u"state",b"state",u"version",b"version"]) -> None: ... -global___Channel = Channel - -class IdentifiedChannel(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - STATE_FIELD_NUMBER: builtins.int - ORDERING_FIELD_NUMBER: builtins.int - COUNTERPARTY_FIELD_NUMBER: builtins.int - CONNECTION_HOPS_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - state: global___State.V = ... - ordering: global___Order.V = ... - - @property - def connection_hops(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - version: typing.Text = ... - port_id: typing.Text = ... - channel_id: typing.Text = ... - - @property - def counterparty(self) -> global___Counterparty: ... - - def __init__(self, - *, - state : global___State.V = ..., - ordering : global___Order.V = ..., - counterparty : typing.Optional[global___Counterparty] = ..., - connection_hops : typing.Optional[typing.Iterable[typing.Text]] = ..., - version : typing.Text = ..., - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"connection_hops",b"connection_hops",u"counterparty",b"counterparty",u"ordering",b"ordering",u"port_id",b"port_id",u"state",b"state",u"version",b"version"]) -> None: ... -global___IdentifiedChannel = IdentifiedChannel - -class Counterparty(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... -global___Counterparty = Counterparty - -class Packet(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SEQUENCE_FIELD_NUMBER: builtins.int - SOURCE_PORT_FIELD_NUMBER: builtins.int - SOURCE_CHANNEL_FIELD_NUMBER: builtins.int - DESTINATION_PORT_FIELD_NUMBER: builtins.int - DESTINATION_CHANNEL_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int - TIMEOUT_TIMESTAMP_FIELD_NUMBER: builtins.int - sequence: builtins.int = ... - source_port: typing.Text = ... - source_channel: typing.Text = ... - destination_port: typing.Text = ... - destination_channel: typing.Text = ... - data: builtins.bytes = ... - timeout_timestamp: builtins.int = ... - - @property - def timeout_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - sequence : builtins.int = ..., - source_port : typing.Text = ..., - source_channel : typing.Text = ..., - destination_port : typing.Text = ..., - destination_channel : typing.Text = ..., - data : builtins.bytes = ..., - timeout_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - timeout_timestamp : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"timeout_height",b"timeout_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"destination_channel",b"destination_channel",u"destination_port",b"destination_port",u"sequence",b"sequence",u"source_channel",b"source_channel",u"source_port",b"source_port",u"timeout_height",b"timeout_height",u"timeout_timestamp",b"timeout_timestamp"]) -> None: ... -global___Packet = Packet - -class PacketState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - sequence: builtins.int = ... - data: builtins.bytes = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - sequence : builtins.int = ..., - data : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"data",b"data",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... -global___PacketState = PacketState - -class Acknowledgement(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - RESULT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - result: builtins.bytes = ... - error: typing.Text = ... - - def __init__(self, - *, - result : builtins.bytes = ..., - error : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"error",b"error",u"response",b"response",u"result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"error",b"error",u"response",b"response",u"result",b"result"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"response",b"response"]) -> typing.Optional[typing_extensions.Literal["result","error"]]: ... -global___Acknowledgement = Acknowledgement diff --git a/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi deleted file mode 100644 index 8e5d952..0000000 --- a/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .channel_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/channel/v1/genesis_pb2.py b/pyband/proto/ibc/core/channel/v1/genesis_pb2.py index ad32b1d..f7b49f4 100644 --- a/pyband/proto/ibc/core/channel/v1/genesis_pb2.py +++ b/pyband/proto/ibc/core/channel/v1/genesis_pb2.py @@ -19,9 +19,9 @@ name='ibc/core/channel/v1/genesis.proto', package='ibc.core.channel.v1', syntax='proto3', - serialized_options=b'Z8github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types', + serialized_options=b'Z6github.com/cosmos/ibc-go/modules/core/04-channel/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n!ibc/core/channel/v1/genesis.proto\x12\x13ibc.core.channel.v1\x1a\x14gogoproto/gogo.proto\x1a!ibc/core/channel/v1/channel.proto\"\xef\x04\n\x0cGenesisState\x12S\n\x08\x63hannels\x18\x01 \x03(\x0b\x32&.ibc.core.channel.v1.IdentifiedChannelB\x19\xfa\xde\x1f\x11IdentifiedChannel\xc8\xde\x1f\x00\x12@\n\x10\x61\x63knowledgements\x18\x02 \x03(\x0b\x32 .ibc.core.channel.v1.PacketStateB\x04\xc8\xde\x1f\x00\x12;\n\x0b\x63ommitments\x18\x03 \x03(\x0b\x32 .ibc.core.channel.v1.PacketStateB\x04\xc8\xde\x1f\x00\x12\x38\n\x08receipts\x18\x04 \x03(\x0b\x32 .ibc.core.channel.v1.PacketStateB\x04\xc8\xde\x1f\x00\x12Z\n\x0esend_sequences\x18\x05 \x03(\x0b\x32#.ibc.core.channel.v1.PacketSequenceB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x15yaml:\"send_sequences\"\x12Z\n\x0erecv_sequences\x18\x06 \x03(\x0b\x32#.ibc.core.channel.v1.PacketSequenceB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x15yaml:\"recv_sequences\"\x12X\n\rack_sequences\x18\x07 \x03(\x0b\x32#.ibc.core.channel.v1.PacketSequenceB\x1c\xc8\xde\x1f\x00\xf2\xde\x1f\x14yaml:\"ack_sequences\"\x12?\n\x15next_channel_sequence\x18\x08 \x01(\x04\x42 \xf2\xde\x1f\x1cyaml:\"next_channel_sequence\"\"r\n\x0ePacketSequence\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\x10\n\x08sequence\x18\x03 \x01(\x04\x42:Z8github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/typesb\x06proto3' + serialized_pb=b'\n!ibc/core/channel/v1/genesis.proto\x12\x13ibc.core.channel.v1\x1a\x14gogoproto/gogo.proto\x1a!ibc/core/channel/v1/channel.proto\"\xef\x04\n\x0cGenesisState\x12S\n\x08\x63hannels\x18\x01 \x03(\x0b\x32&.ibc.core.channel.v1.IdentifiedChannelB\x19\xfa\xde\x1f\x11IdentifiedChannel\xc8\xde\x1f\x00\x12@\n\x10\x61\x63knowledgements\x18\x02 \x03(\x0b\x32 .ibc.core.channel.v1.PacketStateB\x04\xc8\xde\x1f\x00\x12;\n\x0b\x63ommitments\x18\x03 \x03(\x0b\x32 .ibc.core.channel.v1.PacketStateB\x04\xc8\xde\x1f\x00\x12\x38\n\x08receipts\x18\x04 \x03(\x0b\x32 .ibc.core.channel.v1.PacketStateB\x04\xc8\xde\x1f\x00\x12Z\n\x0esend_sequences\x18\x05 \x03(\x0b\x32#.ibc.core.channel.v1.PacketSequenceB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x15yaml:\"send_sequences\"\x12Z\n\x0erecv_sequences\x18\x06 \x03(\x0b\x32#.ibc.core.channel.v1.PacketSequenceB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x15yaml:\"recv_sequences\"\x12X\n\rack_sequences\x18\x07 \x03(\x0b\x32#.ibc.core.channel.v1.PacketSequenceB\x1c\xc8\xde\x1f\x00\xf2\xde\x1f\x14yaml:\"ack_sequences\"\x12?\n\x15next_channel_sequence\x18\x08 \x01(\x04\x42 \xf2\xde\x1f\x1cyaml:\"next_channel_sequence\"\"r\n\x0ePacketSequence\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\x10\n\x08sequence\x18\x03 \x01(\x04\x42\x38Z6github.com/cosmos/ibc-go/modules/core/04-channel/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,ibc_dot_core_dot_channel_dot_v1_dot_channel__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi deleted file mode 100644 index d6cfdae..0000000 --- a/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi +++ /dev/null @@ -1,78 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.core.channel.v1.channel_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHANNELS_FIELD_NUMBER: builtins.int - ACKNOWLEDGEMENTS_FIELD_NUMBER: builtins.int - COMMITMENTS_FIELD_NUMBER: builtins.int - RECEIPTS_FIELD_NUMBER: builtins.int - SEND_SEQUENCES_FIELD_NUMBER: builtins.int - RECV_SEQUENCES_FIELD_NUMBER: builtins.int - ACK_SEQUENCES_FIELD_NUMBER: builtins.int - NEXT_CHANNEL_SEQUENCE_FIELD_NUMBER: builtins.int - next_channel_sequence: builtins.int = ... - - @property - def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... - - @property - def acknowledgements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... - - @property - def commitments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... - - @property - def receipts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... - - @property - def send_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... - - @property - def recv_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... - - @property - def ack_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... - - def __init__(self, - *, - channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., - acknowledgements : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., - commitments : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., - receipts : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., - send_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., - recv_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., - ack_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., - next_channel_sequence : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ack_sequences",b"ack_sequences",u"acknowledgements",b"acknowledgements",u"channels",b"channels",u"commitments",b"commitments",u"next_channel_sequence",b"next_channel_sequence",u"receipts",b"receipts",u"recv_sequences",b"recv_sequences",u"send_sequences",b"send_sequences"]) -> None: ... -global___GenesisState = GenesisState - -class PacketSequence(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - sequence: builtins.int = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - sequence : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... -global___PacketSequence = PacketSequence diff --git a/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/channel/v1/query_pb2.py b/pyband/proto/ibc/core/channel/v1/query_pb2.py index 2e8d428..c21fb28 100644 --- a/pyband/proto/ibc/core/channel/v1/query_pb2.py +++ b/pyband/proto/ibc/core/channel/v1/query_pb2.py @@ -23,9 +23,9 @@ name='ibc/core/channel/v1/query.proto', package='ibc.core.channel.v1', syntax='proto3', - serialized_options=b'Z8github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types', + serialized_options=b'Z6github.com/cosmos/ibc-go/modules/core/04-channel/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1fibc/core/channel/v1/query.proto\x12\x13ibc.core.channel.v1\x1a\x1fibc/core/client/v1/client.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a!ibc/core/channel/v1/channel.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.proto\":\n\x13QueryChannelRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\"\x8c\x01\n\x14QueryChannelResponse\x12-\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x1c.ibc.core.channel.v1.Channel\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"R\n\x14QueryChannelsRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xc0\x01\n\x15QueryChannelsResponse\x12\x38\n\x08\x63hannels\x18\x01 \x03(\x0b\x32&.ibc.core.channel.v1.IdentifiedChannel\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"p\n\x1eQueryConnectionChannelsRequest\x12\x12\n\nconnection\x18\x01 \x01(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xca\x01\n\x1fQueryConnectionChannelsResponse\x12\x38\n\x08\x63hannels\x18\x01 \x03(\x0b\x32&.ibc.core.channel.v1.IdentifiedChannel\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"E\n\x1eQueryChannelClientStateRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\"\xb4\x01\n\x1fQueryChannelClientStateResponse\x12J\n\x17identified_client_state\x18\x01 \x01(\x0b\x32).ibc.core.client.v1.IdentifiedClientState\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"z\n!QueryChannelConsensusStateRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x17\n\x0frevision_number\x18\x03 \x01(\x04\x12\x17\n\x0frevision_height\x18\x04 \x01(\x04\"\xad\x01\n\"QueryChannelConsensusStateResponse\x12-\n\x0f\x63onsensus_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12\r\n\x05proof\x18\x03 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"U\n\x1cQueryPacketCommitmentRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x10\n\x08sequence\x18\x03 \x01(\x04\"z\n\x1dQueryPacketCommitmentResponse\x12\x12\n\ncommitment\x18\x01 \x01(\x0c\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"\x80\x01\n\x1dQueryPacketCommitmentsRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12:\n\npagination\x18\x03 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xc6\x01\n\x1eQueryPacketCommitmentsResponse\x12\x35\n\x0b\x63ommitments\x18\x01 \x03(\x0b\x32 .ibc.core.channel.v1.PacketState\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"R\n\x19QueryPacketReceiptRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x10\n\x08sequence\x18\x03 \x01(\x04\"u\n\x1aQueryPacketReceiptResponse\x12\x10\n\x08received\x18\x02 \x01(\x08\x12\r\n\x05proof\x18\x03 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"Z\n!QueryPacketAcknowledgementRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x10\n\x08sequence\x18\x03 \x01(\x04\"\x84\x01\n\"QueryPacketAcknowledgementResponse\x12\x17\n\x0f\x61\x63knowledgement\x18\x01 \x01(\x0c\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"\x85\x01\n\"QueryPacketAcknowledgementsRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12:\n\npagination\x18\x03 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xd0\x01\n#QueryPacketAcknowledgementsResponse\x12:\n\x10\x61\x63knowledgements\x18\x01 \x03(\x0b\x32 .ibc.core.channel.v1.PacketState\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"i\n\x1dQueryUnreceivedPacketsRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12#\n\x1bpacket_commitment_sequences\x18\x03 \x03(\x04\"e\n\x1eQueryUnreceivedPacketsResponse\x12\x11\n\tsequences\x18\x01 \x03(\x04\x12\x30\n\x06height\x18\x02 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"_\n\x1aQueryUnreceivedAcksRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x1c\n\x14packet_ack_sequences\x18\x03 \x03(\x04\"b\n\x1bQueryUnreceivedAcksResponse\x12\x11\n\tsequences\x18\x01 \x03(\x04\x12\x30\n\x06height\x18\x02 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"F\n\x1fQueryNextSequenceReceiveRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\"\x88\x01\n QueryNextSequenceReceiveResponse\x12\x1d\n\x15next_sequence_receive\x18\x01 \x01(\x04\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\x32\xcf\x16\n\x05Query\x12\xa7\x01\n\x07\x43hannel\x12(.ibc.core.channel.v1.QueryChannelRequest\x1a).ibc.core.channel.v1.QueryChannelResponse\"G\x82\xd3\xe4\x93\x02\x41\x12?/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}\x12\x8d\x01\n\x08\x43hannels\x12).ibc.core.channel.v1.QueryChannelsRequest\x1a*.ibc.core.channel.v1.QueryChannelsResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/ibc/core/channel/v1beta1/channels\x12\xc4\x01\n\x12\x43onnectionChannels\x12\x33.ibc.core.channel.v1.QueryConnectionChannelsRequest\x1a\x34.ibc.core.channel.v1.QueryConnectionChannelsResponse\"C\x82\xd3\xe4\x93\x02=\x12;/ibc/core/channel/v1beta1/connections/{connection}/channels\x12\xd5\x01\n\x12\x43hannelClientState\x12\x33.ibc.core.channel.v1.QueryChannelClientStateRequest\x1a\x34.ibc.core.channel.v1.QueryChannelClientStateResponse\"T\x82\xd3\xe4\x93\x02N\x12L/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/client_state\x12\x98\x02\n\x15\x43hannelConsensusState\x12\x36.ibc.core.channel.v1.QueryChannelConsensusStateRequest\x1a\x37.ibc.core.channel.v1.QueryChannelConsensusStateResponse\"\x8d\x01\x82\xd3\xe4\x93\x02\x86\x01\x12\x83\x01/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}\x12\xe0\x01\n\x10PacketCommitment\x12\x31.ibc.core.channel.v1.QueryPacketCommitmentRequest\x1a\x32.ibc.core.channel.v1.QueryPacketCommitmentResponse\"e\x82\xd3\xe4\x93\x02_\x12]/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}\x12\xd8\x01\n\x11PacketCommitments\x12\x32.ibc.core.channel.v1.QueryPacketCommitmentsRequest\x1a\x33.ibc.core.channel.v1.QueryPacketCommitmentsResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments\x12\xd4\x01\n\rPacketReceipt\x12..ibc.core.channel.v1.QueryPacketReceiptRequest\x1a/.ibc.core.channel.v1.QueryPacketReceiptResponse\"b\x82\xd3\xe4\x93\x02\\\x12Z/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}\x12\xe8\x01\n\x15PacketAcknowledgement\x12\x36.ibc.core.channel.v1.QueryPacketAcknowledgementRequest\x1a\x37.ibc.core.channel.v1.QueryPacketAcknowledgementResponse\"^\x82\xd3\xe4\x93\x02X\x12V/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}\x12\xec\x01\n\x16PacketAcknowledgements\x12\x37.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest\x1a\x38.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse\"_\x82\xd3\xe4\x93\x02Y\x12W/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements\x12\x8c\x02\n\x11UnreceivedPackets\x12\x32.ibc.core.channel.v1.QueryUnreceivedPacketsRequest\x1a\x33.ibc.core.channel.v1.QueryUnreceivedPacketsResponse\"\x8d\x01\x82\xd3\xe4\x93\x02\x86\x01\x12\x83\x01/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets\x12\xf7\x01\n\x0eUnreceivedAcks\x12/.ibc.core.channel.v1.QueryUnreceivedAcksRequest\x1a\x30.ibc.core.channel.v1.QueryUnreceivedAcksResponse\"\x81\x01\x82\xd3\xe4\x93\x02{\x12y/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks\x12\xd9\x01\n\x13NextSequenceReceive\x12\x34.ibc.core.channel.v1.QueryNextSequenceReceiveRequest\x1a\x35.ibc.core.channel.v1.QueryNextSequenceReceiveResponse\"U\x82\xd3\xe4\x93\x02O\x12M/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/next_sequenceB:Z8github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/typesb\x06proto3' + serialized_pb=b'\n\x1fibc/core/channel/v1/query.proto\x12\x13ibc.core.channel.v1\x1a\x1fibc/core/client/v1/client.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a!ibc/core/channel/v1/channel.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.proto\":\n\x13QueryChannelRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\"\x8c\x01\n\x14QueryChannelResponse\x12-\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x1c.ibc.core.channel.v1.Channel\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"R\n\x14QueryChannelsRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xc0\x01\n\x15QueryChannelsResponse\x12\x38\n\x08\x63hannels\x18\x01 \x03(\x0b\x32&.ibc.core.channel.v1.IdentifiedChannel\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"p\n\x1eQueryConnectionChannelsRequest\x12\x12\n\nconnection\x18\x01 \x01(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xca\x01\n\x1fQueryConnectionChannelsResponse\x12\x38\n\x08\x63hannels\x18\x01 \x03(\x0b\x32&.ibc.core.channel.v1.IdentifiedChannel\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"E\n\x1eQueryChannelClientStateRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\"\xb4\x01\n\x1fQueryChannelClientStateResponse\x12J\n\x17identified_client_state\x18\x01 \x01(\x0b\x32).ibc.core.client.v1.IdentifiedClientState\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"z\n!QueryChannelConsensusStateRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x17\n\x0frevision_number\x18\x03 \x01(\x04\x12\x17\n\x0frevision_height\x18\x04 \x01(\x04\"\xad\x01\n\"QueryChannelConsensusStateResponse\x12-\n\x0f\x63onsensus_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12\r\n\x05proof\x18\x03 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"U\n\x1cQueryPacketCommitmentRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x10\n\x08sequence\x18\x03 \x01(\x04\"z\n\x1dQueryPacketCommitmentResponse\x12\x12\n\ncommitment\x18\x01 \x01(\x0c\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"\x80\x01\n\x1dQueryPacketCommitmentsRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12:\n\npagination\x18\x03 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xc6\x01\n\x1eQueryPacketCommitmentsResponse\x12\x35\n\x0b\x63ommitments\x18\x01 \x03(\x0b\x32 .ibc.core.channel.v1.PacketState\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"R\n\x19QueryPacketReceiptRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x10\n\x08sequence\x18\x03 \x01(\x04\"u\n\x1aQueryPacketReceiptResponse\x12\x10\n\x08received\x18\x02 \x01(\x08\x12\r\n\x05proof\x18\x03 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"Z\n!QueryPacketAcknowledgementRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x10\n\x08sequence\x18\x03 \x01(\x04\"\x84\x01\n\"QueryPacketAcknowledgementResponse\x12\x17\n\x0f\x61\x63knowledgement\x18\x01 \x01(\x0c\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"\x85\x01\n\"QueryPacketAcknowledgementsRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12:\n\npagination\x18\x03 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xd0\x01\n#QueryPacketAcknowledgementsResponse\x12:\n\x10\x61\x63knowledgements\x18\x01 \x03(\x0b\x32 .ibc.core.channel.v1.PacketState\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"i\n\x1dQueryUnreceivedPacketsRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12#\n\x1bpacket_commitment_sequences\x18\x03 \x03(\x04\"e\n\x1eQueryUnreceivedPacketsResponse\x12\x11\n\tsequences\x18\x01 \x03(\x04\x12\x30\n\x06height\x18\x02 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"_\n\x1aQueryUnreceivedAcksRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\x12\x1c\n\x14packet_ack_sequences\x18\x03 \x03(\x04\"b\n\x1bQueryUnreceivedAcksResponse\x12\x11\n\tsequences\x18\x01 \x03(\x04\x12\x30\n\x06height\x18\x02 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"F\n\x1fQueryNextSequenceReceiveRequest\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t\"\x88\x01\n QueryNextSequenceReceiveResponse\x12\x1d\n\x15next_sequence_receive\x18\x01 \x01(\x04\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\x32\x8b\x16\n\x05Query\x12\xa2\x01\n\x07\x43hannel\x12(.ibc.core.channel.v1.QueryChannelRequest\x1a).ibc.core.channel.v1.QueryChannelResponse\"B\x82\xd3\xe4\x93\x02<\x12:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}\x12\x88\x01\n\x08\x43hannels\x12).ibc.core.channel.v1.QueryChannelsRequest\x1a*.ibc.core.channel.v1.QueryChannelsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/ibc/core/channel/v1/channels\x12\xbf\x01\n\x12\x43onnectionChannels\x12\x33.ibc.core.channel.v1.QueryConnectionChannelsRequest\x1a\x34.ibc.core.channel.v1.QueryConnectionChannelsResponse\">\x82\xd3\xe4\x93\x02\x38\x12\x36/ibc/core/channel/v1/connections/{connection}/channels\x12\xd0\x01\n\x12\x43hannelClientState\x12\x33.ibc.core.channel.v1.QueryChannelClientStateRequest\x1a\x34.ibc.core.channel.v1.QueryChannelClientStateResponse\"O\x82\xd3\xe4\x93\x02I\x12G/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state\x12\x92\x02\n\x15\x43hannelConsensusState\x12\x36.ibc.core.channel.v1.QueryChannelConsensusStateRequest\x1a\x37.ibc.core.channel.v1.QueryChannelConsensusStateResponse\"\x87\x01\x82\xd3\xe4\x93\x02\x80\x01\x12~/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}\x12\xdb\x01\n\x10PacketCommitment\x12\x31.ibc.core.channel.v1.QueryPacketCommitmentRequest\x1a\x32.ibc.core.channel.v1.QueryPacketCommitmentResponse\"`\x82\xd3\xe4\x93\x02Z\x12X/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}\x12\xd3\x01\n\x11PacketCommitments\x12\x32.ibc.core.channel.v1.QueryPacketCommitmentsRequest\x1a\x33.ibc.core.channel.v1.QueryPacketCommitmentsResponse\"U\x82\xd3\xe4\x93\x02O\x12M/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments\x12\xcf\x01\n\rPacketReceipt\x12..ibc.core.channel.v1.QueryPacketReceiptRequest\x1a/.ibc.core.channel.v1.QueryPacketReceiptResponse\"]\x82\xd3\xe4\x93\x02W\x12U/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}\x12\xe3\x01\n\x15PacketAcknowledgement\x12\x36.ibc.core.channel.v1.QueryPacketAcknowledgementRequest\x1a\x37.ibc.core.channel.v1.QueryPacketAcknowledgementResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}\x12\xe7\x01\n\x16PacketAcknowledgements\x12\x37.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest\x1a\x38.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements\x12\x86\x02\n\x11UnreceivedPackets\x12\x32.ibc.core.channel.v1.QueryUnreceivedPacketsRequest\x1a\x33.ibc.core.channel.v1.QueryUnreceivedPacketsResponse\"\x87\x01\x82\xd3\xe4\x93\x02\x80\x01\x12~/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets\x12\xf1\x01\n\x0eUnreceivedAcks\x12/.ibc.core.channel.v1.QueryUnreceivedAcksRequest\x1a\x30.ibc.core.channel.v1.QueryUnreceivedAcksResponse\"|\x82\xd3\xe4\x93\x02v\x12t/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks\x12\xd4\x01\n\x13NextSequenceReceive\x12\x34.ibc.core.channel.v1.QueryNextSequenceReceiveRequest\x1a\x35.ibc.core.channel.v1.QueryNextSequenceReceiveResponse\"P\x82\xd3\xe4\x93\x02J\x12H/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequenceB8Z6github.com/cosmos/ibc-go/modules/core/04-channel/typesb\x06proto3' , dependencies=[ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,ibc_dot_core_dot_channel_dot_v1_dot_channel__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,]) @@ -1447,7 +1447,7 @@ serialized_options=None, create_key=_descriptor._internal_create_key, serialized_start=3541, - serialized_end=6436, + serialized_end=6368, methods=[ _descriptor.MethodDescriptor( name='Channel', @@ -1456,7 +1456,7 @@ containing_service=None, input_type=_QUERYCHANNELREQUEST, output_type=_QUERYCHANNELRESPONSE, - serialized_options=b'\202\323\344\223\002A\022?/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}', + serialized_options=b'\202\323\344\223\002<\022:/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1466,7 +1466,7 @@ containing_service=None, input_type=_QUERYCHANNELSREQUEST, output_type=_QUERYCHANNELSRESPONSE, - serialized_options=b'\202\323\344\223\002$\022\"/ibc/core/channel/v1beta1/channels', + serialized_options=b'\202\323\344\223\002\037\022\035/ibc/core/channel/v1/channels', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1476,7 +1476,7 @@ containing_service=None, input_type=_QUERYCONNECTIONCHANNELSREQUEST, output_type=_QUERYCONNECTIONCHANNELSRESPONSE, - serialized_options=b'\202\323\344\223\002=\022;/ibc/core/channel/v1beta1/connections/{connection}/channels', + serialized_options=b'\202\323\344\223\0028\0226/ibc/core/channel/v1/connections/{connection}/channels', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1486,7 +1486,7 @@ containing_service=None, input_type=_QUERYCHANNELCLIENTSTATEREQUEST, output_type=_QUERYCHANNELCLIENTSTATERESPONSE, - serialized_options=b'\202\323\344\223\002N\022L/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/client_state', + serialized_options=b'\202\323\344\223\002I\022G/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1496,7 +1496,7 @@ containing_service=None, input_type=_QUERYCHANNELCONSENSUSSTATEREQUEST, output_type=_QUERYCHANNELCONSENSUSSTATERESPONSE, - serialized_options=b'\202\323\344\223\002\206\001\022\203\001/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}', + serialized_options=b'\202\323\344\223\002\200\001\022~/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1506,7 +1506,7 @@ containing_service=None, input_type=_QUERYPACKETCOMMITMENTREQUEST, output_type=_QUERYPACKETCOMMITMENTRESPONSE, - serialized_options=b'\202\323\344\223\002_\022]/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}', + serialized_options=b'\202\323\344\223\002Z\022X/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1516,7 +1516,7 @@ containing_service=None, input_type=_QUERYPACKETCOMMITMENTSREQUEST, output_type=_QUERYPACKETCOMMITMENTSRESPONSE, - serialized_options=b'\202\323\344\223\002T\022R/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments', + serialized_options=b'\202\323\344\223\002O\022M/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1526,7 +1526,7 @@ containing_service=None, input_type=_QUERYPACKETRECEIPTREQUEST, output_type=_QUERYPACKETRECEIPTRESPONSE, - serialized_options=b'\202\323\344\223\002\\\022Z/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}', + serialized_options=b'\202\323\344\223\002W\022U/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1536,7 +1536,7 @@ containing_service=None, input_type=_QUERYPACKETACKNOWLEDGEMENTREQUEST, output_type=_QUERYPACKETACKNOWLEDGEMENTRESPONSE, - serialized_options=b'\202\323\344\223\002X\022V/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}', + serialized_options=b'\202\323\344\223\002S\022Q/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1546,7 +1546,7 @@ containing_service=None, input_type=_QUERYPACKETACKNOWLEDGEMENTSREQUEST, output_type=_QUERYPACKETACKNOWLEDGEMENTSRESPONSE, - serialized_options=b'\202\323\344\223\002Y\022W/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements', + serialized_options=b'\202\323\344\223\002T\022R/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1556,7 +1556,7 @@ containing_service=None, input_type=_QUERYUNRECEIVEDPACKETSREQUEST, output_type=_QUERYUNRECEIVEDPACKETSRESPONSE, - serialized_options=b'\202\323\344\223\002\206\001\022\203\001/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets', + serialized_options=b'\202\323\344\223\002\200\001\022~/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1566,7 +1566,7 @@ containing_service=None, input_type=_QUERYUNRECEIVEDACKSREQUEST, output_type=_QUERYUNRECEIVEDACKSRESPONSE, - serialized_options=b'\202\323\344\223\002{\022y/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks', + serialized_options=b'\202\323\344\223\002v\022t/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -1576,7 +1576,7 @@ containing_service=None, input_type=_QUERYNEXTSEQUENCERECEIVEREQUEST, output_type=_QUERYNEXTSEQUENCERECEIVERESPONSE, - serialized_options=b'\202\323\344\223\002O\022M/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/next_sequence', + serialized_options=b'\202\323\344\223\002J\022H/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence', create_key=_descriptor._internal_create_key, ), ]) diff --git a/pyband/proto/ibc/core/channel/v1/query_pb2.pyi b/pyband/proto/ibc/core/channel/v1/query_pb2.pyi deleted file mode 100644 index 961f69a..0000000 --- a/pyband/proto/ibc/core/channel/v1/query_pb2.pyi +++ /dev/null @@ -1,547 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.core.channel.v1.channel_pb2 -import ibc.core.client.v1.client_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryChannelRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... -global___QueryChannelRequest = QueryChannelRequest - -class QueryChannelResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHANNEL_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - proof: builtins.bytes = ... - - @property - def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryChannelResponse = QueryChannelResponse - -class QueryChannelsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... -global___QueryChannelsRequest = QueryChannelsRequest - -class QueryChannelsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHANNELS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - - @property - def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - @property - def height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"height",b"height",u"pagination",b"pagination"]) -> None: ... -global___QueryChannelsResponse = QueryChannelsResponse - -class QueryConnectionChannelsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTION_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - connection: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - connection : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"pagination",b"pagination"]) -> None: ... -global___QueryConnectionChannelsRequest = QueryConnectionChannelsRequest - -class QueryConnectionChannelsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHANNELS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - - @property - def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - @property - def height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"height",b"height",u"pagination",b"pagination"]) -> None: ... -global___QueryConnectionChannelsResponse = QueryConnectionChannelsResponse - -class QueryChannelClientStateRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... -global___QueryChannelClientStateRequest = QueryChannelClientStateRequest - -class QueryChannelClientStateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - IDENTIFIED_CLIENT_STATE_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - proof: builtins.bytes = ... - - @property - def identified_client_state(self) -> ibc.core.client.v1.client_pb2.IdentifiedClientState: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - identified_client_state : typing.Optional[ibc.core.client.v1.client_pb2.IdentifiedClientState] = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryChannelClientStateResponse = QueryChannelClientStateResponse - -class QueryChannelConsensusStateRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - REVISION_NUMBER_FIELD_NUMBER: builtins.int - REVISION_HEIGHT_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - revision_number: builtins.int = ... - revision_height: builtins.int = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - revision_number : builtins.int = ..., - revision_height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... -global___QueryChannelConsensusStateRequest = QueryChannelConsensusStateRequest - -class QueryChannelConsensusStateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONSENSUS_STATE_FIELD_NUMBER: builtins.int - CLIENT_ID_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - proof: builtins.bytes = ... - - @property - def consensus_state(self) -> google.protobuf.any_pb2.Any: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - client_id : typing.Text = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryChannelConsensusStateResponse = QueryChannelConsensusStateResponse - -class QueryPacketCommitmentRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - sequence: builtins.int = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - sequence : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... -global___QueryPacketCommitmentRequest = QueryPacketCommitmentRequest - -class QueryPacketCommitmentResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMITMENT_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - commitment: builtins.bytes = ... - proof: builtins.bytes = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - commitment : builtins.bytes = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commitment",b"commitment",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryPacketCommitmentResponse = QueryPacketCommitmentResponse - -class QueryPacketCommitmentsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"pagination",b"pagination",u"port_id",b"port_id"]) -> None: ... -global___QueryPacketCommitmentsRequest = QueryPacketCommitmentsRequest - -class QueryPacketCommitmentsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - COMMITMENTS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - - @property - def commitments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - @property - def height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - commitments : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commitments",b"commitments",u"height",b"height",u"pagination",b"pagination"]) -> None: ... -global___QueryPacketCommitmentsResponse = QueryPacketCommitmentsResponse - -class QueryPacketReceiptRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - sequence: builtins.int = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - sequence : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... -global___QueryPacketReceiptRequest = QueryPacketReceiptRequest - -class QueryPacketReceiptResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - RECEIVED_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - received: builtins.bool = ... - proof: builtins.bytes = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - received : builtins.bool = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"proof",b"proof",u"proof_height",b"proof_height",u"received",b"received"]) -> None: ... -global___QueryPacketReceiptResponse = QueryPacketReceiptResponse - -class QueryPacketAcknowledgementRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - sequence: builtins.int = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - sequence : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... -global___QueryPacketAcknowledgementRequest = QueryPacketAcknowledgementRequest - -class QueryPacketAcknowledgementResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - acknowledgement: builtins.bytes = ... - proof: builtins.bytes = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - acknowledgement : builtins.bytes = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryPacketAcknowledgementResponse = QueryPacketAcknowledgementResponse - -class QueryPacketAcknowledgementsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"pagination",b"pagination",u"port_id",b"port_id"]) -> None: ... -global___QueryPacketAcknowledgementsRequest = QueryPacketAcknowledgementsRequest - -class QueryPacketAcknowledgementsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ACKNOWLEDGEMENTS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - - @property - def acknowledgements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - @property - def height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - acknowledgements : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgements",b"acknowledgements",u"height",b"height",u"pagination",b"pagination"]) -> None: ... -global___QueryPacketAcknowledgementsResponse = QueryPacketAcknowledgementsResponse - -class QueryUnreceivedPacketsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - PACKET_COMMITMENT_SEQUENCES_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - @property - def packet_commitment_sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - packet_commitment_sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"packet_commitment_sequences",b"packet_commitment_sequences",u"port_id",b"port_id"]) -> None: ... -global___QueryUnreceivedPacketsRequest = QueryUnreceivedPacketsRequest - -class QueryUnreceivedPacketsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SEQUENCES_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - - @property - def sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - @property - def height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., - height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"sequences",b"sequences"]) -> None: ... -global___QueryUnreceivedPacketsResponse = QueryUnreceivedPacketsResponse - -class QueryUnreceivedAcksRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - PACKET_ACK_SEQUENCES_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - @property - def packet_ack_sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - packet_ack_sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"packet_ack_sequences",b"packet_ack_sequences",u"port_id",b"port_id"]) -> None: ... -global___QueryUnreceivedAcksRequest = QueryUnreceivedAcksRequest - -class QueryUnreceivedAcksResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SEQUENCES_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - - @property - def sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - @property - def height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., - height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"sequences",b"sequences"]) -> None: ... -global___QueryUnreceivedAcksResponse = QueryUnreceivedAcksResponse - -class QueryNextSequenceReceiveRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... -global___QueryNextSequenceReceiveRequest = QueryNextSequenceReceiveRequest - -class QueryNextSequenceReceiveResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NEXT_SEQUENCE_RECEIVE_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - next_sequence_receive: builtins.int = ... - proof: builtins.bytes = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - next_sequence_receive : builtins.int = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_receive",b"next_sequence_receive",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryNextSequenceReceiveResponse = QueryNextSequenceReceiveResponse diff --git a/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.py b/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.py index c4d12fc..8dcef23 100644 --- a/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.py +++ b/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.py @@ -140,7 +140,8 @@ def PacketCommitments(self, request, context): raise NotImplementedError('Method not implemented!') def PacketReceipt(self, request, context): - """PacketReceipt queries if a given packet sequence has been received on the queried chain + """PacketReceipt queries if a given packet sequence has been received on the + queried chain """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -170,8 +171,8 @@ def UnreceivedPackets(self, request, context): raise NotImplementedError('Method not implemented!') def UnreceivedAcks(self, request, context): - """UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a - channel and sequences. + """UnreceivedAcks returns all the unreceived IBC acknowledgements associated + with a channel and sequences. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') diff --git a/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi deleted file mode 100644 index bb1e75b..0000000 --- a/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi +++ /dev/null @@ -1,144 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Channel:grpc.UnaryUnaryMultiCallable[ - global___QueryChannelRequest, - global___QueryChannelResponse] = ... - - Channels:grpc.UnaryUnaryMultiCallable[ - global___QueryChannelsRequest, - global___QueryChannelsResponse] = ... - - ConnectionChannels:grpc.UnaryUnaryMultiCallable[ - global___QueryConnectionChannelsRequest, - global___QueryConnectionChannelsResponse] = ... - - ChannelClientState:grpc.UnaryUnaryMultiCallable[ - global___QueryChannelClientStateRequest, - global___QueryChannelClientStateResponse] = ... - - ChannelConsensusState:grpc.UnaryUnaryMultiCallable[ - global___QueryChannelConsensusStateRequest, - global___QueryChannelConsensusStateResponse] = ... - - PacketCommitment:grpc.UnaryUnaryMultiCallable[ - global___QueryPacketCommitmentRequest, - global___QueryPacketCommitmentResponse] = ... - - PacketCommitments:grpc.UnaryUnaryMultiCallable[ - global___QueryPacketCommitmentsRequest, - global___QueryPacketCommitmentsResponse] = ... - - PacketReceipt:grpc.UnaryUnaryMultiCallable[ - global___QueryPacketReceiptRequest, - global___QueryPacketReceiptResponse] = ... - - PacketAcknowledgement:grpc.UnaryUnaryMultiCallable[ - global___QueryPacketAcknowledgementRequest, - global___QueryPacketAcknowledgementResponse] = ... - - PacketAcknowledgements:grpc.UnaryUnaryMultiCallable[ - global___QueryPacketAcknowledgementsRequest, - global___QueryPacketAcknowledgementsResponse] = ... - - UnreceivedPackets:grpc.UnaryUnaryMultiCallable[ - global___QueryUnreceivedPacketsRequest, - global___QueryUnreceivedPacketsResponse] = ... - - UnreceivedAcks:grpc.UnaryUnaryMultiCallable[ - global___QueryUnreceivedAcksRequest, - global___QueryUnreceivedAcksResponse] = ... - - NextSequenceReceive:grpc.UnaryUnaryMultiCallable[ - global___QueryNextSequenceReceiveRequest, - global___QueryNextSequenceReceiveResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Channel(self, - request: global___QueryChannelRequest, - context: grpc.ServicerContext, - ) -> global___QueryChannelResponse: ... - - @abc.abstractmethod - def Channels(self, - request: global___QueryChannelsRequest, - context: grpc.ServicerContext, - ) -> global___QueryChannelsResponse: ... - - @abc.abstractmethod - def ConnectionChannels(self, - request: global___QueryConnectionChannelsRequest, - context: grpc.ServicerContext, - ) -> global___QueryConnectionChannelsResponse: ... - - @abc.abstractmethod - def ChannelClientState(self, - request: global___QueryChannelClientStateRequest, - context: grpc.ServicerContext, - ) -> global___QueryChannelClientStateResponse: ... - - @abc.abstractmethod - def ChannelConsensusState(self, - request: global___QueryChannelConsensusStateRequest, - context: grpc.ServicerContext, - ) -> global___QueryChannelConsensusStateResponse: ... - - @abc.abstractmethod - def PacketCommitment(self, - request: global___QueryPacketCommitmentRequest, - context: grpc.ServicerContext, - ) -> global___QueryPacketCommitmentResponse: ... - - @abc.abstractmethod - def PacketCommitments(self, - request: global___QueryPacketCommitmentsRequest, - context: grpc.ServicerContext, - ) -> global___QueryPacketCommitmentsResponse: ... - - @abc.abstractmethod - def PacketReceipt(self, - request: global___QueryPacketReceiptRequest, - context: grpc.ServicerContext, - ) -> global___QueryPacketReceiptResponse: ... - - @abc.abstractmethod - def PacketAcknowledgement(self, - request: global___QueryPacketAcknowledgementRequest, - context: grpc.ServicerContext, - ) -> global___QueryPacketAcknowledgementResponse: ... - - @abc.abstractmethod - def PacketAcknowledgements(self, - request: global___QueryPacketAcknowledgementsRequest, - context: grpc.ServicerContext, - ) -> global___QueryPacketAcknowledgementsResponse: ... - - @abc.abstractmethod - def UnreceivedPackets(self, - request: global___QueryUnreceivedPacketsRequest, - context: grpc.ServicerContext, - ) -> global___QueryUnreceivedPacketsResponse: ... - - @abc.abstractmethod - def UnreceivedAcks(self, - request: global___QueryUnreceivedAcksRequest, - context: grpc.ServicerContext, - ) -> global___QueryUnreceivedAcksResponse: ... - - @abc.abstractmethod - def NextSequenceReceive(self, - request: global___QueryNextSequenceReceiveRequest, - context: grpc.ServicerContext, - ) -> global___QueryNextSequenceReceiveResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/channel/v1/tx_pb2.py b/pyband/proto/ibc/core/channel/v1/tx_pb2.py index 8e43257..c1f6330 100644 --- a/pyband/proto/ibc/core/channel/v1/tx_pb2.py +++ b/pyband/proto/ibc/core/channel/v1/tx_pb2.py @@ -20,9 +20,9 @@ name='ibc/core/channel/v1/tx.proto', package='ibc.core.channel.v1', syntax='proto3', - serialized_options=b'Z8github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/types', + serialized_options=b'Z6github.com/cosmos/ibc-go/modules/core/04-channel/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1cibc/core/channel/v1/tx.proto\x12\x13ibc.core.channel.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fibc/core/client/v1/client.proto\x1a!ibc/core/channel/v1/channel.proto\"\x88\x01\n\x12MsgChannelOpenInit\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12\x33\n\x07\x63hannel\x18\x02 \x01(\x0b\x32\x1c.ibc.core.channel.v1.ChannelB\x04\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1c\n\x1aMsgChannelOpenInitResponse\"\xfd\x02\n\x11MsgChannelOpenTry\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12;\n\x13previous_channel_id\x18\x02 \x01(\tB\x1e\xf2\xde\x1f\x1ayaml:\"previous_channel_id\"\x12\x33\n\x07\x63hannel\x18\x03 \x01(\x0b\x32\x1c.ibc.core.channel.v1.ChannelB\x04\xc8\xde\x1f\x00\x12=\n\x14\x63ounterparty_version\x18\x04 \x01(\tB\x1f\xf2\xde\x1f\x1byaml:\"counterparty_version\"\x12)\n\nproof_init\x18\x05 \x01(\x0c\x42\x15\xf2\xde\x1f\x11yaml:\"proof_init\"\x12M\n\x0cproof_height\x18\x06 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x07 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1b\n\x19MsgChannelOpenTryResponse\"\xf9\x02\n\x11MsgChannelOpenAck\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\x43\n\x17\x63ounterparty_channel_id\x18\x03 \x01(\tB\"\xf2\xde\x1f\x1eyaml:\"counterparty_channel_id\"\x12=\n\x14\x63ounterparty_version\x18\x04 \x01(\tB\x1f\xf2\xde\x1f\x1byaml:\"counterparty_version\"\x12\'\n\tproof_try\x18\x05 \x01(\x0c\x42\x14\xf2\xde\x1f\x10yaml:\"proof_try\"\x12M\n\x0cproof_height\x18\x06 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x07 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1b\n\x19MsgChannelOpenAckResponse\"\xf9\x01\n\x15MsgChannelOpenConfirm\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\'\n\tproof_ack\x18\x03 \x01(\x0c\x42\x14\xf2\xde\x1f\x10yaml:\"proof_ack\"\x12M\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1f\n\x1dMsgChannelOpenConfirmResponse\"\x7f\n\x13MsgChannelCloseInit\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1d\n\x1bMsgChannelCloseInitResponse\"\xfc\x01\n\x16MsgChannelCloseConfirm\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12)\n\nproof_init\x18\x03 \x01(\x0c\x42\x15\xf2\xde\x1f\x11yaml:\"proof_init\"\x12M\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\" \n\x1eMsgChannelCloseConfirmResponse\"\xe2\x01\n\rMsgRecvPacket\x12\x31\n\x06packet\x18\x01 \x01(\x0b\x32\x1b.ibc.core.channel.v1.PacketB\x04\xc8\xde\x1f\x00\x12\x35\n\x10proof_commitment\x18\x02 \x01(\x0c\x42\x1b\xf2\xde\x1f\x17yaml:\"proof_commitment\"\x12M\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x04 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x17\n\x15MsgRecvPacketResponse\"\x9a\x02\n\nMsgTimeout\x12\x31\n\x06packet\x18\x01 \x01(\x0b\x32\x1b.ibc.core.channel.v1.PacketB\x04\xc8\xde\x1f\x00\x12\x35\n\x10proof_unreceived\x18\x02 \x01(\x0c\x42\x1b\xf2\xde\x1f\x17yaml:\"proof_unreceived\"\x12M\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x39\n\x12next_sequence_recv\x18\x04 \x01(\x04\x42\x1d\xf2\xde\x1f\x19yaml:\"next_sequence_recv\"\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x14\n\x12MsgTimeoutResponse\"\xce\x02\n\x11MsgTimeoutOnClose\x12\x31\n\x06packet\x18\x01 \x01(\x0b\x32\x1b.ibc.core.channel.v1.PacketB\x04\xc8\xde\x1f\x00\x12\x35\n\x10proof_unreceived\x18\x02 \x01(\x0c\x42\x1b\xf2\xde\x1f\x17yaml:\"proof_unreceived\"\x12+\n\x0bproof_close\x18\x03 \x01(\x0c\x42\x16\xf2\xde\x1f\x12yaml:\"proof_close\"\x12M\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x39\n\x12next_sequence_recv\x18\x05 \x01(\x04\x42\x1d\xf2\xde\x1f\x19yaml:\"next_sequence_recv\"\x12\x0e\n\x06signer\x18\x06 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1b\n\x19MsgTimeoutOnCloseResponse\"\xf6\x01\n\x12MsgAcknowledgement\x12\x31\n\x06packet\x18\x01 \x01(\x0b\x32\x1b.ibc.core.channel.v1.PacketB\x04\xc8\xde\x1f\x00\x12\x17\n\x0f\x61\x63knowledgement\x18\x02 \x01(\x0c\x12+\n\x0bproof_acked\x18\x03 \x01(\x0c\x42\x16\xf2\xde\x1f\x12yaml:\"proof_acked\"\x12M\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1c\n\x1aMsgAcknowledgementResponse2\xaf\x08\n\x03Msg\x12k\n\x0f\x43hannelOpenInit\x12\'.ibc.core.channel.v1.MsgChannelOpenInit\x1a/.ibc.core.channel.v1.MsgChannelOpenInitResponse\x12h\n\x0e\x43hannelOpenTry\x12&.ibc.core.channel.v1.MsgChannelOpenTry\x1a..ibc.core.channel.v1.MsgChannelOpenTryResponse\x12h\n\x0e\x43hannelOpenAck\x12&.ibc.core.channel.v1.MsgChannelOpenAck\x1a..ibc.core.channel.v1.MsgChannelOpenAckResponse\x12t\n\x12\x43hannelOpenConfirm\x12*.ibc.core.channel.v1.MsgChannelOpenConfirm\x1a\x32.ibc.core.channel.v1.MsgChannelOpenConfirmResponse\x12n\n\x10\x43hannelCloseInit\x12(.ibc.core.channel.v1.MsgChannelCloseInit\x1a\x30.ibc.core.channel.v1.MsgChannelCloseInitResponse\x12w\n\x13\x43hannelCloseConfirm\x12+.ibc.core.channel.v1.MsgChannelCloseConfirm\x1a\x33.ibc.core.channel.v1.MsgChannelCloseConfirmResponse\x12\\\n\nRecvPacket\x12\".ibc.core.channel.v1.MsgRecvPacket\x1a*.ibc.core.channel.v1.MsgRecvPacketResponse\x12S\n\x07Timeout\x12\x1f.ibc.core.channel.v1.MsgTimeout\x1a\'.ibc.core.channel.v1.MsgTimeoutResponse\x12h\n\x0eTimeoutOnClose\x12&.ibc.core.channel.v1.MsgTimeoutOnClose\x1a..ibc.core.channel.v1.MsgTimeoutOnCloseResponse\x12k\n\x0f\x41\x63knowledgement\x12\'.ibc.core.channel.v1.MsgAcknowledgement\x1a/.ibc.core.channel.v1.MsgAcknowledgementResponseB:Z8github.com/cosmos/cosmos-sdk/x/ibc/core/04-channel/typesb\x06proto3' + serialized_pb=b'\n\x1cibc/core/channel/v1/tx.proto\x12\x13ibc.core.channel.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fibc/core/client/v1/client.proto\x1a!ibc/core/channel/v1/channel.proto\"\x88\x01\n\x12MsgChannelOpenInit\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12\x33\n\x07\x63hannel\x18\x02 \x01(\x0b\x32\x1c.ibc.core.channel.v1.ChannelB\x04\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1c\n\x1aMsgChannelOpenInitResponse\"\xfd\x02\n\x11MsgChannelOpenTry\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12;\n\x13previous_channel_id\x18\x02 \x01(\tB\x1e\xf2\xde\x1f\x1ayaml:\"previous_channel_id\"\x12\x33\n\x07\x63hannel\x18\x03 \x01(\x0b\x32\x1c.ibc.core.channel.v1.ChannelB\x04\xc8\xde\x1f\x00\x12=\n\x14\x63ounterparty_version\x18\x04 \x01(\tB\x1f\xf2\xde\x1f\x1byaml:\"counterparty_version\"\x12)\n\nproof_init\x18\x05 \x01(\x0c\x42\x15\xf2\xde\x1f\x11yaml:\"proof_init\"\x12M\n\x0cproof_height\x18\x06 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x07 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1b\n\x19MsgChannelOpenTryResponse\"\xf9\x02\n\x11MsgChannelOpenAck\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\x43\n\x17\x63ounterparty_channel_id\x18\x03 \x01(\tB\"\xf2\xde\x1f\x1eyaml:\"counterparty_channel_id\"\x12=\n\x14\x63ounterparty_version\x18\x04 \x01(\tB\x1f\xf2\xde\x1f\x1byaml:\"counterparty_version\"\x12\'\n\tproof_try\x18\x05 \x01(\x0c\x42\x14\xf2\xde\x1f\x10yaml:\"proof_try\"\x12M\n\x0cproof_height\x18\x06 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x07 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1b\n\x19MsgChannelOpenAckResponse\"\xf9\x01\n\x15MsgChannelOpenConfirm\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\'\n\tproof_ack\x18\x03 \x01(\x0c\x42\x14\xf2\xde\x1f\x10yaml:\"proof_ack\"\x12M\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1f\n\x1dMsgChannelOpenConfirmResponse\"\x7f\n\x13MsgChannelCloseInit\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1d\n\x1bMsgChannelCloseInitResponse\"\xfc\x01\n\x16MsgChannelCloseConfirm\x12#\n\x07port_id\x18\x01 \x01(\tB\x12\xf2\xde\x1f\x0eyaml:\"port_id\"\x12)\n\nchannel_id\x18\x02 \x01(\tB\x15\xf2\xde\x1f\x11yaml:\"channel_id\"\x12)\n\nproof_init\x18\x03 \x01(\x0c\x42\x15\xf2\xde\x1f\x11yaml:\"proof_init\"\x12M\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\" \n\x1eMsgChannelCloseConfirmResponse\"\xe2\x01\n\rMsgRecvPacket\x12\x31\n\x06packet\x18\x01 \x01(\x0b\x32\x1b.ibc.core.channel.v1.PacketB\x04\xc8\xde\x1f\x00\x12\x35\n\x10proof_commitment\x18\x02 \x01(\x0c\x42\x1b\xf2\xde\x1f\x17yaml:\"proof_commitment\"\x12M\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x04 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x17\n\x15MsgRecvPacketResponse\"\x9a\x02\n\nMsgTimeout\x12\x31\n\x06packet\x18\x01 \x01(\x0b\x32\x1b.ibc.core.channel.v1.PacketB\x04\xc8\xde\x1f\x00\x12\x35\n\x10proof_unreceived\x18\x02 \x01(\x0c\x42\x1b\xf2\xde\x1f\x17yaml:\"proof_unreceived\"\x12M\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x39\n\x12next_sequence_recv\x18\x04 \x01(\x04\x42\x1d\xf2\xde\x1f\x19yaml:\"next_sequence_recv\"\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x14\n\x12MsgTimeoutResponse\"\xce\x02\n\x11MsgTimeoutOnClose\x12\x31\n\x06packet\x18\x01 \x01(\x0b\x32\x1b.ibc.core.channel.v1.PacketB\x04\xc8\xde\x1f\x00\x12\x35\n\x10proof_unreceived\x18\x02 \x01(\x0c\x42\x1b\xf2\xde\x1f\x17yaml:\"proof_unreceived\"\x12+\n\x0bproof_close\x18\x03 \x01(\x0c\x42\x16\xf2\xde\x1f\x12yaml:\"proof_close\"\x12M\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x39\n\x12next_sequence_recv\x18\x05 \x01(\x04\x42\x1d\xf2\xde\x1f\x19yaml:\"next_sequence_recv\"\x12\x0e\n\x06signer\x18\x06 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1b\n\x19MsgTimeoutOnCloseResponse\"\xf6\x01\n\x12MsgAcknowledgement\x12\x31\n\x06packet\x18\x01 \x01(\x0b\x32\x1b.ibc.core.channel.v1.PacketB\x04\xc8\xde\x1f\x00\x12\x17\n\x0f\x61\x63knowledgement\x18\x02 \x01(\x0c\x12+\n\x0bproof_acked\x18\x03 \x01(\x0c\x42\x16\xf2\xde\x1f\x12yaml:\"proof_acked\"\x12M\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1c\n\x1aMsgAcknowledgementResponse2\xaf\x08\n\x03Msg\x12k\n\x0f\x43hannelOpenInit\x12\'.ibc.core.channel.v1.MsgChannelOpenInit\x1a/.ibc.core.channel.v1.MsgChannelOpenInitResponse\x12h\n\x0e\x43hannelOpenTry\x12&.ibc.core.channel.v1.MsgChannelOpenTry\x1a..ibc.core.channel.v1.MsgChannelOpenTryResponse\x12h\n\x0e\x43hannelOpenAck\x12&.ibc.core.channel.v1.MsgChannelOpenAck\x1a..ibc.core.channel.v1.MsgChannelOpenAckResponse\x12t\n\x12\x43hannelOpenConfirm\x12*.ibc.core.channel.v1.MsgChannelOpenConfirm\x1a\x32.ibc.core.channel.v1.MsgChannelOpenConfirmResponse\x12n\n\x10\x43hannelCloseInit\x12(.ibc.core.channel.v1.MsgChannelCloseInit\x1a\x30.ibc.core.channel.v1.MsgChannelCloseInitResponse\x12w\n\x13\x43hannelCloseConfirm\x12+.ibc.core.channel.v1.MsgChannelCloseConfirm\x1a\x33.ibc.core.channel.v1.MsgChannelCloseConfirmResponse\x12\\\n\nRecvPacket\x12\".ibc.core.channel.v1.MsgRecvPacket\x1a*.ibc.core.channel.v1.MsgRecvPacketResponse\x12S\n\x07Timeout\x12\x1f.ibc.core.channel.v1.MsgTimeout\x1a\'.ibc.core.channel.v1.MsgTimeoutResponse\x12h\n\x0eTimeoutOnClose\x12&.ibc.core.channel.v1.MsgTimeoutOnClose\x1a..ibc.core.channel.v1.MsgTimeoutOnCloseResponse\x12k\n\x0f\x41\x63knowledgement\x12\'.ibc.core.channel.v1.MsgAcknowledgement\x1a/.ibc.core.channel.v1.MsgAcknowledgementResponseB8Z6github.com/cosmos/ibc-go/modules/core/04-channel/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,ibc_dot_core_dot_channel_dot_v1_dot_channel__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi b/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi deleted file mode 100644 index 8f605c9..0000000 --- a/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi +++ /dev/null @@ -1,360 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import ibc.core.channel.v1.channel_pb2 -import ibc.core.client.v1.client_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgChannelOpenInit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - signer: typing.Text = ... - - @property - def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"port_id",b"port_id",u"signer",b"signer"]) -> None: ... -global___MsgChannelOpenInit = MsgChannelOpenInit - -class MsgChannelOpenInitResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgChannelOpenInitResponse = MsgChannelOpenInitResponse - -class MsgChannelOpenTry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - PREVIOUS_CHANNEL_ID_FIELD_NUMBER: builtins.int - CHANNEL_FIELD_NUMBER: builtins.int - COUNTERPARTY_VERSION_FIELD_NUMBER: builtins.int - PROOF_INIT_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - previous_channel_id: typing.Text = ... - counterparty_version: typing.Text = ... - proof_init: builtins.bytes = ... - signer: typing.Text = ... - - @property - def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - previous_channel_id : typing.Text = ..., - channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., - counterparty_version : typing.Text = ..., - proof_init : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"counterparty_version",b"counterparty_version",u"port_id",b"port_id",u"previous_channel_id",b"previous_channel_id",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... -global___MsgChannelOpenTry = MsgChannelOpenTry - -class MsgChannelOpenTryResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgChannelOpenTryResponse = MsgChannelOpenTryResponse - -class MsgChannelOpenAck(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - COUNTERPARTY_CHANNEL_ID_FIELD_NUMBER: builtins.int - COUNTERPARTY_VERSION_FIELD_NUMBER: builtins.int - PROOF_TRY_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - counterparty_channel_id: typing.Text = ... - counterparty_version: typing.Text = ... - proof_try: builtins.bytes = ... - signer: typing.Text = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - counterparty_channel_id : typing.Text = ..., - counterparty_version : typing.Text = ..., - proof_try : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"counterparty_channel_id",b"counterparty_channel_id",u"counterparty_version",b"counterparty_version",u"port_id",b"port_id",u"proof_height",b"proof_height",u"proof_try",b"proof_try",u"signer",b"signer"]) -> None: ... -global___MsgChannelOpenAck = MsgChannelOpenAck - -class MsgChannelOpenAckResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgChannelOpenAckResponse = MsgChannelOpenAckResponse - -class MsgChannelOpenConfirm(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - PROOF_ACK_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - proof_ack: builtins.bytes = ... - signer: typing.Text = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - proof_ack : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"proof_ack",b"proof_ack",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... -global___MsgChannelOpenConfirm = MsgChannelOpenConfirm - -class MsgChannelOpenConfirmResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgChannelOpenConfirmResponse = MsgChannelOpenConfirmResponse - -class MsgChannelCloseInit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - signer: typing.Text = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - signer : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"signer",b"signer"]) -> None: ... -global___MsgChannelCloseInit = MsgChannelCloseInit - -class MsgChannelCloseInitResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgChannelCloseInitResponse = MsgChannelCloseInitResponse - -class MsgChannelCloseConfirm(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - PROOF_INIT_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - proof_init: builtins.bytes = ... - signer: typing.Text = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - proof_init : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... -global___MsgChannelCloseConfirm = MsgChannelCloseConfirm - -class MsgChannelCloseConfirmResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgChannelCloseConfirmResponse = MsgChannelCloseConfirmResponse - -class MsgRecvPacket(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PACKET_FIELD_NUMBER: builtins.int - PROOF_COMMITMENT_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - proof_commitment: builtins.bytes = ... - signer: typing.Text = ... - - @property - def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., - proof_commitment : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_commitment",b"proof_commitment",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... -global___MsgRecvPacket = MsgRecvPacket - -class MsgRecvPacketResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgRecvPacketResponse = MsgRecvPacketResponse - -class MsgTimeout(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PACKET_FIELD_NUMBER: builtins.int - PROOF_UNRECEIVED_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - NEXT_SEQUENCE_RECV_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - proof_unreceived: builtins.bytes = ... - next_sequence_recv: builtins.int = ... - signer: typing.Text = ... - - @property - def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., - proof_unreceived : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - next_sequence_recv : builtins.int = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_recv",b"next_sequence_recv",u"packet",b"packet",u"proof_height",b"proof_height",u"proof_unreceived",b"proof_unreceived",u"signer",b"signer"]) -> None: ... -global___MsgTimeout = MsgTimeout - -class MsgTimeoutResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgTimeoutResponse = MsgTimeoutResponse - -class MsgTimeoutOnClose(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PACKET_FIELD_NUMBER: builtins.int - PROOF_UNRECEIVED_FIELD_NUMBER: builtins.int - PROOF_CLOSE_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - NEXT_SEQUENCE_RECV_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - proof_unreceived: builtins.bytes = ... - proof_close: builtins.bytes = ... - next_sequence_recv: builtins.int = ... - signer: typing.Text = ... - - @property - def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., - proof_unreceived : builtins.bytes = ..., - proof_close : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - next_sequence_recv : builtins.int = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_recv",b"next_sequence_recv",u"packet",b"packet",u"proof_close",b"proof_close",u"proof_height",b"proof_height",u"proof_unreceived",b"proof_unreceived",u"signer",b"signer"]) -> None: ... -global___MsgTimeoutOnClose = MsgTimeoutOnClose - -class MsgTimeoutOnCloseResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgTimeoutOnCloseResponse = MsgTimeoutOnCloseResponse - -class MsgAcknowledgement(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PACKET_FIELD_NUMBER: builtins.int - ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int - PROOF_ACKED_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - acknowledgement: builtins.bytes = ... - proof_acked: builtins.bytes = ... - signer: typing.Text = ... - - @property - def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., - acknowledgement : builtins.bytes = ..., - proof_acked : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"packet",b"packet",u"proof_acked",b"proof_acked",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... -global___MsgAcknowledgement = MsgAcknowledgement - -class MsgAcknowledgementResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgAcknowledgementResponse = MsgAcknowledgementResponse diff --git a/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.py b/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.py index be5aa89..3d96a3e 100644 --- a/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.py +++ b/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.py @@ -107,7 +107,8 @@ def ChannelCloseInit(self, request, context): raise NotImplementedError('Method not implemented!') def ChannelCloseConfirm(self, request, context): - """ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm. + """ChannelCloseConfirm defines a rpc handler method for + MsgChannelCloseConfirm. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') diff --git a/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi deleted file mode 100644 index a87c6ff..0000000 --- a/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,114 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - ChannelOpenInit:grpc.UnaryUnaryMultiCallable[ - global___MsgChannelOpenInit, - global___MsgChannelOpenInitResponse] = ... - - ChannelOpenTry:grpc.UnaryUnaryMultiCallable[ - global___MsgChannelOpenTry, - global___MsgChannelOpenTryResponse] = ... - - ChannelOpenAck:grpc.UnaryUnaryMultiCallable[ - global___MsgChannelOpenAck, - global___MsgChannelOpenAckResponse] = ... - - ChannelOpenConfirm:grpc.UnaryUnaryMultiCallable[ - global___MsgChannelOpenConfirm, - global___MsgChannelOpenConfirmResponse] = ... - - ChannelCloseInit:grpc.UnaryUnaryMultiCallable[ - global___MsgChannelCloseInit, - global___MsgChannelCloseInitResponse] = ... - - ChannelCloseConfirm:grpc.UnaryUnaryMultiCallable[ - global___MsgChannelCloseConfirm, - global___MsgChannelCloseConfirmResponse] = ... - - RecvPacket:grpc.UnaryUnaryMultiCallable[ - global___MsgRecvPacket, - global___MsgRecvPacketResponse] = ... - - Timeout:grpc.UnaryUnaryMultiCallable[ - global___MsgTimeout, - global___MsgTimeoutResponse] = ... - - TimeoutOnClose:grpc.UnaryUnaryMultiCallable[ - global___MsgTimeoutOnClose, - global___MsgTimeoutOnCloseResponse] = ... - - Acknowledgement:grpc.UnaryUnaryMultiCallable[ - global___MsgAcknowledgement, - global___MsgAcknowledgementResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def ChannelOpenInit(self, - request: global___MsgChannelOpenInit, - context: grpc.ServicerContext, - ) -> global___MsgChannelOpenInitResponse: ... - - @abc.abstractmethod - def ChannelOpenTry(self, - request: global___MsgChannelOpenTry, - context: grpc.ServicerContext, - ) -> global___MsgChannelOpenTryResponse: ... - - @abc.abstractmethod - def ChannelOpenAck(self, - request: global___MsgChannelOpenAck, - context: grpc.ServicerContext, - ) -> global___MsgChannelOpenAckResponse: ... - - @abc.abstractmethod - def ChannelOpenConfirm(self, - request: global___MsgChannelOpenConfirm, - context: grpc.ServicerContext, - ) -> global___MsgChannelOpenConfirmResponse: ... - - @abc.abstractmethod - def ChannelCloseInit(self, - request: global___MsgChannelCloseInit, - context: grpc.ServicerContext, - ) -> global___MsgChannelCloseInitResponse: ... - - @abc.abstractmethod - def ChannelCloseConfirm(self, - request: global___MsgChannelCloseConfirm, - context: grpc.ServicerContext, - ) -> global___MsgChannelCloseConfirmResponse: ... - - @abc.abstractmethod - def RecvPacket(self, - request: global___MsgRecvPacket, - context: grpc.ServicerContext, - ) -> global___MsgRecvPacketResponse: ... - - @abc.abstractmethod - def Timeout(self, - request: global___MsgTimeout, - context: grpc.ServicerContext, - ) -> global___MsgTimeoutResponse: ... - - @abc.abstractmethod - def TimeoutOnClose(self, - request: global___MsgTimeoutOnClose, - context: grpc.ServicerContext, - ) -> global___MsgTimeoutOnCloseResponse: ... - - @abc.abstractmethod - def Acknowledgement(self, - request: global___MsgAcknowledgement, - context: grpc.ServicerContext, - ) -> global___MsgAcknowledgementResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/client/v1/client_pb2.py b/pyband/proto/ibc/core/client/v1/client_pb2.py index e74010d..4266096 100644 --- a/pyband/proto/ibc/core/client/v1/client_pb2.py +++ b/pyband/proto/ibc/core/client/v1/client_pb2.py @@ -13,17 +13,18 @@ from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from cosmos.upgrade.v1beta1 import upgrade_pb2 as cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='ibc/core/client/v1/client.proto', package='ibc.core.client.v1', syntax='proto3', - serialized_options=b'Z7github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types', + serialized_options=b'Z5github.com/cosmos/ibc-go/modules/core/02-client/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1fibc/core/client/v1/client.proto\x12\x12ibc.core.client.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"\x85\x01\n\x15IdentifiedClientState\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x43\n\x0c\x63lient_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\"\x96\x01\n\x18\x43onsensusStateWithHeight\x12\x30\n\x06height\x18\x01 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\x12H\n\x0f\x63onsensus_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x19\xf2\xde\x1f\x15yaml\"consensus_state\"\"\xa9\x01\n\x15\x43lientConsensusStates\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12g\n\x10\x63onsensus_states\x18\x02 \x03(\x0b\x32,.ibc.core.client.v1.ConsensusStateWithHeightB\x1f\xf2\xde\x1f\x17yaml:\"consensus_states\"\xc8\xde\x1f\x00\"\x8f\x01\n\x14\x43lientUpdateProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\'\n\tclient_id\x18\x03 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12$\n\x06header\x18\x04 \x01(\x0b\x32\x14.google.protobuf.Any:\x04\x88\xa0\x1f\x00\"|\n\x06Height\x12\x33\n\x0frevision_number\x18\x01 \x01(\x04\x42\x1a\xf2\xde\x1f\x16yaml:\"revision_number\"\x12\x33\n\x0frevision_height\x18\x02 \x01(\x04\x42\x1a\xf2\xde\x1f\x16yaml:\"revision_height\":\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"=\n\x06Params\x12\x33\n\x0f\x61llowed_clients\x18\x01 \x03(\tB\x1a\xf2\xde\x1f\x16yaml:\"allowed_clients\"B9Z7github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/typesb\x06proto3' + serialized_pb=b'\n\x1fibc/core/client/v1/client.proto\x12\x12ibc.core.client.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a$cosmos/upgrade/v1beta1/upgrade.proto\"\x85\x01\n\x15IdentifiedClientState\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x43\n\x0c\x63lient_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\"\x96\x01\n\x18\x43onsensusStateWithHeight\x12\x30\n\x06height\x18\x01 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\x12H\n\x0f\x63onsensus_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x19\xf2\xde\x1f\x15yaml\"consensus_state\"\"\xa9\x01\n\x15\x43lientConsensusStates\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12g\n\x10\x63onsensus_states\x18\x02 \x03(\x0b\x32,.ibc.core.client.v1.ConsensusStateWithHeightB\x1f\xf2\xde\x1f\x17yaml:\"consensus_states\"\xc8\xde\x1f\x00\"\xb8\x01\n\x14\x43lientUpdateProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x37\n\x11subject_client_id\x18\x03 \x01(\tB\x1c\xf2\xde\x1f\x18yaml:\"subject_client_id\"\x12=\n\x14substitute_client_id\x18\x04 \x01(\tB\x1f\xf2\xde\x1f\x1byaml:\"substitute_client_id\":\x04\x88\xa0\x1f\x00\"\xcc\x01\n\x0fUpgradeProposal\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x30\n\x04plan\x18\x03 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.PlanB\x04\xc8\xde\x1f\x00\x12U\n\x15upgraded_client_state\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyB \xf2\xde\x1f\x1cyaml:\"upgraded_client_state\":\x0c\x88\xa0\x1f\x00\x98\xa0\x1f\x00\xe8\xa0\x1f\x01\"|\n\x06Height\x12\x33\n\x0frevision_number\x18\x01 \x01(\x04\x42\x1a\xf2\xde\x1f\x16yaml:\"revision_number\"\x12\x33\n\x0frevision_height\x18\x02 \x01(\x04\x42\x1a\xf2\xde\x1f\x16yaml:\"revision_height\":\x08\x88\xa0\x1f\x00\x98\xa0\x1f\x00\"=\n\x06Params\x12\x33\n\x0f\x61llowed_clients\x18\x01 \x03(\tB\x1a\xf2\xde\x1f\x16yaml:\"allowed_clients\"B7Z5github.com/cosmos/ibc-go/modules/core/02-client/typesb\x06proto3' , - dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) + dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2.DESCRIPTOR,]) @@ -62,8 +63,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=105, - serialized_end=238, + serialized_start=143, + serialized_end=276, ) @@ -101,8 +102,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=241, - serialized_end=391, + serialized_start=279, + serialized_end=429, ) @@ -140,8 +141,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=394, - serialized_end=563, + serialized_start=432, + serialized_end=601, ) @@ -168,33 +169,86 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='client_id', full_name='ibc.core.client.v1.ClientUpdateProposal.client_id', index=2, + name='subject_client_id', full_name='ibc.core.client.v1.ClientUpdateProposal.subject_client_id', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\362\336\037\020yaml:\"client_id\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\362\336\037\030yaml:\"subject_client_id\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='header', full_name='ibc.core.client.v1.ClientUpdateProposal.header', index=3, + name='substitute_client_id', full_name='ibc.core.client.v1.ClientUpdateProposal.substitute_client_id', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\033yaml:\"substitute_client_id\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=604, + serialized_end=788, +) + + +_UPGRADEPROPOSAL = _descriptor.Descriptor( + name='UpgradeProposal', + full_name='ibc.core.client.v1.UpgradeProposal', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='title', full_name='ibc.core.client.v1.UpgradeProposal.title', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='description', full_name='ibc.core.client.v1.UpgradeProposal.description', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='plan', full_name='ibc.core.client.v1.UpgradeProposal.plan', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='upgraded_client_state', full_name='ibc.core.client.v1.UpgradeProposal.upgraded_client_state', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\362\336\037\034yaml:\"upgraded_client_state\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=b'\210\240\037\000', + serialized_options=b'\210\240\037\000\230\240\037\000\350\240\037\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=566, - serialized_end=709, + serialized_start=791, + serialized_end=995, ) @@ -232,8 +286,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=711, - serialized_end=835, + serialized_start=997, + serialized_end=1121, ) @@ -264,19 +318,21 @@ extension_ranges=[], oneofs=[ ], - serialized_start=837, - serialized_end=898, + serialized_start=1123, + serialized_end=1184, ) _IDENTIFIEDCLIENTSTATE.fields_by_name['client_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY _CONSENSUSSTATEWITHHEIGHT.fields_by_name['height'].message_type = _HEIGHT _CONSENSUSSTATEWITHHEIGHT.fields_by_name['consensus_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY _CLIENTCONSENSUSSTATES.fields_by_name['consensus_states'].message_type = _CONSENSUSSTATEWITHHEIGHT -_CLIENTUPDATEPROPOSAL.fields_by_name['header'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_UPGRADEPROPOSAL.fields_by_name['plan'].message_type = cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2._PLAN +_UPGRADEPROPOSAL.fields_by_name['upgraded_client_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY DESCRIPTOR.message_types_by_name['IdentifiedClientState'] = _IDENTIFIEDCLIENTSTATE DESCRIPTOR.message_types_by_name['ConsensusStateWithHeight'] = _CONSENSUSSTATEWITHHEIGHT DESCRIPTOR.message_types_by_name['ClientConsensusStates'] = _CLIENTCONSENSUSSTATES DESCRIPTOR.message_types_by_name['ClientUpdateProposal'] = _CLIENTUPDATEPROPOSAL +DESCRIPTOR.message_types_by_name['UpgradeProposal'] = _UPGRADEPROPOSAL DESCRIPTOR.message_types_by_name['Height'] = _HEIGHT DESCRIPTOR.message_types_by_name['Params'] = _PARAMS _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -309,6 +365,13 @@ }) _sym_db.RegisterMessage(ClientUpdateProposal) +UpgradeProposal = _reflection.GeneratedProtocolMessageType('UpgradeProposal', (_message.Message,), { + 'DESCRIPTOR' : _UPGRADEPROPOSAL, + '__module__' : 'ibc.core.client.v1.client_pb2' + # @@protoc_insertion_point(class_scope:ibc.core.client.v1.UpgradeProposal) + }) +_sym_db.RegisterMessage(UpgradeProposal) + Height = _reflection.GeneratedProtocolMessageType('Height', (_message.Message,), { 'DESCRIPTOR' : _HEIGHT, '__module__' : 'ibc.core.client.v1.client_pb2' @@ -331,8 +394,12 @@ _CONSENSUSSTATEWITHHEIGHT.fields_by_name['consensus_state']._options = None _CLIENTCONSENSUSSTATES.fields_by_name['client_id']._options = None _CLIENTCONSENSUSSTATES.fields_by_name['consensus_states']._options = None -_CLIENTUPDATEPROPOSAL.fields_by_name['client_id']._options = None +_CLIENTUPDATEPROPOSAL.fields_by_name['subject_client_id']._options = None +_CLIENTUPDATEPROPOSAL.fields_by_name['substitute_client_id']._options = None _CLIENTUPDATEPROPOSAL._options = None +_UPGRADEPROPOSAL.fields_by_name['plan']._options = None +_UPGRADEPROPOSAL.fields_by_name['upgraded_client_state']._options = None +_UPGRADEPROPOSAL._options = None _HEIGHT.fields_by_name['revision_number']._options = None _HEIGHT.fields_by_name['revision_height']._options = None _HEIGHT._options = None diff --git a/pyband/proto/ibc/core/client/v1/client_pb2.pyi b/pyband/proto/ibc/core/client/v1/client_pb2.pyi deleted file mode 100644 index 4a33102..0000000 --- a/pyband/proto/ibc/core/client/v1/client_pb2.pyi +++ /dev/null @@ -1,121 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class IdentifiedClientState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - CLIENT_STATE_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - - @property - def client_state(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state"]) -> None: ... -global___IdentifiedClientState = IdentifiedClientState - -class ConsensusStateWithHeight(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - CONSENSUS_STATE_FIELD_NUMBER: builtins.int - - @property - def height(self) -> global___Height: ... - - @property - def consensus_state(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - height : typing.Optional[global___Height] = ..., - consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"height",b"height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"height",b"height"]) -> None: ... -global___ConsensusStateWithHeight = ConsensusStateWithHeight - -class ClientConsensusStates(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - CONSENSUS_STATES_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - - @property - def consensus_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConsensusStateWithHeight]: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - consensus_states : typing.Optional[typing.Iterable[global___ConsensusStateWithHeight]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_states",b"consensus_states"]) -> None: ... -global___ClientConsensusStates = ClientConsensusStates - -class ClientUpdateProposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TITLE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - CLIENT_ID_FIELD_NUMBER: builtins.int - HEADER_FIELD_NUMBER: builtins.int - title: typing.Text = ... - description: typing.Text = ... - client_id: typing.Text = ... - - @property - def header(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - title : typing.Text = ..., - description : typing.Text = ..., - client_id : typing.Text = ..., - header : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"header",b"header"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"description",b"description",u"header",b"header",u"title",b"title"]) -> None: ... -global___ClientUpdateProposal = ClientUpdateProposal - -class Height(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REVISION_NUMBER_FIELD_NUMBER: builtins.int - REVISION_HEIGHT_FIELD_NUMBER: builtins.int - revision_number: builtins.int = ... - revision_height: builtins.int = ... - - def __init__(self, - *, - revision_number : builtins.int = ..., - revision_height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... -global___Height = Height - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ALLOWED_CLIENTS_FIELD_NUMBER: builtins.int - - @property - def allowed_clients(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - allowed_clients : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"allowed_clients",b"allowed_clients"]) -> None: ... -global___Params = Params diff --git a/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi deleted file mode 100644 index 604fd68..0000000 --- a/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .client_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/client/v1/genesis_pb2.py b/pyband/proto/ibc/core/client/v1/genesis_pb2.py index cb28fd5..e09d8aa 100644 --- a/pyband/proto/ibc/core/client/v1/genesis_pb2.py +++ b/pyband/proto/ibc/core/client/v1/genesis_pb2.py @@ -19,9 +19,9 @@ name='ibc/core/client/v1/genesis.proto', package='ibc.core.client.v1', syntax='proto3', - serialized_options=b'Z7github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types', + serialized_options=b'Z5github.com/cosmos/ibc-go/modules/core/02-client/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n ibc/core/client/v1/genesis.proto\x12\x12ibc.core.client.v1\x1a\x1fibc/core/client/v1/client.proto\x1a\x14gogoproto/gogo.proto\"\xff\x03\n\x0cGenesisState\x12Z\n\x07\x63lients\x18\x01 \x03(\x0b\x32).ibc.core.client.v1.IdentifiedClientStateB\x1e\xc8\xde\x1f\x00\xaa\xdf\x1f\x16IdentifiedClientStates\x12\x80\x01\n\x11\x63lients_consensus\x18\x02 \x03(\x0b\x32).ibc.core.client.v1.ClientConsensusStatesB:\xc8\xde\x1f\x00\xaa\xdf\x1f\x16\x43lientsConsensusStates\xf2\xde\x1f\x18yaml:\"clients_consensus\"\x12h\n\x10\x63lients_metadata\x18\x03 \x03(\x0b\x32-.ibc.core.client.v1.IdentifiedGenesisMetadataB\x1f\xc8\xde\x1f\x00\xf2\xde\x1f\x17yaml:\"clients_metadata\"\x12\x30\n\x06params\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.ParamsB\x04\xc8\xde\x1f\x00\x12\x35\n\x10\x63reate_localhost\x18\x05 \x01(\x08\x42\x1b\xf2\xde\x1f\x17yaml:\"create_localhost\"\x12=\n\x14next_client_sequence\x18\x06 \x01(\x04\x42\x1f\xf2\xde\x1f\x1byaml:\"next_client_sequence\"\"3\n\x0fGenesisMetadata\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c:\x04\x88\xa0\x1f\x00\"\xa2\x01\n\x19IdentifiedGenesisMetadata\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\\\n\x0f\x63lient_metadata\x18\x02 \x03(\x0b\x32#.ibc.core.client.v1.GenesisMetadataB\x1e\xc8\xde\x1f\x00\xf2\xde\x1f\x16yaml:\"client_metadata\"B9Z7github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/typesb\x06proto3' + serialized_pb=b'\n ibc/core/client/v1/genesis.proto\x12\x12ibc.core.client.v1\x1a\x1fibc/core/client/v1/client.proto\x1a\x14gogoproto/gogo.proto\"\xff\x03\n\x0cGenesisState\x12Z\n\x07\x63lients\x18\x01 \x03(\x0b\x32).ibc.core.client.v1.IdentifiedClientStateB\x1e\xc8\xde\x1f\x00\xaa\xdf\x1f\x16IdentifiedClientStates\x12\x80\x01\n\x11\x63lients_consensus\x18\x02 \x03(\x0b\x32).ibc.core.client.v1.ClientConsensusStatesB:\xc8\xde\x1f\x00\xaa\xdf\x1f\x16\x43lientsConsensusStates\xf2\xde\x1f\x18yaml:\"clients_consensus\"\x12h\n\x10\x63lients_metadata\x18\x03 \x03(\x0b\x32-.ibc.core.client.v1.IdentifiedGenesisMetadataB\x1f\xc8\xde\x1f\x00\xf2\xde\x1f\x17yaml:\"clients_metadata\"\x12\x30\n\x06params\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.ParamsB\x04\xc8\xde\x1f\x00\x12\x35\n\x10\x63reate_localhost\x18\x05 \x01(\x08\x42\x1b\xf2\xde\x1f\x17yaml:\"create_localhost\"\x12=\n\x14next_client_sequence\x18\x06 \x01(\x04\x42\x1f\xf2\xde\x1f\x1byaml:\"next_client_sequence\"\"3\n\x0fGenesisMetadata\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c:\x04\x88\xa0\x1f\x00\"\xa2\x01\n\x19IdentifiedGenesisMetadata\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\\\n\x0f\x63lient_metadata\x18\x02 \x03(\x0b\x32#.ibc.core.client.v1.GenesisMetadataB\x1e\xc8\xde\x1f\x00\xf2\xde\x1f\x16yaml:\"client_metadata\"B7Z5github.com/cosmos/ibc-go/modules/core/02-client/typesb\x06proto3' , dependencies=[ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/core/client/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/client/v1/genesis_pb2.pyi deleted file mode 100644 index 5e119ab..0000000 --- a/pyband/proto/ibc/core/client/v1/genesis_pb2.pyi +++ /dev/null @@ -1,81 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.core.client.v1.client_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENTS_FIELD_NUMBER: builtins.int - CLIENTS_CONSENSUS_FIELD_NUMBER: builtins.int - CLIENTS_METADATA_FIELD_NUMBER: builtins.int - PARAMS_FIELD_NUMBER: builtins.int - CREATE_LOCALHOST_FIELD_NUMBER: builtins.int - NEXT_CLIENT_SEQUENCE_FIELD_NUMBER: builtins.int - create_localhost: builtins.bool = ... - next_client_sequence: builtins.int = ... - - @property - def clients(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.IdentifiedClientState]: ... - - @property - def clients_consensus(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.ClientConsensusStates]: ... - - @property - def clients_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IdentifiedGenesisMetadata]: ... - - @property - def params(self) -> ibc.core.client.v1.client_pb2.Params: ... - - def __init__(self, - *, - clients : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.IdentifiedClientState]] = ..., - clients_consensus : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.ClientConsensusStates]] = ..., - clients_metadata : typing.Optional[typing.Iterable[global___IdentifiedGenesisMetadata]] = ..., - params : typing.Optional[ibc.core.client.v1.client_pb2.Params] = ..., - create_localhost : builtins.bool = ..., - next_client_sequence : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"clients",b"clients",u"clients_consensus",b"clients_consensus",u"clients_metadata",b"clients_metadata",u"create_localhost",b"create_localhost",u"next_client_sequence",b"next_client_sequence",u"params",b"params"]) -> None: ... -global___GenesisState = GenesisState - -class GenesisMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - value: builtins.bytes = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - value : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... -global___GenesisMetadata = GenesisMetadata - -class IdentifiedGenesisMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - CLIENT_METADATA_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - - @property - def client_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GenesisMetadata]: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - client_metadata : typing.Optional[typing.Iterable[global___GenesisMetadata]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_metadata",b"client_metadata"]) -> None: ... -global___IdentifiedGenesisMetadata = IdentifiedGenesisMetadata diff --git a/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/client/v1/query_pb2.py b/pyband/proto/ibc/core/client/v1/query_pb2.py index f7b2775..f212bc4 100644 --- a/pyband/proto/ibc/core/client/v1/query_pb2.py +++ b/pyband/proto/ibc/core/client/v1/query_pb2.py @@ -22,9 +22,9 @@ name='ibc/core/client/v1/query.proto', package='ibc.core.client.v1', syntax='proto3', - serialized_options=b'Z7github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types', + serialized_options=b'Z5github.com/cosmos/ibc-go/modules/core/02-client/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1eibc/core/client/v1/query.proto\x12\x12ibc.core.client.v1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1fibc/core/client/v1/client.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x14gogoproto/gogo.proto\",\n\x17QueryClientStateRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\"\x8d\x01\n\x18QueryClientStateResponse\x12*\n\x0c\x63lient_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"V\n\x18QueryClientStatesRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xba\x01\n\x19QueryClientStatesResponse\x12`\n\rclient_states\x18\x01 \x03(\x0b\x32).ibc.core.client.v1.IdentifiedClientStateB\x1e\xc8\xde\x1f\x00\xaa\xdf\x1f\x16IdentifiedClientStates\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"x\n\x1aQueryConsensusStateRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x17\n\x0frevision_number\x18\x02 \x01(\x04\x12\x17\n\x0frevision_height\x18\x03 \x01(\x04\x12\x15\n\rlatest_height\x18\x04 \x01(\x08\"\x93\x01\n\x1bQueryConsensusStateResponse\x12-\n\x0f\x63onsensus_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"l\n\x1bQueryConsensusStatesRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xa9\x01\n\x1cQueryConsensusStatesResponse\x12L\n\x10\x63onsensus_states\x18\x01 \x03(\x0b\x32,.ibc.core.client.v1.ConsensusStateWithHeightB\x04\xc8\xde\x1f\x00\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"\x1a\n\x18QueryClientParamsRequest\"G\n\x19QueryClientParamsResponse\x12*\n\x06params\x18\x01 \x01(\x0b\x32\x1a.ibc.core.client.v1.Params2\xfb\x06\n\x05Query\x12\xa4\x01\n\x0b\x43lientState\x12+.ibc.core.client.v1.QueryClientStateRequest\x1a,.ibc.core.client.v1.QueryClientStateResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/ibc/core/client/v1beta1/client_states/{client_id}\x12\x9b\x01\n\x0c\x43lientStates\x12,.ibc.core.client.v1.QueryClientStatesRequest\x1a-.ibc.core.client.v1.QueryClientStatesResponse\".\x82\xd3\xe4\x93\x02(\x12&/ibc/core/client/v1beta1/client_states\x12\xe4\x01\n\x0e\x43onsensusState\x12..ibc.core.client.v1.QueryConsensusStateRequest\x1a/.ibc.core.client.v1.QueryConsensusStateResponse\"q\x82\xd3\xe4\x93\x02k\x12i/ibc/core/client/v1beta1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}\x12\xb3\x01\n\x0f\x43onsensusStates\x12/.ibc.core.client.v1.QueryConsensusStatesRequest\x1a\x30.ibc.core.client.v1.QueryConsensusStatesResponse\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/ibc/core/client/v1beta1/consensus_states/{client_id}\x12\x8f\x01\n\x0c\x43lientParams\x12,.ibc.core.client.v1.QueryClientParamsRequest\x1a-.ibc.core.client.v1.QueryClientParamsResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/ibc/client/v1beta1/paramsB9Z7github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/typesb\x06proto3' + serialized_pb=b'\n\x1eibc/core/client/v1/query.proto\x12\x12ibc.core.client.v1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1fibc/core/client/v1/client.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x14gogoproto/gogo.proto\",\n\x17QueryClientStateRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\"\x8d\x01\n\x18QueryClientStateResponse\x12*\n\x0c\x63lient_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"V\n\x18QueryClientStatesRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xba\x01\n\x19QueryClientStatesResponse\x12`\n\rclient_states\x18\x01 \x03(\x0b\x32).ibc.core.client.v1.IdentifiedClientStateB\x1e\xc8\xde\x1f\x00\xaa\xdf\x1f\x16IdentifiedClientStates\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"x\n\x1aQueryConsensusStateRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x17\n\x0frevision_number\x18\x02 \x01(\x04\x12\x17\n\x0frevision_height\x18\x03 \x01(\x04\x12\x15\n\rlatest_height\x18\x04 \x01(\x08\"\x93\x01\n\x1bQueryConsensusStateResponse\x12-\n\x0f\x63onsensus_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"l\n\x1bQueryConsensusStatesRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12:\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xa9\x01\n\x1cQueryConsensusStatesResponse\x12L\n\x10\x63onsensus_states\x18\x01 \x03(\x0b\x32,.ibc.core.client.v1.ConsensusStateWithHeightB\x04\xc8\xde\x1f\x00\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\"-\n\x18QueryClientStatusRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\"+\n\x19QueryClientStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\"\x1a\n\x18QueryClientParamsRequest\"G\n\x19QueryClientParamsResponse\x12*\n\x06params\x18\x01 \x01(\x0b\x32\x1a.ibc.core.client.v1.Params\"!\n\x1fQueryUpgradedClientStateRequest\"W\n QueryUpgradedClientStateResponse\x12\x33\n\x15upgraded_client_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\"$\n\"QueryUpgradedConsensusStateRequest\"]\n#QueryUpgradedConsensusStateResponse\x12\x36\n\x18upgraded_consensus_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any2\x81\x0b\n\x05Query\x12\x9f\x01\n\x0b\x43lientState\x12+.ibc.core.client.v1.QueryClientStateRequest\x1a,.ibc.core.client.v1.QueryClientStateResponse\"5\x82\xd3\xe4\x93\x02/\x12-/ibc/core/client/v1/client_states/{client_id}\x12\x96\x01\n\x0c\x43lientStates\x12,.ibc.core.client.v1.QueryClientStatesRequest\x1a-.ibc.core.client.v1.QueryClientStatesResponse\")\x82\xd3\xe4\x93\x02#\x12!/ibc/core/client/v1/client_states\x12\xdf\x01\n\x0e\x43onsensusState\x12..ibc.core.client.v1.QueryConsensusStateRequest\x1a/.ibc.core.client.v1.QueryConsensusStateResponse\"l\x82\xd3\xe4\x93\x02\x66\x12\x64/ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}\x12\xae\x01\n\x0f\x43onsensusStates\x12/.ibc.core.client.v1.QueryConsensusStatesRequest\x1a\x30.ibc.core.client.v1.QueryConsensusStatesResponse\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/ibc/core/client/v1/consensus_states/{client_id}\x12\xa2\x01\n\x0c\x43lientStatus\x12,.ibc.core.client.v1.QueryClientStatusRequest\x1a-.ibc.core.client.v1.QueryClientStatusResponse\"5\x82\xd3\xe4\x93\x02/\x12-/ibc/core/client/v1/client_status/{client_id}\x12\x8a\x01\n\x0c\x43lientParams\x12,.ibc.core.client.v1.QueryClientParamsRequest\x1a-.ibc.core.client.v1.QueryClientParamsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/ibc/client/v1/params\x12\xb4\x01\n\x13UpgradedClientState\x12\x33.ibc.core.client.v1.QueryUpgradedClientStateRequest\x1a\x34.ibc.core.client.v1.QueryUpgradedClientStateResponse\"2\x82\xd3\xe4\x93\x02,\x12*/ibc/core/client/v1/upgraded_client_states\x12\xc0\x01\n\x16UpgradedConsensusState\x12\x36.ibc.core.client.v1.QueryUpgradedConsensusStateRequest\x1a\x37.ibc.core.client.v1.QueryUpgradedConsensusStateResponse\"5\x82\xd3\xe4\x93\x02/\x12-/ibc/core/client/v1/upgraded_consensus_statesB7Z5github.com/cosmos/ibc-go/modules/core/02-client/typesb\x06proto3' , dependencies=[cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,]) @@ -357,6 +357,70 @@ ) +_QUERYCLIENTSTATUSREQUEST = _descriptor.Descriptor( + name='QueryClientStatusRequest', + full_name='ibc.core.client.v1.QueryClientStatusRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='client_id', full_name='ibc.core.client.v1.QueryClientStatusRequest.client_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1231, + serialized_end=1276, +) + + +_QUERYCLIENTSTATUSRESPONSE = _descriptor.Descriptor( + name='QueryClientStatusResponse', + full_name='ibc.core.client.v1.QueryClientStatusResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='status', full_name='ibc.core.client.v1.QueryClientStatusResponse.status', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1278, + serialized_end=1321, +) + + _QUERYCLIENTPARAMSREQUEST = _descriptor.Descriptor( name='QueryClientParamsRequest', full_name='ibc.core.client.v1.QueryClientParamsRequest', @@ -377,8 +441,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1231, - serialized_end=1257, + serialized_start=1323, + serialized_end=1349, ) @@ -409,8 +473,122 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1259, - serialized_end=1330, + serialized_start=1351, + serialized_end=1422, +) + + +_QUERYUPGRADEDCLIENTSTATEREQUEST = _descriptor.Descriptor( + name='QueryUpgradedClientStateRequest', + full_name='ibc.core.client.v1.QueryUpgradedClientStateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1424, + serialized_end=1457, +) + + +_QUERYUPGRADEDCLIENTSTATERESPONSE = _descriptor.Descriptor( + name='QueryUpgradedClientStateResponse', + full_name='ibc.core.client.v1.QueryUpgradedClientStateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='upgraded_client_state', full_name='ibc.core.client.v1.QueryUpgradedClientStateResponse.upgraded_client_state', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1459, + serialized_end=1546, +) + + +_QUERYUPGRADEDCONSENSUSSTATEREQUEST = _descriptor.Descriptor( + name='QueryUpgradedConsensusStateRequest', + full_name='ibc.core.client.v1.QueryUpgradedConsensusStateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1548, + serialized_end=1584, +) + + +_QUERYUPGRADEDCONSENSUSSTATERESPONSE = _descriptor.Descriptor( + name='QueryUpgradedConsensusStateResponse', + full_name='ibc.core.client.v1.QueryUpgradedConsensusStateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='upgraded_consensus_state', full_name='ibc.core.client.v1.QueryUpgradedConsensusStateResponse.upgraded_consensus_state', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1586, + serialized_end=1679, ) _QUERYCLIENTSTATERESPONSE.fields_by_name['client_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY @@ -424,6 +602,8 @@ _QUERYCONSENSUSSTATESRESPONSE.fields_by_name['consensus_states'].message_type = ibc_dot_core_dot_client_dot_v1_dot_client__pb2._CONSENSUSSTATEWITHHEIGHT _QUERYCONSENSUSSTATESRESPONSE.fields_by_name['pagination'].message_type = cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2._PAGERESPONSE _QUERYCLIENTPARAMSRESPONSE.fields_by_name['params'].message_type = ibc_dot_core_dot_client_dot_v1_dot_client__pb2._PARAMS +_QUERYUPGRADEDCLIENTSTATERESPONSE.fields_by_name['upgraded_client_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_QUERYUPGRADEDCONSENSUSSTATERESPONSE.fields_by_name['upgraded_consensus_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY DESCRIPTOR.message_types_by_name['QueryClientStateRequest'] = _QUERYCLIENTSTATEREQUEST DESCRIPTOR.message_types_by_name['QueryClientStateResponse'] = _QUERYCLIENTSTATERESPONSE DESCRIPTOR.message_types_by_name['QueryClientStatesRequest'] = _QUERYCLIENTSTATESREQUEST @@ -432,8 +612,14 @@ DESCRIPTOR.message_types_by_name['QueryConsensusStateResponse'] = _QUERYCONSENSUSSTATERESPONSE DESCRIPTOR.message_types_by_name['QueryConsensusStatesRequest'] = _QUERYCONSENSUSSTATESREQUEST DESCRIPTOR.message_types_by_name['QueryConsensusStatesResponse'] = _QUERYCONSENSUSSTATESRESPONSE +DESCRIPTOR.message_types_by_name['QueryClientStatusRequest'] = _QUERYCLIENTSTATUSREQUEST +DESCRIPTOR.message_types_by_name['QueryClientStatusResponse'] = _QUERYCLIENTSTATUSRESPONSE DESCRIPTOR.message_types_by_name['QueryClientParamsRequest'] = _QUERYCLIENTPARAMSREQUEST DESCRIPTOR.message_types_by_name['QueryClientParamsResponse'] = _QUERYCLIENTPARAMSRESPONSE +DESCRIPTOR.message_types_by_name['QueryUpgradedClientStateRequest'] = _QUERYUPGRADEDCLIENTSTATEREQUEST +DESCRIPTOR.message_types_by_name['QueryUpgradedClientStateResponse'] = _QUERYUPGRADEDCLIENTSTATERESPONSE +DESCRIPTOR.message_types_by_name['QueryUpgradedConsensusStateRequest'] = _QUERYUPGRADEDCONSENSUSSTATEREQUEST +DESCRIPTOR.message_types_by_name['QueryUpgradedConsensusStateResponse'] = _QUERYUPGRADEDCONSENSUSSTATERESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) QueryClientStateRequest = _reflection.GeneratedProtocolMessageType('QueryClientStateRequest', (_message.Message,), { @@ -492,6 +678,20 @@ }) _sym_db.RegisterMessage(QueryConsensusStatesResponse) +QueryClientStatusRequest = _reflection.GeneratedProtocolMessageType('QueryClientStatusRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYCLIENTSTATUSREQUEST, + '__module__' : 'ibc.core.client.v1.query_pb2' + # @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStatusRequest) + }) +_sym_db.RegisterMessage(QueryClientStatusRequest) + +QueryClientStatusResponse = _reflection.GeneratedProtocolMessageType('QueryClientStatusResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYCLIENTSTATUSRESPONSE, + '__module__' : 'ibc.core.client.v1.query_pb2' + # @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStatusResponse) + }) +_sym_db.RegisterMessage(QueryClientStatusResponse) + QueryClientParamsRequest = _reflection.GeneratedProtocolMessageType('QueryClientParamsRequest', (_message.Message,), { 'DESCRIPTOR' : _QUERYCLIENTPARAMSREQUEST, '__module__' : 'ibc.core.client.v1.query_pb2' @@ -506,6 +706,34 @@ }) _sym_db.RegisterMessage(QueryClientParamsResponse) +QueryUpgradedClientStateRequest = _reflection.GeneratedProtocolMessageType('QueryUpgradedClientStateRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYUPGRADEDCLIENTSTATEREQUEST, + '__module__' : 'ibc.core.client.v1.query_pb2' + # @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryUpgradedClientStateRequest) + }) +_sym_db.RegisterMessage(QueryUpgradedClientStateRequest) + +QueryUpgradedClientStateResponse = _reflection.GeneratedProtocolMessageType('QueryUpgradedClientStateResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYUPGRADEDCLIENTSTATERESPONSE, + '__module__' : 'ibc.core.client.v1.query_pb2' + # @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryUpgradedClientStateResponse) + }) +_sym_db.RegisterMessage(QueryUpgradedClientStateResponse) + +QueryUpgradedConsensusStateRequest = _reflection.GeneratedProtocolMessageType('QueryUpgradedConsensusStateRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYUPGRADEDCONSENSUSSTATEREQUEST, + '__module__' : 'ibc.core.client.v1.query_pb2' + # @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryUpgradedConsensusStateRequest) + }) +_sym_db.RegisterMessage(QueryUpgradedConsensusStateRequest) + +QueryUpgradedConsensusStateResponse = _reflection.GeneratedProtocolMessageType('QueryUpgradedConsensusStateResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYUPGRADEDCONSENSUSSTATERESPONSE, + '__module__' : 'ibc.core.client.v1.query_pb2' + # @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryUpgradedConsensusStateResponse) + }) +_sym_db.RegisterMessage(QueryUpgradedConsensusStateResponse) + DESCRIPTOR._options = None _QUERYCLIENTSTATERESPONSE.fields_by_name['proof_height']._options = None @@ -520,8 +748,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1333, - serialized_end=2224, + serialized_start=1682, + serialized_end=3091, methods=[ _descriptor.MethodDescriptor( name='ClientState', @@ -530,7 +758,7 @@ containing_service=None, input_type=_QUERYCLIENTSTATEREQUEST, output_type=_QUERYCLIENTSTATERESPONSE, - serialized_options=b'\202\323\344\223\0024\0222/ibc/core/client/v1beta1/client_states/{client_id}', + serialized_options=b'\202\323\344\223\002/\022-/ibc/core/client/v1/client_states/{client_id}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -540,7 +768,7 @@ containing_service=None, input_type=_QUERYCLIENTSTATESREQUEST, output_type=_QUERYCLIENTSTATESRESPONSE, - serialized_options=b'\202\323\344\223\002(\022&/ibc/core/client/v1beta1/client_states', + serialized_options=b'\202\323\344\223\002#\022!/ibc/core/client/v1/client_states', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -550,7 +778,7 @@ containing_service=None, input_type=_QUERYCONSENSUSSTATEREQUEST, output_type=_QUERYCONSENSUSSTATERESPONSE, - serialized_options=b'\202\323\344\223\002k\022i/ibc/core/client/v1beta1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}', + serialized_options=b'\202\323\344\223\002f\022d/ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -560,17 +788,47 @@ containing_service=None, input_type=_QUERYCONSENSUSSTATESREQUEST, output_type=_QUERYCONSENSUSSTATESRESPONSE, - serialized_options=b'\202\323\344\223\0027\0225/ibc/core/client/v1beta1/consensus_states/{client_id}', + serialized_options=b'\202\323\344\223\0022\0220/ibc/core/client/v1/consensus_states/{client_id}', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='ClientStatus', + full_name='ibc.core.client.v1.Query.ClientStatus', + index=4, + containing_service=None, + input_type=_QUERYCLIENTSTATUSREQUEST, + output_type=_QUERYCLIENTSTATUSRESPONSE, + serialized_options=b'\202\323\344\223\002/\022-/ibc/core/client/v1/client_status/{client_id}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ClientParams', full_name='ibc.core.client.v1.Query.ClientParams', - index=4, + index=5, containing_service=None, input_type=_QUERYCLIENTPARAMSREQUEST, output_type=_QUERYCLIENTPARAMSRESPONSE, - serialized_options=b'\202\323\344\223\002\034\022\032/ibc/client/v1beta1/params', + serialized_options=b'\202\323\344\223\002\027\022\025/ibc/client/v1/params', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpgradedClientState', + full_name='ibc.core.client.v1.Query.UpgradedClientState', + index=6, + containing_service=None, + input_type=_QUERYUPGRADEDCLIENTSTATEREQUEST, + output_type=_QUERYUPGRADEDCLIENTSTATERESPONSE, + serialized_options=b'\202\323\344\223\002,\022*/ibc/core/client/v1/upgraded_client_states', + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='UpgradedConsensusState', + full_name='ibc.core.client.v1.Query.UpgradedConsensusState', + index=7, + containing_service=None, + input_type=_QUERYUPGRADEDCONSENSUSSTATEREQUEST, + output_type=_QUERYUPGRADEDCONSENSUSSTATERESPONSE, + serialized_options=b'\202\323\344\223\002/\022-/ibc/core/client/v1/upgraded_consensus_states', create_key=_descriptor._internal_create_key, ), ]) diff --git a/pyband/proto/ibc/core/client/v1/query_pb2.pyi b/pyband/proto/ibc/core/client/v1/query_pb2.pyi deleted file mode 100644 index 31ef528..0000000 --- a/pyband/proto/ibc/core/client/v1/query_pb2.pyi +++ /dev/null @@ -1,189 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.core.client.v1.client_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryClientStateRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - - def __init__(self, - *, - client_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id"]) -> None: ... -global___QueryClientStateRequest = QueryClientStateRequest - -class QueryClientStateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_STATE_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - proof: builtins.bytes = ... - - @property - def client_state(self) -> google.protobuf.any_pb2.Any: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryClientStateResponse = QueryClientStateResponse - -class QueryClientStatesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... -global___QueryClientStatesRequest = QueryClientStatesRequest - -class QueryClientStatesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_STATES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def client_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.IdentifiedClientState]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - client_states : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.IdentifiedClientState]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_states",b"client_states",u"pagination",b"pagination"]) -> None: ... -global___QueryClientStatesResponse = QueryClientStatesResponse - -class QueryConsensusStateRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - REVISION_NUMBER_FIELD_NUMBER: builtins.int - REVISION_HEIGHT_FIELD_NUMBER: builtins.int - LATEST_HEIGHT_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - revision_number: builtins.int = ... - revision_height: builtins.int = ... - latest_height: builtins.bool = ... - - def __init__(self, - *, - client_id : typing.Text = ..., - revision_number : builtins.int = ..., - revision_height : builtins.int = ..., - latest_height : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"latest_height",b"latest_height",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... -global___QueryConsensusStateRequest = QueryConsensusStateRequest - -class QueryConsensusStateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONSENSUS_STATE_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - proof: builtins.bytes = ... - - @property - def consensus_state(self) -> google.protobuf.any_pb2.Any: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryConsensusStateResponse = QueryConsensusStateResponse - -class QueryConsensusStatesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"pagination",b"pagination"]) -> None: ... -global___QueryConsensusStatesRequest = QueryConsensusStatesRequest - -class QueryConsensusStatesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONSENSUS_STATES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def consensus_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.ConsensusStateWithHeight]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - def __init__(self, - *, - consensus_states : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.ConsensusStateWithHeight]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"consensus_states",b"consensus_states",u"pagination",b"pagination"]) -> None: ... -global___QueryConsensusStatesResponse = QueryConsensusStatesResponse - -class QueryClientParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryClientParamsRequest = QueryClientParamsRequest - -class QueryClientParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> ibc.core.client.v1.client_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[ibc.core.client.v1.client_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryClientParamsResponse = QueryClientParamsResponse diff --git a/pyband/proto/ibc/core/client/v1/query_pb2_grpc.py b/pyband/proto/ibc/core/client/v1/query_pb2_grpc.py index 521ed4a..071de92 100644 --- a/pyband/proto/ibc/core/client/v1/query_pb2_grpc.py +++ b/pyband/proto/ibc/core/client/v1/query_pb2_grpc.py @@ -35,11 +35,26 @@ def __init__(self, channel): request_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryConsensusStatesRequest.SerializeToString, response_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryConsensusStatesResponse.FromString, ) + self.ClientStatus = channel.unary_unary( + '/ibc.core.client.v1.Query/ClientStatus', + request_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientStatusRequest.SerializeToString, + response_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientStatusResponse.FromString, + ) self.ClientParams = channel.unary_unary( '/ibc.core.client.v1.Query/ClientParams', request_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientParamsRequest.SerializeToString, response_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientParamsResponse.FromString, ) + self.UpgradedClientState = channel.unary_unary( + '/ibc.core.client.v1.Query/UpgradedClientState', + request_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedClientStateRequest.SerializeToString, + response_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedClientStateResponse.FromString, + ) + self.UpgradedConsensusState = channel.unary_unary( + '/ibc.core.client.v1.Query/UpgradedConsensusState', + request_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedConsensusStateRequest.SerializeToString, + response_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedConsensusStateResponse.FromString, + ) class QueryServicer(object): @@ -76,6 +91,13 @@ def ConsensusStates(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def ClientStatus(self, request, context): + """Status queries the status of an IBC client. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def ClientParams(self, request, context): """ClientParams queries all parameters of the ibc client. """ @@ -83,6 +105,20 @@ def ClientParams(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def UpgradedClientState(self, request, context): + """UpgradedClientState queries an Upgraded IBC light client. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpgradedConsensusState(self, request, context): + """UpgradedConsensusState queries an Upgraded IBC consensus state. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_QueryServicer_to_server(servicer, server): rpc_method_handlers = { @@ -106,11 +142,26 @@ def add_QueryServicer_to_server(servicer, server): request_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryConsensusStatesRequest.FromString, response_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryConsensusStatesResponse.SerializeToString, ), + 'ClientStatus': grpc.unary_unary_rpc_method_handler( + servicer.ClientStatus, + request_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientStatusRequest.FromString, + response_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientStatusResponse.SerializeToString, + ), 'ClientParams': grpc.unary_unary_rpc_method_handler( servicer.ClientParams, request_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientParamsRequest.FromString, response_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientParamsResponse.SerializeToString, ), + 'UpgradedClientState': grpc.unary_unary_rpc_method_handler( + servicer.UpgradedClientState, + request_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedClientStateRequest.FromString, + response_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedClientStateResponse.SerializeToString, + ), + 'UpgradedConsensusState': grpc.unary_unary_rpc_method_handler( + servicer.UpgradedConsensusState, + request_deserializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedConsensusStateRequest.FromString, + response_serializer=ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedConsensusStateResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'ibc.core.client.v1.Query', rpc_method_handlers) @@ -190,6 +241,23 @@ def ConsensusStates(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def ClientStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/ibc.core.client.v1.Query/ClientStatus', + ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientStatusRequest.SerializeToString, + ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientStatusResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def ClientParams(request, target, @@ -206,3 +274,37 @@ def ClientParams(request, ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryClientParamsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpgradedClientState(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/ibc.core.client.v1.Query/UpgradedClientState', + ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedClientStateRequest.SerializeToString, + ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedClientStateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpgradedConsensusState(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/ibc.core.client.v1.Query/UpgradedConsensusState', + ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedConsensusStateRequest.SerializeToString, + ibc_dot_core_dot_client_dot_v1_dot_query__pb2.QueryUpgradedConsensusStateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi deleted file mode 100644 index ed5fd7f..0000000 --- a/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi +++ /dev/null @@ -1,64 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - ClientState:grpc.UnaryUnaryMultiCallable[ - global___QueryClientStateRequest, - global___QueryClientStateResponse] = ... - - ClientStates:grpc.UnaryUnaryMultiCallable[ - global___QueryClientStatesRequest, - global___QueryClientStatesResponse] = ... - - ConsensusState:grpc.UnaryUnaryMultiCallable[ - global___QueryConsensusStateRequest, - global___QueryConsensusStateResponse] = ... - - ConsensusStates:grpc.UnaryUnaryMultiCallable[ - global___QueryConsensusStatesRequest, - global___QueryConsensusStatesResponse] = ... - - ClientParams:grpc.UnaryUnaryMultiCallable[ - global___QueryClientParamsRequest, - global___QueryClientParamsResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def ClientState(self, - request: global___QueryClientStateRequest, - context: grpc.ServicerContext, - ) -> global___QueryClientStateResponse: ... - - @abc.abstractmethod - def ClientStates(self, - request: global___QueryClientStatesRequest, - context: grpc.ServicerContext, - ) -> global___QueryClientStatesResponse: ... - - @abc.abstractmethod - def ConsensusState(self, - request: global___QueryConsensusStateRequest, - context: grpc.ServicerContext, - ) -> global___QueryConsensusStateResponse: ... - - @abc.abstractmethod - def ConsensusStates(self, - request: global___QueryConsensusStatesRequest, - context: grpc.ServicerContext, - ) -> global___QueryConsensusStatesResponse: ... - - @abc.abstractmethod - def ClientParams(self, - request: global___QueryClientParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryClientParamsResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/client/v1/tx_pb2.py b/pyband/proto/ibc/core/client/v1/tx_pb2.py index da6a91c..2e291db 100644 --- a/pyband/proto/ibc/core/client/v1/tx_pb2.py +++ b/pyband/proto/ibc/core/client/v1/tx_pb2.py @@ -20,9 +20,9 @@ name='ibc/core/client/v1/tx.proto', package='ibc.core.client.v1', syntax='proto3', - serialized_options=b'Z7github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types', + serialized_options=b'Z5github.com/cosmos/ibc-go/modules/core/02-client/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1bibc/core/client/v1/tx.proto\x12\x12ibc.core.client.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1fibc/core/client/v1/client.proto\"\xbb\x01\n\x0fMsgCreateClient\x12\x43\n\x0c\x63lient_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\x12I\n\x0f\x63onsensus_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\"\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x19\n\x17MsgCreateClientResponse\"z\n\x0fMsgUpdateClient\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12$\n\x06header\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x19\n\x17MsgUpdateClientResponse\"\xf5\x02\n\x10MsgUpgradeClient\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x43\n\x0c\x63lient_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\x12I\n\x0f\x63onsensus_state\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\"\x12=\n\x14proof_upgrade_client\x18\x04 \x01(\x0c\x42\x1f\xf2\xde\x1f\x1byaml:\"proof_upgrade_client\"\x12O\n\x1dproof_upgrade_consensus_state\x18\x05 \x01(\x0c\x42(\xf2\xde\x1f$yaml:\"proof_upgrade_consensus_state\"\x12\x0e\n\x06signer\x18\x06 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1a\n\x18MsgUpgradeClientResponse\"\x86\x01\n\x15MsgSubmitMisbehaviour\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12*\n\x0cmisbehaviour\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1f\n\x1dMsgSubmitMisbehaviourResponse2\xa2\x03\n\x03Msg\x12`\n\x0c\x43reateClient\x12#.ibc.core.client.v1.MsgCreateClient\x1a+.ibc.core.client.v1.MsgCreateClientResponse\x12`\n\x0cUpdateClient\x12#.ibc.core.client.v1.MsgUpdateClient\x1a+.ibc.core.client.v1.MsgUpdateClientResponse\x12\x63\n\rUpgradeClient\x12$.ibc.core.client.v1.MsgUpgradeClient\x1a,.ibc.core.client.v1.MsgUpgradeClientResponse\x12r\n\x12SubmitMisbehaviour\x12).ibc.core.client.v1.MsgSubmitMisbehaviour\x1a\x31.ibc.core.client.v1.MsgSubmitMisbehaviourResponseB9Z7github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/typesb\x06proto3' + serialized_pb=b'\n\x1bibc/core/client/v1/tx.proto\x12\x12ibc.core.client.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1fibc/core/client/v1/client.proto\"\xbb\x01\n\x0fMsgCreateClient\x12\x43\n\x0c\x63lient_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\x12I\n\x0f\x63onsensus_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\"\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x19\n\x17MsgCreateClientResponse\"z\n\x0fMsgUpdateClient\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12$\n\x06header\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x19\n\x17MsgUpdateClientResponse\"\xf5\x02\n\x10MsgUpgradeClient\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x43\n\x0c\x63lient_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\x12I\n\x0f\x63onsensus_state\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\"\x12=\n\x14proof_upgrade_client\x18\x04 \x01(\x0c\x42\x1f\xf2\xde\x1f\x1byaml:\"proof_upgrade_client\"\x12O\n\x1dproof_upgrade_consensus_state\x18\x05 \x01(\x0c\x42(\xf2\xde\x1f$yaml:\"proof_upgrade_consensus_state\"\x12\x0e\n\x06signer\x18\x06 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1a\n\x18MsgUpgradeClientResponse\"\x86\x01\n\x15MsgSubmitMisbehaviour\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12*\n\x0cmisbehaviour\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0e\n\x06signer\x18\x03 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1f\n\x1dMsgSubmitMisbehaviourResponse2\xa2\x03\n\x03Msg\x12`\n\x0c\x43reateClient\x12#.ibc.core.client.v1.MsgCreateClient\x1a+.ibc.core.client.v1.MsgCreateClientResponse\x12`\n\x0cUpdateClient\x12#.ibc.core.client.v1.MsgUpdateClient\x1a+.ibc.core.client.v1.MsgUpdateClientResponse\x12\x63\n\rUpgradeClient\x12$.ibc.core.client.v1.MsgUpgradeClient\x1a,.ibc.core.client.v1.MsgUpgradeClientResponse\x12r\n\x12SubmitMisbehaviour\x12).ibc.core.client.v1.MsgSubmitMisbehaviour\x1a\x31.ibc.core.client.v1.MsgSubmitMisbehaviourResponseB7Z5github.com/cosmos/ibc-go/modules/core/02-client/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/core/client/v1/tx_pb2.pyi b/pyband/proto/ibc/core/client/v1/tx_pb2.pyi deleted file mode 100644 index 3baf881..0000000 --- a/pyband/proto/ibc/core/client/v1/tx_pb2.pyi +++ /dev/null @@ -1,137 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgCreateClient(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_STATE_FIELD_NUMBER: builtins.int - CONSENSUS_STATE_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - signer: typing.Text = ... - - @property - def client_state(self) -> google.protobuf.any_pb2.Any: ... - - @property - def consensus_state(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state",u"signer",b"signer"]) -> None: ... -global___MsgCreateClient = MsgCreateClient - -class MsgCreateClientResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgCreateClientResponse = MsgCreateClientResponse - -class MsgUpdateClient(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - HEADER_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - signer: typing.Text = ... - - @property - def header(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - header : typing.Optional[google.protobuf.any_pb2.Any] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"header",b"header"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"header",b"header",u"signer",b"signer"]) -> None: ... -global___MsgUpdateClient = MsgUpdateClient - -class MsgUpdateClientResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgUpdateClientResponse = MsgUpdateClientResponse - -class MsgUpgradeClient(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - CLIENT_STATE_FIELD_NUMBER: builtins.int - CONSENSUS_STATE_FIELD_NUMBER: builtins.int - PROOF_UPGRADE_CLIENT_FIELD_NUMBER: builtins.int - PROOF_UPGRADE_CONSENSUS_STATE_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - proof_upgrade_client: builtins.bytes = ... - proof_upgrade_consensus_state: builtins.bytes = ... - signer: typing.Text = ... - - @property - def client_state(self) -> google.protobuf.any_pb2.Any: ... - - @property - def consensus_state(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - proof_upgrade_client : builtins.bytes = ..., - proof_upgrade_consensus_state : builtins.bytes = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state",u"consensus_state",b"consensus_state",u"proof_upgrade_client",b"proof_upgrade_client",u"proof_upgrade_consensus_state",b"proof_upgrade_consensus_state",u"signer",b"signer"]) -> None: ... -global___MsgUpgradeClient = MsgUpgradeClient - -class MsgUpgradeClientResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgUpgradeClientResponse = MsgUpgradeClientResponse - -class MsgSubmitMisbehaviour(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - MISBEHAVIOUR_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - signer: typing.Text = ... - - @property - def misbehaviour(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - misbehaviour : typing.Optional[google.protobuf.any_pb2.Any] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"misbehaviour",b"misbehaviour"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"misbehaviour",b"misbehaviour",u"signer",b"signer"]) -> None: ... -global___MsgSubmitMisbehaviour = MsgSubmitMisbehaviour - -class MsgSubmitMisbehaviourResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgSubmitMisbehaviourResponse = MsgSubmitMisbehaviourResponse diff --git a/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi deleted file mode 100644 index 0db1d3b..0000000 --- a/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - CreateClient:grpc.UnaryUnaryMultiCallable[ - global___MsgCreateClient, - global___MsgCreateClientResponse] = ... - - UpdateClient:grpc.UnaryUnaryMultiCallable[ - global___MsgUpdateClient, - global___MsgUpdateClientResponse] = ... - - UpgradeClient:grpc.UnaryUnaryMultiCallable[ - global___MsgUpgradeClient, - global___MsgUpgradeClientResponse] = ... - - SubmitMisbehaviour:grpc.UnaryUnaryMultiCallable[ - global___MsgSubmitMisbehaviour, - global___MsgSubmitMisbehaviourResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def CreateClient(self, - request: global___MsgCreateClient, - context: grpc.ServicerContext, - ) -> global___MsgCreateClientResponse: ... - - @abc.abstractmethod - def UpdateClient(self, - request: global___MsgUpdateClient, - context: grpc.ServicerContext, - ) -> global___MsgUpdateClientResponse: ... - - @abc.abstractmethod - def UpgradeClient(self, - request: global___MsgUpgradeClient, - context: grpc.ServicerContext, - ) -> global___MsgUpgradeClientResponse: ... - - @abc.abstractmethod - def SubmitMisbehaviour(self, - request: global___MsgSubmitMisbehaviour, - context: grpc.ServicerContext, - ) -> global___MsgSubmitMisbehaviourResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/commitment/v1/commitment_pb2.py b/pyband/proto/ibc/core/commitment/v1/commitment_pb2.py index 4bb44e6..50e45ac 100644 --- a/pyband/proto/ibc/core/commitment/v1/commitment_pb2.py +++ b/pyband/proto/ibc/core/commitment/v1/commitment_pb2.py @@ -19,9 +19,9 @@ name='ibc/core/commitment/v1/commitment.proto', package='ibc.core.commitment.v1', syntax='proto3', - serialized_options=b'Z;github.com/cosmos/cosmos-sdk/x/ibc/core/23-commitment/types', + serialized_options=b'Z9github.com/cosmos/ibc-go/modules/core/23-commitment/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\'ibc/core/commitment/v1/commitment.proto\x12\x16ibc.core.commitment.v1\x1a\x14gogoproto/gogo.proto\x1a\x13\x63onfio/proofs.proto\" \n\nMerkleRoot\x12\x0c\n\x04hash\x18\x01 \x01(\x0c:\x04\x88\xa0\x1f\x00\"9\n\x0cMerklePrefix\x12)\n\nkey_prefix\x18\x01 \x01(\x0c\x42\x15\xf2\xde\x1f\x11yaml:\"key_prefix\"\"9\n\nMerklePath\x12%\n\x08key_path\x18\x01 \x03(\tB\x13\xf2\xde\x1f\x0fyaml:\"key_path\":\x04\x98\xa0\x1f\x00\"5\n\x0bMerkleProof\x12&\n\x06proofs\x18\x01 \x03(\x0b\x32\x16.ics23.CommitmentProofB=Z;github.com/cosmos/cosmos-sdk/x/ibc/core/23-commitment/typesb\x06proto3' + serialized_pb=b'\n\'ibc/core/commitment/v1/commitment.proto\x12\x16ibc.core.commitment.v1\x1a\x14gogoproto/gogo.proto\x1a\x13\x63onfio/proofs.proto\" \n\nMerkleRoot\x12\x0c\n\x04hash\x18\x01 \x01(\x0c:\x04\x88\xa0\x1f\x00\"9\n\x0cMerklePrefix\x12)\n\nkey_prefix\x18\x01 \x01(\x0c\x42\x15\xf2\xde\x1f\x11yaml:\"key_prefix\"\"9\n\nMerklePath\x12%\n\x08key_path\x18\x01 \x03(\tB\x13\xf2\xde\x1f\x0fyaml:\"key_path\":\x04\x98\xa0\x1f\x00\"5\n\x0bMerkleProof\x12&\n\x06proofs\x18\x01 \x03(\x0b\x32\x16.ics23.CommitmentProofB;Z9github.com/cosmos/ibc-go/modules/core/23-commitment/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,confio_dot_proofs__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi b/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi deleted file mode 100644 index d073a16..0000000 --- a/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi +++ /dev/null @@ -1,65 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import confio.proofs_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MerkleRoot(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HASH_FIELD_NUMBER: builtins.int - hash: builtins.bytes = ... - - def __init__(self, - *, - hash : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... -global___MerkleRoot = MerkleRoot - -class MerklePrefix(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_PREFIX_FIELD_NUMBER: builtins.int - key_prefix: builtins.bytes = ... - - def __init__(self, - *, - key_prefix : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key_prefix",b"key_prefix"]) -> None: ... -global___MerklePrefix = MerklePrefix - -class MerklePath(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_PATH_FIELD_NUMBER: builtins.int - - @property - def key_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - key_path : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key_path",b"key_path"]) -> None: ... -global___MerklePath = MerklePath - -class MerkleProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROOFS_FIELD_NUMBER: builtins.int - - @property - def proofs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[confio.proofs_pb2.CommitmentProof]: ... - - def __init__(self, - *, - proofs : typing.Optional[typing.Iterable[confio.proofs_pb2.CommitmentProof]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"proofs",b"proofs"]) -> None: ... -global___MerkleProof = MerkleProof diff --git a/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi b/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi deleted file mode 100644 index b3cc64e..0000000 --- a/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .commitment_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/connection_pb2.py b/pyband/proto/ibc/core/connection/v1/connection_pb2.py index 5f527ac..917f3a0 100644 --- a/pyband/proto/ibc/core/connection/v1/connection_pb2.py +++ b/pyband/proto/ibc/core/connection/v1/connection_pb2.py @@ -20,9 +20,9 @@ name='ibc/core/connection/v1/connection.proto', package='ibc.core.connection.v1', syntax='proto3', - serialized_options=b'Z;github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types', + serialized_options=b'Z9github.com/cosmos/ibc-go/modules/core/03-connection/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\'ibc/core/connection/v1/connection.proto\x12\x16ibc.core.connection.v1\x1a\x14gogoproto/gogo.proto\x1a\'ibc/core/commitment/v1/commitment.proto\"\x90\x02\n\rConnectionEnd\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x31\n\x08versions\x18\x02 \x03(\x0b\x32\x1f.ibc.core.connection.v1.Version\x12,\n\x05state\x18\x03 \x01(\x0e\x32\x1d.ibc.core.connection.v1.State\x12@\n\x0c\x63ounterparty\x18\x04 \x01(\x0b\x32$.ibc.core.connection.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12-\n\x0c\x64\x65lay_period\x18\x05 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"delay_period\":\x04\x88\xa0\x1f\x00\"\xb2\x02\n\x14IdentifiedConnection\x12\x19\n\x02id\x18\x01 \x01(\tB\r\xf2\xde\x1f\tyaml:\"id\"\x12\'\n\tclient_id\x18\x02 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x31\n\x08versions\x18\x03 \x03(\x0b\x32\x1f.ibc.core.connection.v1.Version\x12,\n\x05state\x18\x04 \x01(\x0e\x32\x1d.ibc.core.connection.v1.State\x12@\n\x0c\x63ounterparty\x18\x05 \x01(\x0b\x32$.ibc.core.connection.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12-\n\x0c\x64\x65lay_period\x18\x06 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"delay_period\":\x04\x88\xa0\x1f\x00\"\xaa\x01\n\x0c\x43ounterparty\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12/\n\rconnection_id\x18\x02 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\x12:\n\x06prefix\x18\x03 \x01(\x0b\x32$.ibc.core.commitment.v1.MerklePrefixB\x04\xc8\xde\x1f\x00:\x04\x88\xa0\x1f\x00\"\x1c\n\x0b\x43lientPaths\x12\r\n\x05paths\x18\x01 \x03(\t\"I\n\x0f\x43onnectionPaths\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\r\n\x05paths\x18\x02 \x03(\t\"5\n\x07Version\x12\x12\n\nidentifier\x18\x01 \x01(\t\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x03(\t:\x04\x88\xa0\x1f\x00*\x99\x01\n\x05State\x12\x36\n\x1fSTATE_UNINITIALIZED_UNSPECIFIED\x10\x00\x1a\x11\x8a\x9d \rUNINITIALIZED\x12\x18\n\nSTATE_INIT\x10\x01\x1a\x08\x8a\x9d \x04INIT\x12\x1e\n\rSTATE_TRYOPEN\x10\x02\x1a\x0b\x8a\x9d \x07TRYOPEN\x12\x18\n\nSTATE_OPEN\x10\x03\x1a\x08\x8a\x9d \x04OPEN\x1a\x04\x88\xa3\x1e\x00\x42=Z;github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/typesb\x06proto3' + serialized_pb=b'\n\'ibc/core/connection/v1/connection.proto\x12\x16ibc.core.connection.v1\x1a\x14gogoproto/gogo.proto\x1a\'ibc/core/commitment/v1/commitment.proto\"\x90\x02\n\rConnectionEnd\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x31\n\x08versions\x18\x02 \x03(\x0b\x32\x1f.ibc.core.connection.v1.Version\x12,\n\x05state\x18\x03 \x01(\x0e\x32\x1d.ibc.core.connection.v1.State\x12@\n\x0c\x63ounterparty\x18\x04 \x01(\x0b\x32$.ibc.core.connection.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12-\n\x0c\x64\x65lay_period\x18\x05 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"delay_period\":\x04\x88\xa0\x1f\x00\"\xb2\x02\n\x14IdentifiedConnection\x12\x19\n\x02id\x18\x01 \x01(\tB\r\xf2\xde\x1f\tyaml:\"id\"\x12\'\n\tclient_id\x18\x02 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x31\n\x08versions\x18\x03 \x03(\x0b\x32\x1f.ibc.core.connection.v1.Version\x12,\n\x05state\x18\x04 \x01(\x0e\x32\x1d.ibc.core.connection.v1.State\x12@\n\x0c\x63ounterparty\x18\x05 \x01(\x0b\x32$.ibc.core.connection.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12-\n\x0c\x64\x65lay_period\x18\x06 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"delay_period\":\x04\x88\xa0\x1f\x00\"\xaa\x01\n\x0c\x43ounterparty\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12/\n\rconnection_id\x18\x02 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\x12:\n\x06prefix\x18\x03 \x01(\x0b\x32$.ibc.core.commitment.v1.MerklePrefixB\x04\xc8\xde\x1f\x00:\x04\x88\xa0\x1f\x00\"\x1c\n\x0b\x43lientPaths\x12\r\n\x05paths\x18\x01 \x03(\t\"I\n\x0f\x43onnectionPaths\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\r\n\x05paths\x18\x02 \x03(\t\"5\n\x07Version\x12\x12\n\nidentifier\x18\x01 \x01(\t\x12\x10\n\x08\x66\x65\x61tures\x18\x02 \x03(\t:\x04\x88\xa0\x1f\x00\"U\n\x06Params\x12K\n\x1bmax_expected_time_per_block\x18\x01 \x01(\x04\x42&\xf2\xde\x1f\"yaml:\"max_expected_time_per_block\"*\x99\x01\n\x05State\x12\x36\n\x1fSTATE_UNINITIALIZED_UNSPECIFIED\x10\x00\x1a\x11\x8a\x9d \rUNINITIALIZED\x12\x18\n\nSTATE_INIT\x10\x01\x1a\x08\x8a\x9d \x04INIT\x12\x1e\n\rSTATE_TRYOPEN\x10\x02\x1a\x0b\x8a\x9d \x07TRYOPEN\x12\x18\n\nSTATE_OPEN\x10\x03\x1a\x08\x8a\x9d \x04OPEN\x1a\x04\x88\xa3\x1e\x00\x42;Z9github.com/cosmos/ibc-go/modules/core/03-connection/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,ibc_dot_core_dot_commitment_dot_v1_dot_commitment__pb2.DESCRIPTOR,]) @@ -56,8 +56,8 @@ ], containing_type=None, serialized_options=b'\210\243\036\000', - serialized_start=1048, - serialized_end=1201, + serialized_start=1135, + serialized_end=1288, ) _sym_db.RegisterEnumDescriptor(_STATE) @@ -351,6 +351,38 @@ serialized_end=1045, ) + +_PARAMS = _descriptor.Descriptor( + name='Params', + full_name='ibc.core.connection.v1.Params', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='max_expected_time_per_block', full_name='ibc.core.connection.v1.Params.max_expected_time_per_block', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\"yaml:\"max_expected_time_per_block\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1047, + serialized_end=1132, +) + _CONNECTIONEND.fields_by_name['versions'].message_type = _VERSION _CONNECTIONEND.fields_by_name['state'].enum_type = _STATE _CONNECTIONEND.fields_by_name['counterparty'].message_type = _COUNTERPARTY @@ -364,6 +396,7 @@ DESCRIPTOR.message_types_by_name['ClientPaths'] = _CLIENTPATHS DESCRIPTOR.message_types_by_name['ConnectionPaths'] = _CONNECTIONPATHS DESCRIPTOR.message_types_by_name['Version'] = _VERSION +DESCRIPTOR.message_types_by_name['Params'] = _PARAMS DESCRIPTOR.enum_types_by_name['State'] = _STATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -409,6 +442,13 @@ }) _sym_db.RegisterMessage(Version) +Params = _reflection.GeneratedProtocolMessageType('Params', (_message.Message,), { + 'DESCRIPTOR' : _PARAMS, + '__module__' : 'ibc.core.connection.v1.connection_pb2' + # @@protoc_insertion_point(class_scope:ibc.core.connection.v1.Params) + }) +_sym_db.RegisterMessage(Params) + DESCRIPTOR._options = None _STATE._options = None @@ -431,4 +471,5 @@ _COUNTERPARTY._options = None _CONNECTIONPATHS.fields_by_name['client_id']._options = None _VERSION._options = None +_PARAMS.fields_by_name['max_expected_time_per_block']._options = None # @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi b/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi deleted file mode 100644 index e0258f3..0000000 --- a/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi +++ /dev/null @@ -1,161 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import ibc.core.commitment.v1.commitment_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class State(metaclass=_State): - V = typing.NewType('V', builtins.int) - -global___State = State - -STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) -STATE_INIT = State.V(1) -STATE_TRYOPEN = State.V(2) -STATE_OPEN = State.V(3) - -class _State(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[State.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) - STATE_INIT = State.V(1) - STATE_TRYOPEN = State.V(2) - STATE_OPEN = State.V(3) - -class ConnectionEnd(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - VERSIONS_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - COUNTERPARTY_FIELD_NUMBER: builtins.int - DELAY_PERIOD_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - state: global___State.V = ... - delay_period: builtins.int = ... - - @property - def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Version]: ... - - @property - def counterparty(self) -> global___Counterparty: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - versions : typing.Optional[typing.Iterable[global___Version]] = ..., - state : global___State.V = ..., - counterparty : typing.Optional[global___Counterparty] = ..., - delay_period : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"state",b"state",u"versions",b"versions"]) -> None: ... -global___ConnectionEnd = ConnectionEnd - -class IdentifiedConnection(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ID_FIELD_NUMBER: builtins.int - CLIENT_ID_FIELD_NUMBER: builtins.int - VERSIONS_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - COUNTERPARTY_FIELD_NUMBER: builtins.int - DELAY_PERIOD_FIELD_NUMBER: builtins.int - id: typing.Text = ... - client_id: typing.Text = ... - state: global___State.V = ... - delay_period: builtins.int = ... - - @property - def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Version]: ... - - @property - def counterparty(self) -> global___Counterparty: ... - - def __init__(self, - *, - id : typing.Text = ..., - client_id : typing.Text = ..., - versions : typing.Optional[typing.Iterable[global___Version]] = ..., - state : global___State.V = ..., - counterparty : typing.Optional[global___Counterparty] = ..., - delay_period : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"id",b"id",u"state",b"state",u"versions",b"versions"]) -> None: ... -global___IdentifiedConnection = IdentifiedConnection - -class Counterparty(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - CONNECTION_ID_FIELD_NUMBER: builtins.int - PREFIX_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - connection_id: typing.Text = ... - - @property - def prefix(self) -> ibc.core.commitment.v1.commitment_pb2.MerklePrefix: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - connection_id : typing.Text = ..., - prefix : typing.Optional[ibc.core.commitment.v1.commitment_pb2.MerklePrefix] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"prefix",b"prefix"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"connection_id",b"connection_id",u"prefix",b"prefix"]) -> None: ... -global___Counterparty = Counterparty - -class ClientPaths(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATHS_FIELD_NUMBER: builtins.int - - @property - def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - paths : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"paths",b"paths"]) -> None: ... -global___ClientPaths = ClientPaths - -class ConnectionPaths(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - PATHS_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - - @property - def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - paths : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"paths",b"paths"]) -> None: ... -global___ConnectionPaths = ConnectionPaths - -class Version(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - IDENTIFIER_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - identifier: typing.Text = ... - - @property - def features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - identifier : typing.Text = ..., - features : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"features",b"features",u"identifier",b"identifier"]) -> None: ... -global___Version = Version diff --git a/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi deleted file mode 100644 index 1c431c3..0000000 --- a/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .connection_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/genesis_pb2.py b/pyband/proto/ibc/core/connection/v1/genesis_pb2.py index bd8f251..cae7e36 100644 --- a/pyband/proto/ibc/core/connection/v1/genesis_pb2.py +++ b/pyband/proto/ibc/core/connection/v1/genesis_pb2.py @@ -19,9 +19,9 @@ name='ibc/core/connection/v1/genesis.proto', package='ibc.core.connection.v1', syntax='proto3', - serialized_options=b'Z;github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types', + serialized_options=b'Z9github.com/cosmos/ibc-go/modules/core/03-connection/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n$ibc/core/connection/v1/genesis.proto\x12\x16ibc.core.connection.v1\x1a\x14gogoproto/gogo.proto\x1a\'ibc/core/connection/v1/connection.proto\"\x90\x02\n\x0cGenesisState\x12G\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32,.ibc.core.connection.v1.IdentifiedConnectionB\x04\xc8\xde\x1f\x00\x12p\n\x17\x63lient_connection_paths\x18\x02 \x03(\x0b\x32\'.ibc.core.connection.v1.ConnectionPathsB&\xc8\xde\x1f\x00\xf2\xde\x1f\x1eyaml:\"client_connection_paths\"\x12\x45\n\x18next_connection_sequence\x18\x03 \x01(\x04\x42#\xf2\xde\x1f\x1fyaml:\"next_connection_sequence\"B=Z;github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/typesb\x06proto3' + serialized_pb=b'\n$ibc/core/connection/v1/genesis.proto\x12\x16ibc.core.connection.v1\x1a\x14gogoproto/gogo.proto\x1a\'ibc/core/connection/v1/connection.proto\"\xc6\x02\n\x0cGenesisState\x12G\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32,.ibc.core.connection.v1.IdentifiedConnectionB\x04\xc8\xde\x1f\x00\x12p\n\x17\x63lient_connection_paths\x18\x02 \x03(\x0b\x32\'.ibc.core.connection.v1.ConnectionPathsB&\xc8\xde\x1f\x00\xf2\xde\x1f\x1eyaml:\"client_connection_paths\"\x12\x45\n\x18next_connection_sequence\x18\x03 \x01(\x04\x42#\xf2\xde\x1f\x1fyaml:\"next_connection_sequence\"\x12\x34\n\x06params\x18\x04 \x01(\x0b\x32\x1e.ibc.core.connection.v1.ParamsB\x04\xc8\xde\x1f\x00\x42;Z9github.com/cosmos/ibc-go/modules/core/03-connection/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2.DESCRIPTOR,]) @@ -57,6 +57,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\362\336\037\037yaml:\"next_connection_sequence\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='params', full_name='ibc.core.connection.v1.GenesisState.params', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -70,11 +77,12 @@ oneofs=[ ], serialized_start=128, - serialized_end=400, + serialized_end=454, ) _GENESISSTATE.fields_by_name['connections'].message_type = ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2._IDENTIFIEDCONNECTION _GENESISSTATE.fields_by_name['client_connection_paths'].message_type = ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2._CONNECTIONPATHS +_GENESISSTATE.fields_by_name['params'].message_type = ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2._PARAMS DESCRIPTOR.message_types_by_name['GenesisState'] = _GENESISSTATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -90,4 +98,5 @@ _GENESISSTATE.fields_by_name['connections']._options = None _GENESISSTATE.fields_by_name['client_connection_paths']._options = None _GENESISSTATE.fields_by_name['next_connection_sequence']._options = None +_GENESISSTATE.fields_by_name['params']._options = None # @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi deleted file mode 100644 index 57d62ee..0000000 --- a/pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi +++ /dev/null @@ -1,35 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.core.connection.v1.connection_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTIONS_FIELD_NUMBER: builtins.int - CLIENT_CONNECTION_PATHS_FIELD_NUMBER: builtins.int - NEXT_CONNECTION_SEQUENCE_FIELD_NUMBER: builtins.int - next_connection_sequence: builtins.int = ... - - @property - def connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]: ... - - @property - def client_connection_paths(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.ConnectionPaths]: ... - - def __init__(self, - *, - connections : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]] = ..., - client_connection_paths : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.ConnectionPaths]] = ..., - next_connection_sequence : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_connection_paths",b"client_connection_paths",u"connections",b"connections",u"next_connection_sequence",b"next_connection_sequence"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/query_pb2.py b/pyband/proto/ibc/core/connection/v1/query_pb2.py index f5d68b3..7ce2591 100644 --- a/pyband/proto/ibc/core/connection/v1/query_pb2.py +++ b/pyband/proto/ibc/core/connection/v1/query_pb2.py @@ -23,9 +23,9 @@ name='ibc/core/connection/v1/query.proto', package='ibc.core.connection.v1', syntax='proto3', - serialized_options=b'Z;github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types', + serialized_options=b'Z9github.com/cosmos/ibc-go/modules/core/03-connection/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\"ibc/core/connection/v1/query.proto\x12\x16ibc.core.connection.v1\x1a\x14gogoproto/gogo.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1fibc/core/client/v1/client.proto\x1a\'ibc/core/connection/v1/connection.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\"/\n\x16QueryConnectionRequest\x12\x15\n\rconnection_id\x18\x01 \x01(\t\"\x9b\x01\n\x17QueryConnectionResponse\x12\x39\n\nconnection\x18\x01 \x01(\x0b\x32%.ibc.core.connection.v1.ConnectionEnd\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"U\n\x17QueryConnectionsRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xcc\x01\n\x18QueryConnectionsResponse\x12\x41\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32,.ibc.core.connection.v1.IdentifiedConnection\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"2\n\x1dQueryClientConnectionsRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\"\x81\x01\n\x1eQueryClientConnectionsResponse\x12\x18\n\x10\x63onnection_paths\x18\x01 \x03(\t\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"T\n!QueryConnectionClientStateRequest\x12/\n\rconnection_id\x18\x01 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\"\xb7\x01\n\"QueryConnectionClientStateResponse\x12J\n\x17identified_client_state\x18\x01 \x01(\x0b\x32).ibc.core.client.v1.IdentifiedClientState\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"\x89\x01\n$QueryConnectionConsensusStateRequest\x12/\n\rconnection_id\x18\x01 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\x12\x17\n\x0frevision_number\x18\x02 \x01(\x04\x12\x17\n\x0frevision_height\x18\x03 \x01(\x04\"\xb0\x01\n%QueryConnectionConsensusStateResponse\x12-\n\x0f\x63onsensus_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12\r\n\x05proof\x18\x03 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\x32\xa9\x08\n\x05Query\x12\xaf\x01\n\nConnection\x12..ibc.core.connection.v1.QueryConnectionRequest\x1a/.ibc.core.connection.v1.QueryConnectionResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/ibc/core/connection/v1beta1/connections/{connection_id}\x12\xa2\x01\n\x0b\x43onnections\x12/.ibc.core.connection.v1.QueryConnectionsRequest\x1a\x30.ibc.core.connection.v1.QueryConnectionsResponse\"0\x82\xd3\xe4\x93\x02*\x12(/ibc/core/connection/v1beta1/connections\x12\xc7\x01\n\x11\x43lientConnections\x12\x35.ibc.core.connection.v1.QueryClientConnectionsRequest\x1a\x36.ibc.core.connection.v1.QueryClientConnectionsResponse\"C\x82\xd3\xe4\x93\x02=\x12;/ibc/core/connection/v1beta1/client_connections/{client_id}\x12\xdd\x01\n\x15\x43onnectionClientState\x12\x39.ibc.core.connection.v1.QueryConnectionClientStateRequest\x1a:.ibc.core.connection.v1.QueryConnectionClientStateResponse\"M\x82\xd3\xe4\x93\x02G\x12\x45/ibc/core/connection/v1beta1/connections/{connection_id}/client_state\x12\x9e\x02\n\x18\x43onnectionConsensusState\x12<.ibc.core.connection.v1.QueryConnectionConsensusStateRequest\x1a=.ibc.core.connection.v1.QueryConnectionConsensusStateResponse\"\x84\x01\x82\xd3\xe4\x93\x02~\x12|/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}B=Z;github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/typesb\x06proto3' + serialized_pb=b'\n\"ibc/core/connection/v1/query.proto\x12\x16ibc.core.connection.v1\x1a\x14gogoproto/gogo.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1fibc/core/client/v1/client.proto\x1a\'ibc/core/connection/v1/connection.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\"/\n\x16QueryConnectionRequest\x12\x15\n\rconnection_id\x18\x01 \x01(\t\"\x9b\x01\n\x17QueryConnectionResponse\x12\x39\n\nconnection\x18\x01 \x01(\x0b\x32%.ibc.core.connection.v1.ConnectionEnd\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"U\n\x17QueryConnectionsRequest\x12:\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequest\"\xcc\x01\n\x18QueryConnectionsResponse\x12\x41\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32,.ibc.core.connection.v1.IdentifiedConnection\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponse\x12\x30\n\x06height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"2\n\x1dQueryClientConnectionsRequest\x12\x11\n\tclient_id\x18\x01 \x01(\t\"\x81\x01\n\x1eQueryClientConnectionsResponse\x12\x18\n\x10\x63onnection_paths\x18\x01 \x03(\t\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"T\n!QueryConnectionClientStateRequest\x12/\n\rconnection_id\x18\x01 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\"\xb7\x01\n\"QueryConnectionClientStateResponse\x12J\n\x17identified_client_state\x18\x01 \x01(\x0b\x32).ibc.core.client.v1.IdentifiedClientState\x12\r\n\x05proof\x18\x02 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\"\x89\x01\n$QueryConnectionConsensusStateRequest\x12/\n\rconnection_id\x18\x01 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\x12\x17\n\x0frevision_number\x18\x02 \x01(\x04\x12\x17\n\x0frevision_height\x18\x03 \x01(\x04\"\xb0\x01\n%QueryConnectionConsensusStateResponse\x12-\n\x0f\x63onsensus_state\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12\r\n\x05proof\x18\x03 \x01(\x0c\x12\x36\n\x0cproof_height\x18\x04 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00\x32\x8f\x08\n\x05Query\x12\xaa\x01\n\nConnection\x12..ibc.core.connection.v1.QueryConnectionRequest\x1a/.ibc.core.connection.v1.QueryConnectionResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/ibc/core/connection/v1/connections/{connection_id}\x12\x9d\x01\n\x0b\x43onnections\x12/.ibc.core.connection.v1.QueryConnectionsRequest\x1a\x30.ibc.core.connection.v1.QueryConnectionsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/ibc/core/connection/v1/connections\x12\xc2\x01\n\x11\x43lientConnections\x12\x35.ibc.core.connection.v1.QueryClientConnectionsRequest\x1a\x36.ibc.core.connection.v1.QueryClientConnectionsResponse\">\x82\xd3\xe4\x93\x02\x38\x12\x36/ibc/core/connection/v1/client_connections/{client_id}\x12\xd8\x01\n\x15\x43onnectionClientState\x12\x39.ibc.core.connection.v1.QueryConnectionClientStateRequest\x1a:.ibc.core.connection.v1.QueryConnectionClientStateResponse\"H\x82\xd3\xe4\x93\x02\x42\x12@/ibc/core/connection/v1/connections/{connection_id}/client_state\x12\x98\x02\n\x18\x43onnectionConsensusState\x12<.ibc.core.connection.v1.QueryConnectionConsensusStateRequest\x1a=.ibc.core.connection.v1.QueryConnectionConsensusStateResponse\"\x7f\x82\xd3\xe4\x93\x02y\x12w/ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}B;Z9github.com/cosmos/ibc-go/modules/core/03-connection/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) @@ -553,7 +553,7 @@ serialized_options=None, create_key=_descriptor._internal_create_key, serialized_start=1536, - serialized_end=2601, + serialized_end=2575, methods=[ _descriptor.MethodDescriptor( name='Connection', @@ -562,7 +562,7 @@ containing_service=None, input_type=_QUERYCONNECTIONREQUEST, output_type=_QUERYCONNECTIONRESPONSE, - serialized_options=b'\202\323\344\223\002:\0228/ibc/core/connection/v1beta1/connections/{connection_id}', + serialized_options=b'\202\323\344\223\0025\0223/ibc/core/connection/v1/connections/{connection_id}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -572,7 +572,7 @@ containing_service=None, input_type=_QUERYCONNECTIONSREQUEST, output_type=_QUERYCONNECTIONSRESPONSE, - serialized_options=b'\202\323\344\223\002*\022(/ibc/core/connection/v1beta1/connections', + serialized_options=b'\202\323\344\223\002%\022#/ibc/core/connection/v1/connections', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -582,7 +582,7 @@ containing_service=None, input_type=_QUERYCLIENTCONNECTIONSREQUEST, output_type=_QUERYCLIENTCONNECTIONSRESPONSE, - serialized_options=b'\202\323\344\223\002=\022;/ibc/core/connection/v1beta1/client_connections/{client_id}', + serialized_options=b'\202\323\344\223\0028\0226/ibc/core/connection/v1/client_connections/{client_id}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -592,7 +592,7 @@ containing_service=None, input_type=_QUERYCONNECTIONCLIENTSTATEREQUEST, output_type=_QUERYCONNECTIONCLIENTSTATERESPONSE, - serialized_options=b'\202\323\344\223\002G\022E/ibc/core/connection/v1beta1/connections/{connection_id}/client_state', + serialized_options=b'\202\323\344\223\002B\022@/ibc/core/connection/v1/connections/{connection_id}/client_state', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( @@ -602,7 +602,7 @@ containing_service=None, input_type=_QUERYCONNECTIONCONSENSUSSTATEREQUEST, output_type=_QUERYCONNECTIONCONSENSUSSTATERESPONSE, - serialized_options=b'\202\323\344\223\002~\022|/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}', + serialized_options=b'\202\323\344\223\002y\022w/ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}', create_key=_descriptor._internal_create_key, ), ]) diff --git a/pyband/proto/ibc/core/connection/v1/query_pb2.pyi b/pyband/proto/ibc/core/connection/v1/query_pb2.pyi deleted file mode 100644 index 59342c7..0000000 --- a/pyband/proto/ibc/core/connection/v1/query_pb2.pyi +++ /dev/null @@ -1,205 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.query.v1beta1.pagination_pb2 -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.core.client.v1.client_pb2 -import ibc.core.connection.v1.connection_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class QueryConnectionRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTION_ID_FIELD_NUMBER: builtins.int - connection_id: typing.Text = ... - - def __init__(self, - *, - connection_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id"]) -> None: ... -global___QueryConnectionRequest = QueryConnectionRequest - -class QueryConnectionResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTION_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - proof: builtins.bytes = ... - - @property - def connection(self) -> ibc.core.connection.v1.connection_pb2.ConnectionEnd: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - connection : typing.Optional[ibc.core.connection.v1.connection_pb2.ConnectionEnd] = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryConnectionResponse = QueryConnectionResponse - -class QueryConnectionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PAGINATION_FIELD_NUMBER: builtins.int - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... - - def __init__(self, - *, - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... -global___QueryConnectionsRequest = QueryConnectionsRequest - -class QueryConnectionsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTIONS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - - @property - def connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]: ... - - @property - def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... - - @property - def height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - connections : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]] = ..., - pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., - height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connections",b"connections",u"height",b"height",u"pagination",b"pagination"]) -> None: ... -global___QueryConnectionsResponse = QueryConnectionsResponse - -class QueryClientConnectionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - - def __init__(self, - *, - client_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id"]) -> None: ... -global___QueryClientConnectionsRequest = QueryClientConnectionsRequest - -class QueryClientConnectionsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTION_PATHS_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - - @property - def connection_paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - proof: builtins.bytes = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - connection_paths : typing.Optional[typing.Iterable[typing.Text]] = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection_paths",b"connection_paths",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryClientConnectionsResponse = QueryClientConnectionsResponse - -class QueryConnectionClientStateRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTION_ID_FIELD_NUMBER: builtins.int - connection_id: typing.Text = ... - - def __init__(self, - *, - connection_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id"]) -> None: ... -global___QueryConnectionClientStateRequest = QueryConnectionClientStateRequest - -class QueryConnectionClientStateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - IDENTIFIED_CLIENT_STATE_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - proof: builtins.bytes = ... - - @property - def identified_client_state(self) -> ibc.core.client.v1.client_pb2.IdentifiedClientState: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - identified_client_state : typing.Optional[ibc.core.client.v1.client_pb2.IdentifiedClientState] = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryConnectionClientStateResponse = QueryConnectionClientStateResponse - -class QueryConnectionConsensusStateRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTION_ID_FIELD_NUMBER: builtins.int - REVISION_NUMBER_FIELD_NUMBER: builtins.int - REVISION_HEIGHT_FIELD_NUMBER: builtins.int - connection_id: typing.Text = ... - revision_number: builtins.int = ... - revision_height: builtins.int = ... - - def __init__(self, - *, - connection_id : typing.Text = ..., - revision_number : builtins.int = ..., - revision_height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... -global___QueryConnectionConsensusStateRequest = QueryConnectionConsensusStateRequest - -class QueryConnectionConsensusStateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONSENSUS_STATE_FIELD_NUMBER: builtins.int - CLIENT_ID_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - proof: builtins.bytes = ... - - @property - def consensus_state(self) -> google.protobuf.any_pb2.Any: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - client_id : typing.Text = ..., - proof : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... -global___QueryConnectionConsensusStateResponse = QueryConnectionConsensusStateResponse diff --git a/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi deleted file mode 100644 index 2de1544..0000000 --- a/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi +++ /dev/null @@ -1,64 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Connection:grpc.UnaryUnaryMultiCallable[ - global___QueryConnectionRequest, - global___QueryConnectionResponse] = ... - - Connections:grpc.UnaryUnaryMultiCallable[ - global___QueryConnectionsRequest, - global___QueryConnectionsResponse] = ... - - ClientConnections:grpc.UnaryUnaryMultiCallable[ - global___QueryClientConnectionsRequest, - global___QueryClientConnectionsResponse] = ... - - ConnectionClientState:grpc.UnaryUnaryMultiCallable[ - global___QueryConnectionClientStateRequest, - global___QueryConnectionClientStateResponse] = ... - - ConnectionConsensusState:grpc.UnaryUnaryMultiCallable[ - global___QueryConnectionConsensusStateRequest, - global___QueryConnectionConsensusStateResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Connection(self, - request: global___QueryConnectionRequest, - context: grpc.ServicerContext, - ) -> global___QueryConnectionResponse: ... - - @abc.abstractmethod - def Connections(self, - request: global___QueryConnectionsRequest, - context: grpc.ServicerContext, - ) -> global___QueryConnectionsResponse: ... - - @abc.abstractmethod - def ClientConnections(self, - request: global___QueryClientConnectionsRequest, - context: grpc.ServicerContext, - ) -> global___QueryClientConnectionsResponse: ... - - @abc.abstractmethod - def ConnectionClientState(self, - request: global___QueryConnectionClientStateRequest, - context: grpc.ServicerContext, - ) -> global___QueryConnectionClientStateResponse: ... - - @abc.abstractmethod - def ConnectionConsensusState(self, - request: global___QueryConnectionConsensusStateRequest, - context: grpc.ServicerContext, - ) -> global___QueryConnectionConsensusStateResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/connection/v1/tx_pb2.py b/pyband/proto/ibc/core/connection/v1/tx_pb2.py index ae32559..1b888ad 100644 --- a/pyband/proto/ibc/core/connection/v1/tx_pb2.py +++ b/pyband/proto/ibc/core/connection/v1/tx_pb2.py @@ -21,9 +21,9 @@ name='ibc/core/connection/v1/tx.proto', package='ibc.core.connection.v1', syntax='proto3', - serialized_options=b'Z;github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/types', + serialized_options=b'Z9github.com/cosmos/ibc-go/modules/core/03-connection/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1fibc/core/connection/v1/tx.proto\x12\x16ibc.core.connection.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1fibc/core/client/v1/client.proto\x1a\'ibc/core/connection/v1/connection.proto\"\xfd\x01\n\x15MsgConnectionOpenInit\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12@\n\x0c\x63ounterparty\x18\x02 \x01(\x0b\x32$.ibc.core.connection.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12\x30\n\x07version\x18\x03 \x01(\x0b\x32\x1f.ibc.core.connection.v1.Version\x12-\n\x0c\x64\x65lay_period\x18\x04 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"delay_period\"\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1f\n\x1dMsgConnectionOpenInitResponse\"\xe9\x05\n\x14MsgConnectionOpenTry\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x41\n\x16previous_connection_id\x18\x02 \x01(\tB!\xf2\xde\x1f\x1dyaml:\"previous_connection_id\"\x12\x43\n\x0c\x63lient_state\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\x12@\n\x0c\x63ounterparty\x18\x04 \x01(\x0b\x32$.ibc.core.connection.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12-\n\x0c\x64\x65lay_period\x18\x05 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"delay_period\"\x12`\n\x15\x63ounterparty_versions\x18\x06 \x03(\x0b\x32\x1f.ibc.core.connection.v1.VersionB \xf2\xde\x1f\x1cyaml:\"counterparty_versions\"\x12M\n\x0cproof_height\x18\x07 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12)\n\nproof_init\x18\x08 \x01(\x0c\x42\x15\xf2\xde\x1f\x11yaml:\"proof_init\"\x12-\n\x0cproof_client\x18\t \x01(\x0c\x42\x17\xf2\xde\x1f\x13yaml:\"proof_client\"\x12\x33\n\x0fproof_consensus\x18\n \x01(\x0c\x42\x1a\xf2\xde\x1f\x16yaml:\"proof_consensus\"\x12U\n\x10\x63onsensus_height\x18\x0b \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1f\xf2\xde\x1f\x17yaml:\"consensus_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x0c \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1e\n\x1cMsgConnectionOpenTryResponse\"\xd6\x04\n\x14MsgConnectionOpenAck\x12/\n\rconnection_id\x18\x01 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\x12I\n\x1a\x63ounterparty_connection_id\x18\x02 \x01(\tB%\xf2\xde\x1f!yaml:\"counterparty_connection_id\"\x12\x30\n\x07version\x18\x03 \x01(\x0b\x32\x1f.ibc.core.connection.v1.Version\x12\x43\n\x0c\x63lient_state\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\x12M\n\x0cproof_height\x18\x05 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\'\n\tproof_try\x18\x06 \x01(\x0c\x42\x14\xf2\xde\x1f\x10yaml:\"proof_try\"\x12-\n\x0cproof_client\x18\x07 \x01(\x0c\x42\x17\xf2\xde\x1f\x13yaml:\"proof_client\"\x12\x33\n\x0fproof_consensus\x18\x08 \x01(\x0c\x42\x1a\xf2\xde\x1f\x16yaml:\"proof_consensus\"\x12U\n\x10\x63onsensus_height\x18\t \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1f\xf2\xde\x1f\x17yaml:\"consensus_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\n \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1e\n\x1cMsgConnectionOpenAckResponse\"\xdd\x01\n\x18MsgConnectionOpenConfirm\x12/\n\rconnection_id\x18\x01 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\x12\'\n\tproof_ack\x18\x02 \x01(\x0c\x42\x14\xf2\xde\x1f\x10yaml:\"proof_ack\"\x12M\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x04 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\"\n MsgConnectionOpenConfirmResponse2\xf9\x03\n\x03Msg\x12z\n\x12\x43onnectionOpenInit\x12-.ibc.core.connection.v1.MsgConnectionOpenInit\x1a\x35.ibc.core.connection.v1.MsgConnectionOpenInitResponse\x12w\n\x11\x43onnectionOpenTry\x12,.ibc.core.connection.v1.MsgConnectionOpenTry\x1a\x34.ibc.core.connection.v1.MsgConnectionOpenTryResponse\x12w\n\x11\x43onnectionOpenAck\x12,.ibc.core.connection.v1.MsgConnectionOpenAck\x1a\x34.ibc.core.connection.v1.MsgConnectionOpenAckResponse\x12\x83\x01\n\x15\x43onnectionOpenConfirm\x12\x30.ibc.core.connection.v1.MsgConnectionOpenConfirm\x1a\x38.ibc.core.connection.v1.MsgConnectionOpenConfirmResponseB=Z;github.com/cosmos/cosmos-sdk/x/ibc/core/03-connection/typesb\x06proto3' + serialized_pb=b'\n\x1fibc/core/connection/v1/tx.proto\x12\x16ibc.core.connection.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x1fibc/core/client/v1/client.proto\x1a\'ibc/core/connection/v1/connection.proto\"\xfd\x01\n\x15MsgConnectionOpenInit\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12@\n\x0c\x63ounterparty\x18\x02 \x01(\x0b\x32$.ibc.core.connection.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12\x30\n\x07version\x18\x03 \x01(\x0b\x32\x1f.ibc.core.connection.v1.Version\x12-\n\x0c\x64\x65lay_period\x18\x04 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"delay_period\"\x12\x0e\n\x06signer\x18\x05 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1f\n\x1dMsgConnectionOpenInitResponse\"\xe9\x05\n\x14MsgConnectionOpenTry\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x41\n\x16previous_connection_id\x18\x02 \x01(\tB!\xf2\xde\x1f\x1dyaml:\"previous_connection_id\"\x12\x43\n\x0c\x63lient_state\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\x12@\n\x0c\x63ounterparty\x18\x04 \x01(\x0b\x32$.ibc.core.connection.v1.CounterpartyB\x04\xc8\xde\x1f\x00\x12-\n\x0c\x64\x65lay_period\x18\x05 \x01(\x04\x42\x17\xf2\xde\x1f\x13yaml:\"delay_period\"\x12`\n\x15\x63ounterparty_versions\x18\x06 \x03(\x0b\x32\x1f.ibc.core.connection.v1.VersionB \xf2\xde\x1f\x1cyaml:\"counterparty_versions\"\x12M\n\x0cproof_height\x18\x07 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12)\n\nproof_init\x18\x08 \x01(\x0c\x42\x15\xf2\xde\x1f\x11yaml:\"proof_init\"\x12-\n\x0cproof_client\x18\t \x01(\x0c\x42\x17\xf2\xde\x1f\x13yaml:\"proof_client\"\x12\x33\n\x0fproof_consensus\x18\n \x01(\x0c\x42\x1a\xf2\xde\x1f\x16yaml:\"proof_consensus\"\x12U\n\x10\x63onsensus_height\x18\x0b \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1f\xf2\xde\x1f\x17yaml:\"consensus_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x0c \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1e\n\x1cMsgConnectionOpenTryResponse\"\xd6\x04\n\x14MsgConnectionOpenAck\x12/\n\rconnection_id\x18\x01 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\x12I\n\x1a\x63ounterparty_connection_id\x18\x02 \x01(\tB%\xf2\xde\x1f!yaml:\"counterparty_connection_id\"\x12\x30\n\x07version\x18\x03 \x01(\x0b\x32\x1f.ibc.core.connection.v1.Version\x12\x43\n\x0c\x63lient_state\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\"\x12M\n\x0cproof_height\x18\x05 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\'\n\tproof_try\x18\x06 \x01(\x0c\x42\x14\xf2\xde\x1f\x10yaml:\"proof_try\"\x12-\n\x0cproof_client\x18\x07 \x01(\x0c\x42\x17\xf2\xde\x1f\x13yaml:\"proof_client\"\x12\x33\n\x0fproof_consensus\x18\x08 \x01(\x0c\x42\x1a\xf2\xde\x1f\x16yaml:\"proof_consensus\"\x12U\n\x10\x63onsensus_height\x18\t \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1f\xf2\xde\x1f\x17yaml:\"consensus_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\n \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\x1e\n\x1cMsgConnectionOpenAckResponse\"\xdd\x01\n\x18MsgConnectionOpenConfirm\x12/\n\rconnection_id\x18\x01 \x01(\tB\x18\xf2\xde\x1f\x14yaml:\"connection_id\"\x12\'\n\tproof_ack\x18\x02 \x01(\x0c\x42\x14\xf2\xde\x1f\x10yaml:\"proof_ack\"\x12M\n\x0cproof_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1b\xf2\xde\x1f\x13yaml:\"proof_height\"\xc8\xde\x1f\x00\x12\x0e\n\x06signer\x18\x04 \x01(\t:\x08\xe8\xa0\x1f\x00\x88\xa0\x1f\x00\"\"\n MsgConnectionOpenConfirmResponse2\xf9\x03\n\x03Msg\x12z\n\x12\x43onnectionOpenInit\x12-.ibc.core.connection.v1.MsgConnectionOpenInit\x1a\x35.ibc.core.connection.v1.MsgConnectionOpenInitResponse\x12w\n\x11\x43onnectionOpenTry\x12,.ibc.core.connection.v1.MsgConnectionOpenTry\x1a\x34.ibc.core.connection.v1.MsgConnectionOpenTryResponse\x12w\n\x11\x43onnectionOpenAck\x12,.ibc.core.connection.v1.MsgConnectionOpenAck\x1a\x34.ibc.core.connection.v1.MsgConnectionOpenAckResponse\x12\x83\x01\n\x15\x43onnectionOpenConfirm\x12\x30.ibc.core.connection.v1.MsgConnectionOpenConfirm\x1a\x38.ibc.core.connection.v1.MsgConnectionOpenConfirmResponseB;Z9github.com/cosmos/ibc-go/modules/core/03-connection/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi b/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi deleted file mode 100644 index f6ea99d..0000000 --- a/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi +++ /dev/null @@ -1,200 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import ibc.core.client.v1.client_pb2 -import ibc.core.connection.v1.connection_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgConnectionOpenInit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - COUNTERPARTY_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - DELAY_PERIOD_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - delay_period: builtins.int = ... - signer: typing.Text = ... - - @property - def counterparty(self) -> ibc.core.connection.v1.connection_pb2.Counterparty: ... - - @property - def version(self) -> ibc.core.connection.v1.connection_pb2.Version: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - counterparty : typing.Optional[ibc.core.connection.v1.connection_pb2.Counterparty] = ..., - version : typing.Optional[ibc.core.connection.v1.connection_pb2.Version] = ..., - delay_period : builtins.int = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty",u"version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"signer",b"signer",u"version",b"version"]) -> None: ... -global___MsgConnectionOpenInit = MsgConnectionOpenInit - -class MsgConnectionOpenInitResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgConnectionOpenInitResponse = MsgConnectionOpenInitResponse - -class MsgConnectionOpenTry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - PREVIOUS_CONNECTION_ID_FIELD_NUMBER: builtins.int - CLIENT_STATE_FIELD_NUMBER: builtins.int - COUNTERPARTY_FIELD_NUMBER: builtins.int - DELAY_PERIOD_FIELD_NUMBER: builtins.int - COUNTERPARTY_VERSIONS_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - PROOF_INIT_FIELD_NUMBER: builtins.int - PROOF_CLIENT_FIELD_NUMBER: builtins.int - PROOF_CONSENSUS_FIELD_NUMBER: builtins.int - CONSENSUS_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - previous_connection_id: typing.Text = ... - delay_period: builtins.int = ... - proof_init: builtins.bytes = ... - proof_client: builtins.bytes = ... - proof_consensus: builtins.bytes = ... - signer: typing.Text = ... - - @property - def client_state(self) -> google.protobuf.any_pb2.Any: ... - - @property - def counterparty(self) -> ibc.core.connection.v1.connection_pb2.Counterparty: ... - - @property - def counterparty_versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.Version]: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - @property - def consensus_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - previous_connection_id : typing.Text = ..., - client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - counterparty : typing.Optional[ibc.core.connection.v1.connection_pb2.Counterparty] = ..., - delay_period : builtins.int = ..., - counterparty_versions : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.Version]] = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - proof_init : builtins.bytes = ..., - proof_client : builtins.bytes = ..., - proof_consensus : builtins.bytes = ..., - consensus_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"counterparty",b"counterparty",u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"counterparty",b"counterparty",u"counterparty_versions",b"counterparty_versions",u"delay_period",b"delay_period",u"previous_connection_id",b"previous_connection_id",u"proof_client",b"proof_client",u"proof_consensus",b"proof_consensus",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... -global___MsgConnectionOpenTry = MsgConnectionOpenTry - -class MsgConnectionOpenTryResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgConnectionOpenTryResponse = MsgConnectionOpenTryResponse - -class MsgConnectionOpenAck(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTION_ID_FIELD_NUMBER: builtins.int - COUNTERPARTY_CONNECTION_ID_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - CLIENT_STATE_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - PROOF_TRY_FIELD_NUMBER: builtins.int - PROOF_CLIENT_FIELD_NUMBER: builtins.int - PROOF_CONSENSUS_FIELD_NUMBER: builtins.int - CONSENSUS_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - connection_id: typing.Text = ... - counterparty_connection_id: typing.Text = ... - proof_try: builtins.bytes = ... - proof_client: builtins.bytes = ... - proof_consensus: builtins.bytes = ... - signer: typing.Text = ... - - @property - def version(self) -> ibc.core.connection.v1.connection_pb2.Version: ... - - @property - def client_state(self) -> google.protobuf.any_pb2.Any: ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - @property - def consensus_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - connection_id : typing.Text = ..., - counterparty_connection_id : typing.Text = ..., - version : typing.Optional[ibc.core.connection.v1.connection_pb2.Version] = ..., - client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - proof_try : builtins.bytes = ..., - proof_client : builtins.bytes = ..., - proof_consensus : builtins.bytes = ..., - consensus_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"proof_height",b"proof_height",u"version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"connection_id",b"connection_id",u"consensus_height",b"consensus_height",u"counterparty_connection_id",b"counterparty_connection_id",u"proof_client",b"proof_client",u"proof_consensus",b"proof_consensus",u"proof_height",b"proof_height",u"proof_try",b"proof_try",u"signer",b"signer",u"version",b"version"]) -> None: ... -global___MsgConnectionOpenAck = MsgConnectionOpenAck - -class MsgConnectionOpenAckResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgConnectionOpenAckResponse = MsgConnectionOpenAckResponse - -class MsgConnectionOpenConfirm(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONNECTION_ID_FIELD_NUMBER: builtins.int - PROOF_ACK_FIELD_NUMBER: builtins.int - PROOF_HEIGHT_FIELD_NUMBER: builtins.int - SIGNER_FIELD_NUMBER: builtins.int - connection_id: typing.Text = ... - proof_ack: builtins.bytes = ... - signer: typing.Text = ... - - @property - def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - connection_id : typing.Text = ..., - proof_ack : builtins.bytes = ..., - proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - signer : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id",u"proof_ack",b"proof_ack",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... -global___MsgConnectionOpenConfirm = MsgConnectionOpenConfirm - -class MsgConnectionOpenConfirmResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgConnectionOpenConfirmResponse = MsgConnectionOpenConfirmResponse diff --git a/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.py b/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.py index ed66f02..be67826 100644 --- a/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.py +++ b/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.py @@ -63,7 +63,8 @@ def ConnectionOpenAck(self, request, context): raise NotImplementedError('Method not implemented!') def ConnectionOpenConfirm(self, request, context): - """ConnectionOpenConfirm defines a rpc handler method for MsgConnectionOpenConfirm. + """ConnectionOpenConfirm defines a rpc handler method for + MsgConnectionOpenConfirm. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') diff --git a/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi deleted file mode 100644 index 03fd86a..0000000 --- a/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - ConnectionOpenInit:grpc.UnaryUnaryMultiCallable[ - global___MsgConnectionOpenInit, - global___MsgConnectionOpenInitResponse] = ... - - ConnectionOpenTry:grpc.UnaryUnaryMultiCallable[ - global___MsgConnectionOpenTry, - global___MsgConnectionOpenTryResponse] = ... - - ConnectionOpenAck:grpc.UnaryUnaryMultiCallable[ - global___MsgConnectionOpenAck, - global___MsgConnectionOpenAckResponse] = ... - - ConnectionOpenConfirm:grpc.UnaryUnaryMultiCallable[ - global___MsgConnectionOpenConfirm, - global___MsgConnectionOpenConfirmResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def ConnectionOpenInit(self, - request: global___MsgConnectionOpenInit, - context: grpc.ServicerContext, - ) -> global___MsgConnectionOpenInitResponse: ... - - @abc.abstractmethod - def ConnectionOpenTry(self, - request: global___MsgConnectionOpenTry, - context: grpc.ServicerContext, - ) -> global___MsgConnectionOpenTryResponse: ... - - @abc.abstractmethod - def ConnectionOpenAck(self, - request: global___MsgConnectionOpenAck, - context: grpc.ServicerContext, - ) -> global___MsgConnectionOpenAckResponse: ... - - @abc.abstractmethod - def ConnectionOpenConfirm(self, - request: global___MsgConnectionOpenConfirm, - context: grpc.ServicerContext, - ) -> global___MsgConnectionOpenConfirmResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/types/v1/genesis_pb2.py b/pyband/proto/ibc/core/types/v1/genesis_pb2.py index 462e3b9..f0cac03 100644 --- a/pyband/proto/ibc/core/types/v1/genesis_pb2.py +++ b/pyband/proto/ibc/core/types/v1/genesis_pb2.py @@ -21,9 +21,9 @@ name='ibc/core/types/v1/genesis.proto', package='ibc.core.types.v1', syntax='proto3', - serialized_options=b'Z-github.com/cosmos/cosmos-sdk/x/ibc/core/types', + serialized_options=b'Z+github.com/cosmos/ibc-go/modules/core/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1fibc/core/types/v1/genesis.proto\x12\x11ibc.core.types.v1\x1a\x14gogoproto/gogo.proto\x1a ibc/core/client/v1/genesis.proto\x1a$ibc/core/connection/v1/genesis.proto\x1a!ibc/core/channel/v1/genesis.proto\"\xa8\x02\n\x0cGenesisState\x12W\n\x0e\x63lient_genesis\x18\x01 \x01(\x0b\x32 .ibc.core.client.v1.GenesisStateB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x15yaml:\"client_genesis\"\x12\x63\n\x12\x63onnection_genesis\x18\x02 \x01(\x0b\x32$.ibc.core.connection.v1.GenesisStateB!\xc8\xde\x1f\x00\xf2\xde\x1f\x19yaml:\"connection_genesis\"\x12Z\n\x0f\x63hannel_genesis\x18\x03 \x01(\x0b\x32!.ibc.core.channel.v1.GenesisStateB\x1e\xc8\xde\x1f\x00\xf2\xde\x1f\x16yaml:\"channel_genesis\"B/Z-github.com/cosmos/cosmos-sdk/x/ibc/core/typesb\x06proto3' + serialized_pb=b'\n\x1fibc/core/types/v1/genesis.proto\x12\x11ibc.core.types.v1\x1a\x14gogoproto/gogo.proto\x1a ibc/core/client/v1/genesis.proto\x1a$ibc/core/connection/v1/genesis.proto\x1a!ibc/core/channel/v1/genesis.proto\"\xa8\x02\n\x0cGenesisState\x12W\n\x0e\x63lient_genesis\x18\x01 \x01(\x0b\x32 .ibc.core.client.v1.GenesisStateB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x15yaml:\"client_genesis\"\x12\x63\n\x12\x63onnection_genesis\x18\x02 \x01(\x0b\x32$.ibc.core.connection.v1.GenesisStateB!\xc8\xde\x1f\x00\xf2\xde\x1f\x19yaml:\"connection_genesis\"\x12Z\n\x0f\x63hannel_genesis\x18\x03 \x01(\x0b\x32!.ibc.core.channel.v1.GenesisStateB\x1e\xc8\xde\x1f\x00\xf2\xde\x1f\x16yaml:\"channel_genesis\"B-Z+github.com/cosmos/ibc-go/modules/core/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_genesis__pb2.DESCRIPTOR,ibc_dot_core_dot_connection_dot_v1_dot_genesis__pb2.DESCRIPTOR,ibc_dot_core_dot_channel_dot_v1_dot_genesis__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/core/types/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/types/v1/genesis_pb2.pyi deleted file mode 100644 index 9a346db..0000000 --- a/pyband/proto/ibc/core/types/v1/genesis_pb2.pyi +++ /dev/null @@ -1,39 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import ibc.core.channel.v1.genesis_pb2 -import ibc.core.client.v1.genesis_pb2 -import ibc.core.connection.v1.genesis_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_GENESIS_FIELD_NUMBER: builtins.int - CONNECTION_GENESIS_FIELD_NUMBER: builtins.int - CHANNEL_GENESIS_FIELD_NUMBER: builtins.int - - @property - def client_genesis(self) -> ibc.core.client.v1.genesis_pb2.GenesisState: ... - - @property - def connection_genesis(self) -> ibc.core.connection.v1.genesis_pb2.GenesisState: ... - - @property - def channel_genesis(self) -> ibc.core.channel.v1.genesis_pb2.GenesisState: ... - - def __init__(self, - *, - client_genesis : typing.Optional[ibc.core.client.v1.genesis_pb2.GenesisState] = ..., - connection_genesis : typing.Optional[ibc.core.connection.v1.genesis_pb2.GenesisState] = ..., - channel_genesis : typing.Optional[ibc.core.channel.v1.genesis_pb2.GenesisState] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"channel_genesis",b"channel_genesis",u"client_genesis",b"client_genesis",u"connection_genesis",b"connection_genesis"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_genesis",b"channel_genesis",u"client_genesis",b"client_genesis",u"connection_genesis",b"connection_genesis"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.py b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.py index f3b20db..9bebaa8 100644 --- a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.py +++ b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.py @@ -19,9 +19,9 @@ name='ibc/lightclients/localhost/v1/localhost.proto', package='ibc.lightclients.localhost.v1', syntax='proto3', - serialized_options=b'ZCgithub.com/cosmos/cosmos-sdk/x/ibc/light-clients/09-localhost/types', + serialized_options=b'ZAgithub.com/cosmos/ibc-go/modules/light-clients/09-localhost/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n-ibc/lightclients/localhost/v1/localhost.proto\x12\x1dibc.lightclients.localhost.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fibc/core/client/v1/client.proto\"l\n\x0b\x43lientState\x12%\n\x08\x63hain_id\x18\x01 \x01(\tB\x13\xf2\xde\x1f\x0fyaml:\"chain_id\"\x12\x30\n\x06height\x18\x02 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00:\x04\x88\xa0\x1f\x00\x42\x45ZCgithub.com/cosmos/cosmos-sdk/x/ibc/light-clients/09-localhost/typesb\x06proto3' + serialized_pb=b'\n-ibc/lightclients/localhost/v1/localhost.proto\x12\x1dibc.lightclients.localhost.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fibc/core/client/v1/client.proto\"l\n\x0b\x43lientState\x12%\n\x08\x63hain_id\x18\x01 \x01(\tB\x13\xf2\xde\x1f\x0fyaml:\"chain_id\"\x12\x30\n\x06height\x18\x02 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x04\xc8\xde\x1f\x00:\x04\x88\xa0\x1f\x00\x42\x43ZAgithub.com/cosmos/ibc-go/modules/light-clients/09-localhost/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi deleted file mode 100644 index ee2ac29..0000000 --- a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi +++ /dev/null @@ -1,30 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import ibc.core.client.v1.client_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class ClientState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHAIN_ID_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - chain_id: typing.Text = ... - - @property - def height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - def __init__(self, - *, - chain_id : typing.Text = ..., - height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"height",b"height"]) -> None: ... -global___ClientState = ClientState diff --git a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi deleted file mode 100644 index befdf61..0000000 --- a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .localhost_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.py b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.py index aaee8ca..4eb88d9 100644 --- a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.py +++ b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.py @@ -22,9 +22,9 @@ name='ibc/lightclients/solomachine/v1/solomachine.proto', package='ibc.lightclients.solomachine.v1', syntax='proto3', - serialized_options=b'ZEgithub.com/cosmos/cosmos-sdk/x/ibc/light-clients/06-solomachine/types', + serialized_options=b'Z;github.com/cosmos/ibc-go/modules/core/02-client/legacy/v100', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n1ibc/lightclients/solomachine/v1/solomachine.proto\x12\x1fibc.lightclients.solomachine.v1\x1a\'ibc/core/connection/v1/connection.proto\x1a!ibc/core/channel/v1/channel.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"\x8d\x02\n\x0b\x43lientState\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x33\n\x0f\x66rozen_sequence\x18\x02 \x01(\x04\x42\x1a\xf2\xde\x1f\x16yaml:\"frozen_sequence\"\x12\x64\n\x0f\x63onsensus_state\x18\x03 \x01(\x0b\x32/.ibc.lightclients.solomachine.v1.ConsensusStateB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\"\x12K\n\x1b\x61llow_update_after_proposal\x18\x04 \x01(\x08\x42&\xf2\xde\x1f\"yaml:\"allow_update_after_proposal\":\x04\x88\xa0\x1f\x00\"\x7f\n\x0e\x43onsensusState\x12?\n\npublic_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x15\xf2\xde\x1f\x11yaml:\"public_key\"\x12\x13\n\x0b\x64iversifier\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x04:\x04\x88\xa0\x1f\x00\"\xc4\x01\n\x06Header\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\x11\n\tsignature\x18\x03 \x01(\x0c\x12G\n\x0enew_public_key\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyB\x19\xf2\xde\x1f\x15yaml:\"new_public_key\"\x12\x33\n\x0fnew_diversifier\x18\x05 \x01(\tB\x1a\xf2\xde\x1f\x16yaml:\"new_diversifier\":\x04\x88\xa0\x1f\x00\"\x97\x02\n\x0cMisbehaviour\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x10\n\x08sequence\x18\x02 \x01(\x04\x12\x62\n\rsignature_one\x18\x03 \x01(\x0b\x32\x31.ibc.lightclients.solomachine.v1.SignatureAndDataB\x18\xf2\xde\x1f\x14yaml:\"signature_one\"\x12\x62\n\rsignature_two\x18\x04 \x01(\x0b\x32\x31.ibc.lightclients.solomachine.v1.SignatureAndDataB\x18\xf2\xde\x1f\x14yaml:\"signature_two\":\x04\x88\xa0\x1f\x00\"\xa0\x01\n\x10SignatureAndData\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12R\n\tdata_type\x18\x02 \x01(\x0e\x32).ibc.lightclients.solomachine.v1.DataTypeB\x14\xf2\xde\x1f\x10yaml:\"data_type\"\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x11\n\ttimestamp\x18\x04 \x01(\x04:\x04\x88\xa0\x1f\x00\"f\n\x18TimestampedSignatureData\x12\x31\n\x0esignature_data\x18\x01 \x01(\x0c\x42\x19\xf2\xde\x1f\x15yaml:\"signature_data\"\x12\x11\n\ttimestamp\x18\x02 \x01(\x04:\x04\x88\xa0\x1f\x00\"\xad\x01\n\tSignBytes\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\x13\n\x0b\x64iversifier\x18\x03 \x01(\t\x12R\n\tdata_type\x18\x04 \x01(\x0e\x32).ibc.lightclients.solomachine.v1.DataTypeB\x14\xf2\xde\x1f\x10yaml:\"data_type\"\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c:\x04\x88\xa0\x1f\x00\"\x8a\x01\n\nHeaderData\x12\x41\n\x0bnew_pub_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x16\xf2\xde\x1f\x12yaml:\"new_pub_key\"\x12\x33\n\x0fnew_diversifier\x18\x02 \x01(\tB\x1a\xf2\xde\x1f\x16yaml:\"new_diversifier\":\x04\x88\xa0\x1f\x00\"j\n\x0f\x43lientStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x43\n\x0c\x63lient_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\":\x04\x88\xa0\x1f\x00\"s\n\x12\x43onsensusStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12I\n\x0f\x63onsensus_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\":\x04\x88\xa0\x1f\x00\"d\n\x13\x43onnectionStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x39\n\nconnection\x18\x02 \x01(\x0b\x32%.ibc.core.connection.v1.ConnectionEnd:\x04\x88\xa0\x1f\x00\"U\n\x10\x43hannelStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12-\n\x07\x63hannel\x18\x02 \x01(\x0b\x32\x1c.ibc.core.channel.v1.Channel:\x04\x88\xa0\x1f\x00\"8\n\x14PacketCommitmentData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x12\n\ncommitment\x18\x02 \x01(\x0c\"B\n\x19PacketAcknowledgementData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x17\n\x0f\x61\x63knowledgement\x18\x02 \x01(\x0c\"(\n\x18PacketReceiptAbsenceData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\"U\n\x14NextSequenceRecvData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12/\n\rnext_seq_recv\x18\x02 \x01(\x04\x42\x18\xf2\xde\x1f\x14yaml:\"next_seq_recv\"*\x8c\x04\n\x08\x44\x61taType\x12\x38\n#DATA_TYPE_UNINITIALIZED_UNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bUNSPECIFIED\x12&\n\x16\x44\x41TA_TYPE_CLIENT_STATE\x10\x01\x1a\n\x8a\x9d \x06\x43LIENT\x12,\n\x19\x44\x41TA_TYPE_CONSENSUS_STATE\x10\x02\x1a\r\x8a\x9d \tCONSENSUS\x12.\n\x1a\x44\x41TA_TYPE_CONNECTION_STATE\x10\x03\x1a\x0e\x8a\x9d \nCONNECTION\x12(\n\x17\x44\x41TA_TYPE_CHANNEL_STATE\x10\x04\x1a\x0b\x8a\x9d \x07\x43HANNEL\x12\x35\n\x1b\x44\x41TA_TYPE_PACKET_COMMITMENT\x10\x05\x1a\x14\x8a\x9d \x10PACKETCOMMITMENT\x12?\n DATA_TYPE_PACKET_ACKNOWLEDGEMENT\x10\x06\x1a\x19\x8a\x9d \x15PACKETACKNOWLEDGEMENT\x12>\n DATA_TYPE_PACKET_RECEIPT_ABSENCE\x10\x07\x1a\x18\x8a\x9d \x14PACKETRECEIPTABSENCE\x12\x36\n\x1c\x44\x41TA_TYPE_NEXT_SEQUENCE_RECV\x10\x08\x1a\x14\x8a\x9d \x10NEXTSEQUENCERECV\x12 \n\x10\x44\x41TA_TYPE_HEADER\x10\t\x1a\n\x8a\x9d \x06HEADER\x1a\x04\x88\xa3\x1e\x00\x42GZEgithub.com/cosmos/cosmos-sdk/x/ibc/light-clients/06-solomachine/typesb\x06proto3' + serialized_pb=b'\n1ibc/lightclients/solomachine/v1/solomachine.proto\x12\x1fibc.lightclients.solomachine.v1\x1a\'ibc/core/connection/v1/connection.proto\x1a!ibc/core/channel/v1/channel.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"\x8d\x02\n\x0b\x43lientState\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x33\n\x0f\x66rozen_sequence\x18\x02 \x01(\x04\x42\x1a\xf2\xde\x1f\x16yaml:\"frozen_sequence\"\x12\x64\n\x0f\x63onsensus_state\x18\x03 \x01(\x0b\x32/.ibc.lightclients.solomachine.v1.ConsensusStateB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\"\x12K\n\x1b\x61llow_update_after_proposal\x18\x04 \x01(\x08\x42&\xf2\xde\x1f\"yaml:\"allow_update_after_proposal\":\x04\x88\xa0\x1f\x00\"\x7f\n\x0e\x43onsensusState\x12?\n\npublic_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x15\xf2\xde\x1f\x11yaml:\"public_key\"\x12\x13\n\x0b\x64iversifier\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x04:\x04\x88\xa0\x1f\x00\"\xc4\x01\n\x06Header\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\x11\n\tsignature\x18\x03 \x01(\x0c\x12G\n\x0enew_public_key\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyB\x19\xf2\xde\x1f\x15yaml:\"new_public_key\"\x12\x33\n\x0fnew_diversifier\x18\x05 \x01(\tB\x1a\xf2\xde\x1f\x16yaml:\"new_diversifier\":\x04\x88\xa0\x1f\x00\"\x97\x02\n\x0cMisbehaviour\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x10\n\x08sequence\x18\x02 \x01(\x04\x12\x62\n\rsignature_one\x18\x03 \x01(\x0b\x32\x31.ibc.lightclients.solomachine.v1.SignatureAndDataB\x18\xf2\xde\x1f\x14yaml:\"signature_one\"\x12\x62\n\rsignature_two\x18\x04 \x01(\x0b\x32\x31.ibc.lightclients.solomachine.v1.SignatureAndDataB\x18\xf2\xde\x1f\x14yaml:\"signature_two\":\x04\x88\xa0\x1f\x00\"\xa0\x01\n\x10SignatureAndData\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12R\n\tdata_type\x18\x02 \x01(\x0e\x32).ibc.lightclients.solomachine.v1.DataTypeB\x14\xf2\xde\x1f\x10yaml:\"data_type\"\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x11\n\ttimestamp\x18\x04 \x01(\x04:\x04\x88\xa0\x1f\x00\"f\n\x18TimestampedSignatureData\x12\x31\n\x0esignature_data\x18\x01 \x01(\x0c\x42\x19\xf2\xde\x1f\x15yaml:\"signature_data\"\x12\x11\n\ttimestamp\x18\x02 \x01(\x04:\x04\x88\xa0\x1f\x00\"\xad\x01\n\tSignBytes\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\x13\n\x0b\x64iversifier\x18\x03 \x01(\t\x12R\n\tdata_type\x18\x04 \x01(\x0e\x32).ibc.lightclients.solomachine.v1.DataTypeB\x14\xf2\xde\x1f\x10yaml:\"data_type\"\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c:\x04\x88\xa0\x1f\x00\"\x8a\x01\n\nHeaderData\x12\x41\n\x0bnew_pub_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x16\xf2\xde\x1f\x12yaml:\"new_pub_key\"\x12\x33\n\x0fnew_diversifier\x18\x02 \x01(\tB\x1a\xf2\xde\x1f\x16yaml:\"new_diversifier\":\x04\x88\xa0\x1f\x00\"j\n\x0f\x43lientStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x43\n\x0c\x63lient_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\":\x04\x88\xa0\x1f\x00\"s\n\x12\x43onsensusStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12I\n\x0f\x63onsensus_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\":\x04\x88\xa0\x1f\x00\"d\n\x13\x43onnectionStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x39\n\nconnection\x18\x02 \x01(\x0b\x32%.ibc.core.connection.v1.ConnectionEnd:\x04\x88\xa0\x1f\x00\"U\n\x10\x43hannelStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12-\n\x07\x63hannel\x18\x02 \x01(\x0b\x32\x1c.ibc.core.channel.v1.Channel:\x04\x88\xa0\x1f\x00\"8\n\x14PacketCommitmentData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x12\n\ncommitment\x18\x02 \x01(\x0c\"B\n\x19PacketAcknowledgementData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x17\n\x0f\x61\x63knowledgement\x18\x02 \x01(\x0c\"(\n\x18PacketReceiptAbsenceData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\"U\n\x14NextSequenceRecvData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12/\n\rnext_seq_recv\x18\x02 \x01(\x04\x42\x18\xf2\xde\x1f\x14yaml:\"next_seq_recv\"*\x8c\x04\n\x08\x44\x61taType\x12\x38\n#DATA_TYPE_UNINITIALIZED_UNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bUNSPECIFIED\x12&\n\x16\x44\x41TA_TYPE_CLIENT_STATE\x10\x01\x1a\n\x8a\x9d \x06\x43LIENT\x12,\n\x19\x44\x41TA_TYPE_CONSENSUS_STATE\x10\x02\x1a\r\x8a\x9d \tCONSENSUS\x12.\n\x1a\x44\x41TA_TYPE_CONNECTION_STATE\x10\x03\x1a\x0e\x8a\x9d \nCONNECTION\x12(\n\x17\x44\x41TA_TYPE_CHANNEL_STATE\x10\x04\x1a\x0b\x8a\x9d \x07\x43HANNEL\x12\x35\n\x1b\x44\x41TA_TYPE_PACKET_COMMITMENT\x10\x05\x1a\x14\x8a\x9d \x10PACKETCOMMITMENT\x12?\n DATA_TYPE_PACKET_ACKNOWLEDGEMENT\x10\x06\x1a\x19\x8a\x9d \x15PACKETACKNOWLEDGEMENT\x12>\n DATA_TYPE_PACKET_RECEIPT_ABSENCE\x10\x07\x1a\x18\x8a\x9d \x14PACKETRECEIPTABSENCE\x12\x36\n\x1c\x44\x41TA_TYPE_NEXT_SEQUENCE_RECV\x10\x08\x1a\x14\x8a\x9d \x10NEXTSEQUENCERECV\x12 \n\x10\x44\x41TA_TYPE_HEADER\x10\t\x1a\n\x8a\x9d \x06HEADER\x1a\x04\x88\xa3\x1e\x00\x42=Z;github.com/cosmos/ibc-go/modules/core/02-client/legacy/v100b\x06proto3' , dependencies=[ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2.DESCRIPTOR,ibc_dot_core_dot_channel_dot_v1_dot_channel__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi deleted file mode 100644 index 700ed40..0000000 --- a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi +++ /dev/null @@ -1,349 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.any_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import ibc.core.channel.v1.channel_pb2 -import ibc.core.connection.v1.connection_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class DataType(metaclass=_DataType): - V = typing.NewType('V', builtins.int) - -global___DataType = DataType - -DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) -DATA_TYPE_CLIENT_STATE = DataType.V(1) -DATA_TYPE_CONSENSUS_STATE = DataType.V(2) -DATA_TYPE_CONNECTION_STATE = DataType.V(3) -DATA_TYPE_CHANNEL_STATE = DataType.V(4) -DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) -DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) -DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) -DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) -DATA_TYPE_HEADER = DataType.V(9) - -class _DataType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataType.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) - DATA_TYPE_CLIENT_STATE = DataType.V(1) - DATA_TYPE_CONSENSUS_STATE = DataType.V(2) - DATA_TYPE_CONNECTION_STATE = DataType.V(3) - DATA_TYPE_CHANNEL_STATE = DataType.V(4) - DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) - DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) - DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) - DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) - DATA_TYPE_HEADER = DataType.V(9) - -class ClientState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SEQUENCE_FIELD_NUMBER: builtins.int - FROZEN_SEQUENCE_FIELD_NUMBER: builtins.int - CONSENSUS_STATE_FIELD_NUMBER: builtins.int - ALLOW_UPDATE_AFTER_PROPOSAL_FIELD_NUMBER: builtins.int - sequence: builtins.int = ... - frozen_sequence: builtins.int = ... - allow_update_after_proposal: builtins.bool = ... - - @property - def consensus_state(self) -> global___ConsensusState: ... - - def __init__(self, - *, - sequence : builtins.int = ..., - frozen_sequence : builtins.int = ..., - consensus_state : typing.Optional[global___ConsensusState] = ..., - allow_update_after_proposal : builtins.bool = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"allow_update_after_proposal",b"allow_update_after_proposal",u"consensus_state",b"consensus_state",u"frozen_sequence",b"frozen_sequence",u"sequence",b"sequence"]) -> None: ... -global___ClientState = ClientState - -class ConsensusState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PUBLIC_KEY_FIELD_NUMBER: builtins.int - DIVERSIFIER_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - diversifier: typing.Text = ... - timestamp: builtins.int = ... - - @property - def public_key(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., - diversifier : typing.Text = ..., - timestamp : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"public_key",b"public_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"diversifier",b"diversifier",u"public_key",b"public_key",u"timestamp",b"timestamp"]) -> None: ... -global___ConsensusState = ConsensusState - -class Header(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SEQUENCE_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - SIGNATURE_FIELD_NUMBER: builtins.int - NEW_PUBLIC_KEY_FIELD_NUMBER: builtins.int - NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int - sequence: builtins.int = ... - timestamp: builtins.int = ... - signature: builtins.bytes = ... - new_diversifier: typing.Text = ... - - @property - def new_public_key(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - sequence : builtins.int = ..., - timestamp : builtins.int = ..., - signature : builtins.bytes = ..., - new_public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., - new_diversifier : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"new_public_key",b"new_public_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_public_key",b"new_public_key",u"sequence",b"sequence",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... -global___Header = Header - -class Misbehaviour(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - SEQUENCE_FIELD_NUMBER: builtins.int - SIGNATURE_ONE_FIELD_NUMBER: builtins.int - SIGNATURE_TWO_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - sequence: builtins.int = ... - - @property - def signature_one(self) -> global___SignatureAndData: ... - - @property - def signature_two(self) -> global___SignatureAndData: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - sequence : builtins.int = ..., - signature_one : typing.Optional[global___SignatureAndData] = ..., - signature_two : typing.Optional[global___SignatureAndData] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"sequence",b"sequence",u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> None: ... -global___Misbehaviour = Misbehaviour - -class SignatureAndData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIGNATURE_FIELD_NUMBER: builtins.int - DATA_TYPE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - signature: builtins.bytes = ... - data_type: global___DataType.V = ... - data: builtins.bytes = ... - timestamp: builtins.int = ... - - def __init__(self, - *, - signature : builtins.bytes = ..., - data_type : global___DataType.V = ..., - data : builtins.bytes = ..., - timestamp : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... -global___SignatureAndData = SignatureAndData - -class TimestampedSignatureData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIGNATURE_DATA_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - signature_data: builtins.bytes = ... - timestamp: builtins.int = ... - - def __init__(self, - *, - signature_data : builtins.bytes = ..., - timestamp : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"signature_data",b"signature_data",u"timestamp",b"timestamp"]) -> None: ... -global___TimestampedSignatureData = TimestampedSignatureData - -class SignBytes(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SEQUENCE_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - DIVERSIFIER_FIELD_NUMBER: builtins.int - DATA_TYPE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - sequence: builtins.int = ... - timestamp: builtins.int = ... - diversifier: typing.Text = ... - data_type: global___DataType.V = ... - data: builtins.bytes = ... - - def __init__(self, - *, - sequence : builtins.int = ..., - timestamp : builtins.int = ..., - diversifier : typing.Text = ..., - data_type : global___DataType.V = ..., - data : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"diversifier",b"diversifier",u"sequence",b"sequence",u"timestamp",b"timestamp"]) -> None: ... -global___SignBytes = SignBytes - -class HeaderData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NEW_PUB_KEY_FIELD_NUMBER: builtins.int - NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int - new_diversifier: typing.Text = ... - - @property - def new_pub_key(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - new_pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., - new_diversifier : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"new_pub_key",b"new_pub_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_pub_key",b"new_pub_key"]) -> None: ... -global___HeaderData = HeaderData - -class ClientStateData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - CLIENT_STATE_FIELD_NUMBER: builtins.int - path: builtins.bytes = ... - - @property - def client_state(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - path : builtins.bytes = ..., - client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"path",b"path"]) -> None: ... -global___ClientStateData = ClientStateData - -class ConsensusStateData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - CONSENSUS_STATE_FIELD_NUMBER: builtins.int - path: builtins.bytes = ... - - @property - def consensus_state(self) -> google.protobuf.any_pb2.Any: ... - - def __init__(self, - *, - path : builtins.bytes = ..., - consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"path",b"path"]) -> None: ... -global___ConsensusStateData = ConsensusStateData - -class ConnectionStateData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - CONNECTION_FIELD_NUMBER: builtins.int - path: builtins.bytes = ... - - @property - def connection(self) -> ibc.core.connection.v1.connection_pb2.ConnectionEnd: ... - - def __init__(self, - *, - path : builtins.bytes = ..., - connection : typing.Optional[ibc.core.connection.v1.connection_pb2.ConnectionEnd] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"connection",b"connection"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"path",b"path"]) -> None: ... -global___ConnectionStateData = ConnectionStateData - -class ChannelStateData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - CHANNEL_FIELD_NUMBER: builtins.int - path: builtins.bytes = ... - - @property - def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... - - def __init__(self, - *, - path : builtins.bytes = ..., - channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"path",b"path"]) -> None: ... -global___ChannelStateData = ChannelStateData - -class PacketCommitmentData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - COMMITMENT_FIELD_NUMBER: builtins.int - path: builtins.bytes = ... - commitment: builtins.bytes = ... - - def __init__(self, - *, - path : builtins.bytes = ..., - commitment : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commitment",b"commitment",u"path",b"path"]) -> None: ... -global___PacketCommitmentData = PacketCommitmentData - -class PacketAcknowledgementData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int - path: builtins.bytes = ... - acknowledgement: builtins.bytes = ... - - def __init__(self, - *, - path : builtins.bytes = ..., - acknowledgement : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"path",b"path"]) -> None: ... -global___PacketAcknowledgementData = PacketAcknowledgementData - -class PacketReceiptAbsenceData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - path: builtins.bytes = ... - - def __init__(self, - *, - path : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"path",b"path"]) -> None: ... -global___PacketReceiptAbsenceData = PacketReceiptAbsenceData - -class NextSequenceRecvData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PATH_FIELD_NUMBER: builtins.int - NEXT_SEQ_RECV_FIELD_NUMBER: builtins.int - path: builtins.bytes = ... - next_seq_recv: builtins.int = ... - - def __init__(self, - *, - path : builtins.bytes = ..., - next_seq_recv : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"next_seq_recv",b"next_seq_recv",u"path",b"path"]) -> None: ... -global___NextSequenceRecvData = NextSequenceRecvData diff --git a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi deleted file mode 100644 index 7b3f6d9..0000000 --- a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .solomachine_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.py b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.py new file mode 100644 index 0000000..ec5cc04 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.py @@ -0,0 +1,1002 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: ibc/lightclients/solomachine/v2/solomachine.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from ibc.core.connection.v1 import connection_pb2 as ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2 +from ibc.core.channel.v1 import channel_pb2 as ibc_dot_core_dot_channel_dot_v1_dot_channel__pb2 +from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='ibc/lightclients/solomachine/v2/solomachine.proto', + package='ibc.lightclients.solomachine.v2', + syntax='proto3', + serialized_options=b'ZCgithub.com/cosmos/ibc-go/modules/light-clients/06-solomachine/types', + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n1ibc/lightclients/solomachine/v2/solomachine.proto\x12\x1fibc.lightclients.solomachine.v2\x1a\'ibc/core/connection/v1/connection.proto\x1a!ibc/core/channel/v1/channel.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\"\x81\x02\n\x0b\x43lientState\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\'\n\tis_frozen\x18\x02 \x01(\x08\x42\x14\xf2\xde\x1f\x10yaml:\"is_frozen\"\x12\x64\n\x0f\x63onsensus_state\x18\x03 \x01(\x0b\x32/.ibc.lightclients.solomachine.v2.ConsensusStateB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\"\x12K\n\x1b\x61llow_update_after_proposal\x18\x04 \x01(\x08\x42&\xf2\xde\x1f\"yaml:\"allow_update_after_proposal\":\x04\x88\xa0\x1f\x00\"\x7f\n\x0e\x43onsensusState\x12?\n\npublic_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x15\xf2\xde\x1f\x11yaml:\"public_key\"\x12\x13\n\x0b\x64iversifier\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x04:\x04\x88\xa0\x1f\x00\"\xc4\x01\n\x06Header\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\x11\n\tsignature\x18\x03 \x01(\x0c\x12G\n\x0enew_public_key\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyB\x19\xf2\xde\x1f\x15yaml:\"new_public_key\"\x12\x33\n\x0fnew_diversifier\x18\x05 \x01(\tB\x1a\xf2\xde\x1f\x16yaml:\"new_diversifier\":\x04\x88\xa0\x1f\x00\"\x97\x02\n\x0cMisbehaviour\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12\x10\n\x08sequence\x18\x02 \x01(\x04\x12\x62\n\rsignature_one\x18\x03 \x01(\x0b\x32\x31.ibc.lightclients.solomachine.v2.SignatureAndDataB\x18\xf2\xde\x1f\x14yaml:\"signature_one\"\x12\x62\n\rsignature_two\x18\x04 \x01(\x0b\x32\x31.ibc.lightclients.solomachine.v2.SignatureAndDataB\x18\xf2\xde\x1f\x14yaml:\"signature_two\":\x04\x88\xa0\x1f\x00\"\xa0\x01\n\x10SignatureAndData\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12R\n\tdata_type\x18\x02 \x01(\x0e\x32).ibc.lightclients.solomachine.v2.DataTypeB\x14\xf2\xde\x1f\x10yaml:\"data_type\"\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x11\n\ttimestamp\x18\x04 \x01(\x04:\x04\x88\xa0\x1f\x00\"f\n\x18TimestampedSignatureData\x12\x31\n\x0esignature_data\x18\x01 \x01(\x0c\x42\x19\xf2\xde\x1f\x15yaml:\"signature_data\"\x12\x11\n\ttimestamp\x18\x02 \x01(\x04:\x04\x88\xa0\x1f\x00\"\xad\x01\n\tSignBytes\x12\x10\n\x08sequence\x18\x01 \x01(\x04\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\x13\n\x0b\x64iversifier\x18\x03 \x01(\t\x12R\n\tdata_type\x18\x04 \x01(\x0e\x32).ibc.lightclients.solomachine.v2.DataTypeB\x14\xf2\xde\x1f\x10yaml:\"data_type\"\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c:\x04\x88\xa0\x1f\x00\"\x8a\x01\n\nHeaderData\x12\x41\n\x0bnew_pub_key\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x16\xf2\xde\x1f\x12yaml:\"new_pub_key\"\x12\x33\n\x0fnew_diversifier\x18\x02 \x01(\tB\x1a\xf2\xde\x1f\x16yaml:\"new_diversifier\":\x04\x88\xa0\x1f\x00\"j\n\x0f\x43lientStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x43\n\x0c\x63lient_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x17\xf2\xde\x1f\x13yaml:\"client_state\":\x04\x88\xa0\x1f\x00\"s\n\x12\x43onsensusStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12I\n\x0f\x63onsensus_state\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x1a\xf2\xde\x1f\x16yaml:\"consensus_state\":\x04\x88\xa0\x1f\x00\"d\n\x13\x43onnectionStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x39\n\nconnection\x18\x02 \x01(\x0b\x32%.ibc.core.connection.v1.ConnectionEnd:\x04\x88\xa0\x1f\x00\"U\n\x10\x43hannelStateData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12-\n\x07\x63hannel\x18\x02 \x01(\x0b\x32\x1c.ibc.core.channel.v1.Channel:\x04\x88\xa0\x1f\x00\"8\n\x14PacketCommitmentData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x12\n\ncommitment\x18\x02 \x01(\x0c\"B\n\x19PacketAcknowledgementData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x17\n\x0f\x61\x63knowledgement\x18\x02 \x01(\x0c\"(\n\x18PacketReceiptAbsenceData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\"U\n\x14NextSequenceRecvData\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12/\n\rnext_seq_recv\x18\x02 \x01(\x04\x42\x18\xf2\xde\x1f\x14yaml:\"next_seq_recv\"*\x8c\x04\n\x08\x44\x61taType\x12\x38\n#DATA_TYPE_UNINITIALIZED_UNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bUNSPECIFIED\x12&\n\x16\x44\x41TA_TYPE_CLIENT_STATE\x10\x01\x1a\n\x8a\x9d \x06\x43LIENT\x12,\n\x19\x44\x41TA_TYPE_CONSENSUS_STATE\x10\x02\x1a\r\x8a\x9d \tCONSENSUS\x12.\n\x1a\x44\x41TA_TYPE_CONNECTION_STATE\x10\x03\x1a\x0e\x8a\x9d \nCONNECTION\x12(\n\x17\x44\x41TA_TYPE_CHANNEL_STATE\x10\x04\x1a\x0b\x8a\x9d \x07\x43HANNEL\x12\x35\n\x1b\x44\x41TA_TYPE_PACKET_COMMITMENT\x10\x05\x1a\x14\x8a\x9d \x10PACKETCOMMITMENT\x12?\n DATA_TYPE_PACKET_ACKNOWLEDGEMENT\x10\x06\x1a\x19\x8a\x9d \x15PACKETACKNOWLEDGEMENT\x12>\n DATA_TYPE_PACKET_RECEIPT_ABSENCE\x10\x07\x1a\x18\x8a\x9d \x14PACKETRECEIPTABSENCE\x12\x36\n\x1c\x44\x41TA_TYPE_NEXT_SEQUENCE_RECV\x10\x08\x1a\x14\x8a\x9d \x10NEXTSEQUENCERECV\x12 \n\x10\x44\x41TA_TYPE_HEADER\x10\t\x1a\n\x8a\x9d \x06HEADER\x1a\x04\x88\xa3\x1e\x00\x42\x45ZCgithub.com/cosmos/ibc-go/modules/light-clients/06-solomachine/typesb\x06proto3' + , + dependencies=[ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2.DESCRIPTOR,ibc_dot_core_dot_channel_dot_v1_dot_channel__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) + +_DATATYPE = _descriptor.EnumDescriptor( + name='DataType', + full_name='ibc.lightclients.solomachine.v2.DataType', + filename=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + values=[ + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_UNINITIALIZED_UNSPECIFIED', index=0, number=0, + serialized_options=b'\212\235 \013UNSPECIFIED', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_CLIENT_STATE', index=1, number=1, + serialized_options=b'\212\235 \006CLIENT', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_CONSENSUS_STATE', index=2, number=2, + serialized_options=b'\212\235 \tCONSENSUS', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_CONNECTION_STATE', index=3, number=3, + serialized_options=b'\212\235 \nCONNECTION', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_CHANNEL_STATE', index=4, number=4, + serialized_options=b'\212\235 \007CHANNEL', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_PACKET_COMMITMENT', index=5, number=5, + serialized_options=b'\212\235 \020PACKETCOMMITMENT', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_PACKET_ACKNOWLEDGEMENT', index=6, number=6, + serialized_options=b'\212\235 \025PACKETACKNOWLEDGEMENT', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_PACKET_RECEIPT_ABSENCE', index=7, number=7, + serialized_options=b'\212\235 \024PACKETRECEIPTABSENCE', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_NEXT_SEQUENCE_RECV', index=8, number=8, + serialized_options=b'\212\235 \020NEXTSEQUENCERECV', + type=None, + create_key=_descriptor._internal_create_key), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_HEADER', index=9, number=9, + serialized_options=b'\212\235 \006HEADER', + type=None, + create_key=_descriptor._internal_create_key), + ], + containing_type=None, + serialized_options=b'\210\243\036\000', + serialized_start=2335, + serialized_end=2859, +) +_sym_db.RegisterEnumDescriptor(_DATATYPE) + +DataType = enum_type_wrapper.EnumTypeWrapper(_DATATYPE) +DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0 +DATA_TYPE_CLIENT_STATE = 1 +DATA_TYPE_CONSENSUS_STATE = 2 +DATA_TYPE_CONNECTION_STATE = 3 +DATA_TYPE_CHANNEL_STATE = 4 +DATA_TYPE_PACKET_COMMITMENT = 5 +DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6 +DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7 +DATA_TYPE_NEXT_SEQUENCE_RECV = 8 +DATA_TYPE_HEADER = 9 + + + +_CLIENTSTATE = _descriptor.Descriptor( + name='ClientState', + full_name='ibc.lightclients.solomachine.v2.ClientState', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='sequence', full_name='ibc.lightclients.solomachine.v2.ClientState.sequence', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='is_frozen', full_name='ibc.lightclients.solomachine.v2.ClientState.is_frozen', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\020yaml:\"is_frozen\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='consensus_state', full_name='ibc.lightclients.solomachine.v2.ClientState.consensus_state', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\026yaml:\"consensus_state\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='allow_update_after_proposal', full_name='ibc.lightclients.solomachine.v2.ClientState.allow_update_after_proposal', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\"yaml:\"allow_update_after_proposal\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=212, + serialized_end=469, +) + + +_CONSENSUSSTATE = _descriptor.Descriptor( + name='ConsensusState', + full_name='ibc.lightclients.solomachine.v2.ConsensusState', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='public_key', full_name='ibc.lightclients.solomachine.v2.ConsensusState.public_key', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\021yaml:\"public_key\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='diversifier', full_name='ibc.lightclients.solomachine.v2.ConsensusState.diversifier', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='ibc.lightclients.solomachine.v2.ConsensusState.timestamp', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=471, + serialized_end=598, +) + + +_HEADER = _descriptor.Descriptor( + name='Header', + full_name='ibc.lightclients.solomachine.v2.Header', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='sequence', full_name='ibc.lightclients.solomachine.v2.Header.sequence', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='ibc.lightclients.solomachine.v2.Header.timestamp', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='signature', full_name='ibc.lightclients.solomachine.v2.Header.signature', index=2, + number=3, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='new_public_key', full_name='ibc.lightclients.solomachine.v2.Header.new_public_key', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\025yaml:\"new_public_key\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='new_diversifier', full_name='ibc.lightclients.solomachine.v2.Header.new_diversifier', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\026yaml:\"new_diversifier\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=601, + serialized_end=797, +) + + +_MISBEHAVIOUR = _descriptor.Descriptor( + name='Misbehaviour', + full_name='ibc.lightclients.solomachine.v2.Misbehaviour', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='client_id', full_name='ibc.lightclients.solomachine.v2.Misbehaviour.client_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\020yaml:\"client_id\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='sequence', full_name='ibc.lightclients.solomachine.v2.Misbehaviour.sequence', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='signature_one', full_name='ibc.lightclients.solomachine.v2.Misbehaviour.signature_one', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\024yaml:\"signature_one\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='signature_two', full_name='ibc.lightclients.solomachine.v2.Misbehaviour.signature_two', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\024yaml:\"signature_two\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=800, + serialized_end=1079, +) + + +_SIGNATUREANDDATA = _descriptor.Descriptor( + name='SignatureAndData', + full_name='ibc.lightclients.solomachine.v2.SignatureAndData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='signature', full_name='ibc.lightclients.solomachine.v2.SignatureAndData.signature', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='data_type', full_name='ibc.lightclients.solomachine.v2.SignatureAndData.data_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\020yaml:\"data_type\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='data', full_name='ibc.lightclients.solomachine.v2.SignatureAndData.data', index=2, + number=3, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='ibc.lightclients.solomachine.v2.SignatureAndData.timestamp', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1082, + serialized_end=1242, +) + + +_TIMESTAMPEDSIGNATUREDATA = _descriptor.Descriptor( + name='TimestampedSignatureData', + full_name='ibc.lightclients.solomachine.v2.TimestampedSignatureData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='signature_data', full_name='ibc.lightclients.solomachine.v2.TimestampedSignatureData.signature_data', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\025yaml:\"signature_data\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='ibc.lightclients.solomachine.v2.TimestampedSignatureData.timestamp', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1244, + serialized_end=1346, +) + + +_SIGNBYTES = _descriptor.Descriptor( + name='SignBytes', + full_name='ibc.lightclients.solomachine.v2.SignBytes', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='sequence', full_name='ibc.lightclients.solomachine.v2.SignBytes.sequence', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='timestamp', full_name='ibc.lightclients.solomachine.v2.SignBytes.timestamp', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='diversifier', full_name='ibc.lightclients.solomachine.v2.SignBytes.diversifier', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='data_type', full_name='ibc.lightclients.solomachine.v2.SignBytes.data_type', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\020yaml:\"data_type\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='data', full_name='ibc.lightclients.solomachine.v2.SignBytes.data', index=4, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1349, + serialized_end=1522, +) + + +_HEADERDATA = _descriptor.Descriptor( + name='HeaderData', + full_name='ibc.lightclients.solomachine.v2.HeaderData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='new_pub_key', full_name='ibc.lightclients.solomachine.v2.HeaderData.new_pub_key', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\022yaml:\"new_pub_key\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='new_diversifier', full_name='ibc.lightclients.solomachine.v2.HeaderData.new_diversifier', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\026yaml:\"new_diversifier\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1525, + serialized_end=1663, +) + + +_CLIENTSTATEDATA = _descriptor.Descriptor( + name='ClientStateData', + full_name='ibc.lightclients.solomachine.v2.ClientStateData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='path', full_name='ibc.lightclients.solomachine.v2.ClientStateData.path', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='client_state', full_name='ibc.lightclients.solomachine.v2.ClientStateData.client_state', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\023yaml:\"client_state\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1665, + serialized_end=1771, +) + + +_CONSENSUSSTATEDATA = _descriptor.Descriptor( + name='ConsensusStateData', + full_name='ibc.lightclients.solomachine.v2.ConsensusStateData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='path', full_name='ibc.lightclients.solomachine.v2.ConsensusStateData.path', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='consensus_state', full_name='ibc.lightclients.solomachine.v2.ConsensusStateData.consensus_state', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\026yaml:\"consensus_state\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1773, + serialized_end=1888, +) + + +_CONNECTIONSTATEDATA = _descriptor.Descriptor( + name='ConnectionStateData', + full_name='ibc.lightclients.solomachine.v2.ConnectionStateData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='path', full_name='ibc.lightclients.solomachine.v2.ConnectionStateData.path', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='connection', full_name='ibc.lightclients.solomachine.v2.ConnectionStateData.connection', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1890, + serialized_end=1990, +) + + +_CHANNELSTATEDATA = _descriptor.Descriptor( + name='ChannelStateData', + full_name='ibc.lightclients.solomachine.v2.ChannelStateData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='path', full_name='ibc.lightclients.solomachine.v2.ChannelStateData.path', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='channel', full_name='ibc.lightclients.solomachine.v2.ChannelStateData.channel', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'\210\240\037\000', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1992, + serialized_end=2077, +) + + +_PACKETCOMMITMENTDATA = _descriptor.Descriptor( + name='PacketCommitmentData', + full_name='ibc.lightclients.solomachine.v2.PacketCommitmentData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='path', full_name='ibc.lightclients.solomachine.v2.PacketCommitmentData.path', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='commitment', full_name='ibc.lightclients.solomachine.v2.PacketCommitmentData.commitment', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2079, + serialized_end=2135, +) + + +_PACKETACKNOWLEDGEMENTDATA = _descriptor.Descriptor( + name='PacketAcknowledgementData', + full_name='ibc.lightclients.solomachine.v2.PacketAcknowledgementData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='path', full_name='ibc.lightclients.solomachine.v2.PacketAcknowledgementData.path', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='acknowledgement', full_name='ibc.lightclients.solomachine.v2.PacketAcknowledgementData.acknowledgement', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2137, + serialized_end=2203, +) + + +_PACKETRECEIPTABSENCEDATA = _descriptor.Descriptor( + name='PacketReceiptAbsenceData', + full_name='ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='path', full_name='ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.path', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2205, + serialized_end=2245, +) + + +_NEXTSEQUENCERECVDATA = _descriptor.Descriptor( + name='NextSequenceRecvData', + full_name='ibc.lightclients.solomachine.v2.NextSequenceRecvData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='path', full_name='ibc.lightclients.solomachine.v2.NextSequenceRecvData.path', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='next_seq_recv', full_name='ibc.lightclients.solomachine.v2.NextSequenceRecvData.next_seq_recv', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=b'\362\336\037\024yaml:\"next_seq_recv\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2247, + serialized_end=2332, +) + +_CLIENTSTATE.fields_by_name['consensus_state'].message_type = _CONSENSUSSTATE +_CONSENSUSSTATE.fields_by_name['public_key'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_HEADER.fields_by_name['new_public_key'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_MISBEHAVIOUR.fields_by_name['signature_one'].message_type = _SIGNATUREANDDATA +_MISBEHAVIOUR.fields_by_name['signature_two'].message_type = _SIGNATUREANDDATA +_SIGNATUREANDDATA.fields_by_name['data_type'].enum_type = _DATATYPE +_SIGNBYTES.fields_by_name['data_type'].enum_type = _DATATYPE +_HEADERDATA.fields_by_name['new_pub_key'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_CLIENTSTATEDATA.fields_by_name['client_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_CONSENSUSSTATEDATA.fields_by_name['consensus_state'].message_type = google_dot_protobuf_dot_any__pb2._ANY +_CONNECTIONSTATEDATA.fields_by_name['connection'].message_type = ibc_dot_core_dot_connection_dot_v1_dot_connection__pb2._CONNECTIONEND +_CHANNELSTATEDATA.fields_by_name['channel'].message_type = ibc_dot_core_dot_channel_dot_v1_dot_channel__pb2._CHANNEL +DESCRIPTOR.message_types_by_name['ClientState'] = _CLIENTSTATE +DESCRIPTOR.message_types_by_name['ConsensusState'] = _CONSENSUSSTATE +DESCRIPTOR.message_types_by_name['Header'] = _HEADER +DESCRIPTOR.message_types_by_name['Misbehaviour'] = _MISBEHAVIOUR +DESCRIPTOR.message_types_by_name['SignatureAndData'] = _SIGNATUREANDDATA +DESCRIPTOR.message_types_by_name['TimestampedSignatureData'] = _TIMESTAMPEDSIGNATUREDATA +DESCRIPTOR.message_types_by_name['SignBytes'] = _SIGNBYTES +DESCRIPTOR.message_types_by_name['HeaderData'] = _HEADERDATA +DESCRIPTOR.message_types_by_name['ClientStateData'] = _CLIENTSTATEDATA +DESCRIPTOR.message_types_by_name['ConsensusStateData'] = _CONSENSUSSTATEDATA +DESCRIPTOR.message_types_by_name['ConnectionStateData'] = _CONNECTIONSTATEDATA +DESCRIPTOR.message_types_by_name['ChannelStateData'] = _CHANNELSTATEDATA +DESCRIPTOR.message_types_by_name['PacketCommitmentData'] = _PACKETCOMMITMENTDATA +DESCRIPTOR.message_types_by_name['PacketAcknowledgementData'] = _PACKETACKNOWLEDGEMENTDATA +DESCRIPTOR.message_types_by_name['PacketReceiptAbsenceData'] = _PACKETRECEIPTABSENCEDATA +DESCRIPTOR.message_types_by_name['NextSequenceRecvData'] = _NEXTSEQUENCERECVDATA +DESCRIPTOR.enum_types_by_name['DataType'] = _DATATYPE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ClientState = _reflection.GeneratedProtocolMessageType('ClientState', (_message.Message,), { + 'DESCRIPTOR' : _CLIENTSTATE, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.ClientState) + }) +_sym_db.RegisterMessage(ClientState) + +ConsensusState = _reflection.GeneratedProtocolMessageType('ConsensusState', (_message.Message,), { + 'DESCRIPTOR' : _CONSENSUSSTATE, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.ConsensusState) + }) +_sym_db.RegisterMessage(ConsensusState) + +Header = _reflection.GeneratedProtocolMessageType('Header', (_message.Message,), { + 'DESCRIPTOR' : _HEADER, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.Header) + }) +_sym_db.RegisterMessage(Header) + +Misbehaviour = _reflection.GeneratedProtocolMessageType('Misbehaviour', (_message.Message,), { + 'DESCRIPTOR' : _MISBEHAVIOUR, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.Misbehaviour) + }) +_sym_db.RegisterMessage(Misbehaviour) + +SignatureAndData = _reflection.GeneratedProtocolMessageType('SignatureAndData', (_message.Message,), { + 'DESCRIPTOR' : _SIGNATUREANDDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.SignatureAndData) + }) +_sym_db.RegisterMessage(SignatureAndData) + +TimestampedSignatureData = _reflection.GeneratedProtocolMessageType('TimestampedSignatureData', (_message.Message,), { + 'DESCRIPTOR' : _TIMESTAMPEDSIGNATUREDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.TimestampedSignatureData) + }) +_sym_db.RegisterMessage(TimestampedSignatureData) + +SignBytes = _reflection.GeneratedProtocolMessageType('SignBytes', (_message.Message,), { + 'DESCRIPTOR' : _SIGNBYTES, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.SignBytes) + }) +_sym_db.RegisterMessage(SignBytes) + +HeaderData = _reflection.GeneratedProtocolMessageType('HeaderData', (_message.Message,), { + 'DESCRIPTOR' : _HEADERDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.HeaderData) + }) +_sym_db.RegisterMessage(HeaderData) + +ClientStateData = _reflection.GeneratedProtocolMessageType('ClientStateData', (_message.Message,), { + 'DESCRIPTOR' : _CLIENTSTATEDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.ClientStateData) + }) +_sym_db.RegisterMessage(ClientStateData) + +ConsensusStateData = _reflection.GeneratedProtocolMessageType('ConsensusStateData', (_message.Message,), { + 'DESCRIPTOR' : _CONSENSUSSTATEDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.ConsensusStateData) + }) +_sym_db.RegisterMessage(ConsensusStateData) + +ConnectionStateData = _reflection.GeneratedProtocolMessageType('ConnectionStateData', (_message.Message,), { + 'DESCRIPTOR' : _CONNECTIONSTATEDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.ConnectionStateData) + }) +_sym_db.RegisterMessage(ConnectionStateData) + +ChannelStateData = _reflection.GeneratedProtocolMessageType('ChannelStateData', (_message.Message,), { + 'DESCRIPTOR' : _CHANNELSTATEDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.ChannelStateData) + }) +_sym_db.RegisterMessage(ChannelStateData) + +PacketCommitmentData = _reflection.GeneratedProtocolMessageType('PacketCommitmentData', (_message.Message,), { + 'DESCRIPTOR' : _PACKETCOMMITMENTDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.PacketCommitmentData) + }) +_sym_db.RegisterMessage(PacketCommitmentData) + +PacketAcknowledgementData = _reflection.GeneratedProtocolMessageType('PacketAcknowledgementData', (_message.Message,), { + 'DESCRIPTOR' : _PACKETACKNOWLEDGEMENTDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.PacketAcknowledgementData) + }) +_sym_db.RegisterMessage(PacketAcknowledgementData) + +PacketReceiptAbsenceData = _reflection.GeneratedProtocolMessageType('PacketReceiptAbsenceData', (_message.Message,), { + 'DESCRIPTOR' : _PACKETRECEIPTABSENCEDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData) + }) +_sym_db.RegisterMessage(PacketReceiptAbsenceData) + +NextSequenceRecvData = _reflection.GeneratedProtocolMessageType('NextSequenceRecvData', (_message.Message,), { + 'DESCRIPTOR' : _NEXTSEQUENCERECVDATA, + '__module__' : 'ibc.lightclients.solomachine.v2.solomachine_pb2' + # @@protoc_insertion_point(class_scope:ibc.lightclients.solomachine.v2.NextSequenceRecvData) + }) +_sym_db.RegisterMessage(NextSequenceRecvData) + + +DESCRIPTOR._options = None +_DATATYPE._options = None +_DATATYPE.values_by_name["DATA_TYPE_UNINITIALIZED_UNSPECIFIED"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_CLIENT_STATE"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_CONSENSUS_STATE"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_CONNECTION_STATE"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_CHANNEL_STATE"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_PACKET_COMMITMENT"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_PACKET_ACKNOWLEDGEMENT"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_PACKET_RECEIPT_ABSENCE"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_NEXT_SEQUENCE_RECV"]._options = None +_DATATYPE.values_by_name["DATA_TYPE_HEADER"]._options = None +_CLIENTSTATE.fields_by_name['is_frozen']._options = None +_CLIENTSTATE.fields_by_name['consensus_state']._options = None +_CLIENTSTATE.fields_by_name['allow_update_after_proposal']._options = None +_CLIENTSTATE._options = None +_CONSENSUSSTATE.fields_by_name['public_key']._options = None +_CONSENSUSSTATE._options = None +_HEADER.fields_by_name['new_public_key']._options = None +_HEADER.fields_by_name['new_diversifier']._options = None +_HEADER._options = None +_MISBEHAVIOUR.fields_by_name['client_id']._options = None +_MISBEHAVIOUR.fields_by_name['signature_one']._options = None +_MISBEHAVIOUR.fields_by_name['signature_two']._options = None +_MISBEHAVIOUR._options = None +_SIGNATUREANDDATA.fields_by_name['data_type']._options = None +_SIGNATUREANDDATA._options = None +_TIMESTAMPEDSIGNATUREDATA.fields_by_name['signature_data']._options = None +_TIMESTAMPEDSIGNATUREDATA._options = None +_SIGNBYTES.fields_by_name['data_type']._options = None +_SIGNBYTES._options = None +_HEADERDATA.fields_by_name['new_pub_key']._options = None +_HEADERDATA.fields_by_name['new_diversifier']._options = None +_HEADERDATA._options = None +_CLIENTSTATEDATA.fields_by_name['client_state']._options = None +_CLIENTSTATEDATA._options = None +_CONSENSUSSTATEDATA.fields_by_name['consensus_state']._options = None +_CONSENSUSSTATEDATA._options = None +_CONNECTIONSTATEDATA._options = None +_CHANNELSTATEDATA._options = None +_NEXTSEQUENCERECVDATA.fields_by_name['next_seq_recv']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.py b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.py b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.py index 57364cd..eb98a3c 100644 --- a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.py +++ b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.py @@ -25,9 +25,9 @@ name='ibc/lightclients/tendermint/v1/tendermint.proto', package='ibc.lightclients.tendermint.v1', syntax='proto3', - serialized_options=b'ZDgithub.com/cosmos/cosmos-sdk/x/ibc/light-clients/07-tendermint/types', + serialized_options=b'ZBgithub.com/cosmos/ibc-go/modules/light-clients/07-tendermint/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n/ibc/lightclients/tendermint/v1/tendermint.proto\x12\x1eibc.lightclients.tendermint.v1\x1a tendermint/types/validator.proto\x1a\x1ctendermint/types/types.proto\x1a\x13\x63onfio/proofs.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1fibc/core/client/v1/client.proto\x1a\'ibc/core/commitment/v1/commitment.proto\x1a\x14gogoproto/gogo.proto\"\xb8\x06\n\x0b\x43lientState\x12\x10\n\x08\x63hain_id\x18\x01 \x01(\t\x12Y\n\x0btrust_level\x18\x02 \x01(\x0b\x32(.ibc.lightclients.tendermint.v1.FractionB\x1a\xc8\xde\x1f\x00\xf2\xde\x1f\x12yaml:\"trust_level\"\x12V\n\x0ftrusting_period\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\"\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xf2\xde\x1f\x16yaml:\"trusting_period\"\x12X\n\x10unbonding_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB#\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xf2\xde\x1f\x17yaml:\"unbonding_period\"\x12V\n\x0fmax_clock_drift\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\"\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xf2\xde\x1f\x16yaml:\"max_clock_drift\"\x12O\n\rfrozen_height\x18\x06 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1c\xc8\xde\x1f\x00\xf2\xde\x1f\x14yaml:\"frozen_height\"\x12O\n\rlatest_height\x18\x07 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1c\xc8\xde\x1f\x00\xf2\xde\x1f\x14yaml:\"latest_height\"\x12=\n\x0bproof_specs\x18\x08 \x03(\x0b\x32\x10.ics23.ProofSpecB\x16\xf2\xde\x1f\x12yaml:\"proof_specs\"\x12-\n\x0cupgrade_path\x18\t \x03(\tB\x17\xf2\xde\x1f\x13yaml:\"upgrade_path\"\x12G\n\x19\x61llow_update_after_expiry\x18\n \x01(\x08\x42$\xf2\xde\x1f yaml:\"allow_update_after_expiry\"\x12S\n\x1f\x61llow_update_after_misbehaviour\x18\x0b \x01(\x08\x42*\xf2\xde\x1f&yaml:\"allow_update_after_misbehaviour\":\x04\x88\xa0\x1f\x00\"\xfe\x01\n\x0e\x43onsensusState\x12\x37\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01\x12\x36\n\x04root\x18\x02 \x01(\x0b\x32\".ibc.core.commitment.v1.MerkleRootB\x04\xc8\xde\x1f\x00\x12u\n\x14next_validators_hash\x18\x03 \x01(\x0c\x42W\xfa\xde\x1f\x34github.com/tendermint/tendermint/libs/bytes.HexBytes\xf2\xde\x1f\x1byaml:\"next_validators_hash\":\x04\x88\xa0\x1f\x00\"\xf1\x01\n\x0cMisbehaviour\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12X\n\x08header_1\x18\x02 \x01(\x0b\x32&.ibc.lightclients.tendermint.v1.HeaderB\x1e\xe2\xde\x1f\x07Header1\xf2\xde\x1f\x0fyaml:\"header_1\"\x12X\n\x08header_2\x18\x03 \x01(\x0b\x32&.ibc.lightclients.tendermint.v1.HeaderB\x1e\xe2\xde\x1f\x07Header2\xf2\xde\x1f\x0fyaml:\"header_2\":\x04\x88\xa0\x1f\x00\"\xdc\x02\n\x06Header\x12S\n\rsigned_header\x18\x01 \x01(\x0b\x32\x1e.tendermint.types.SignedHeaderB\x1c\xd0\xde\x1f\x01\xf2\xde\x1f\x14yaml:\"signed_header\"\x12O\n\rvalidator_set\x18\x02 \x01(\x0b\x32\x1e.tendermint.types.ValidatorSetB\x18\xf2\xde\x1f\x14yaml:\"validator_set\"\x12Q\n\x0etrusted_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x15yaml:\"trusted_height\"\x12Y\n\x12trusted_validators\x18\x04 \x01(\x0b\x32\x1e.tendermint.types.ValidatorSetB\x1d\xf2\xde\x1f\x19yaml:\"trusted_validators\"\"2\n\x08\x46raction\x12\x11\n\tnumerator\x18\x01 \x01(\x04\x12\x13\n\x0b\x64\x65nominator\x18\x02 \x01(\x04\x42\x46ZDgithub.com/cosmos/cosmos-sdk/x/ibc/light-clients/07-tendermint/typesb\x06proto3' + serialized_pb=b'\n/ibc/lightclients/tendermint/v1/tendermint.proto\x12\x1eibc.lightclients.tendermint.v1\x1a tendermint/types/validator.proto\x1a\x1ctendermint/types/types.proto\x1a\x13\x63onfio/proofs.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1fibc/core/client/v1/client.proto\x1a\'ibc/core/commitment/v1/commitment.proto\x1a\x14gogoproto/gogo.proto\"\xb8\x06\n\x0b\x43lientState\x12\x10\n\x08\x63hain_id\x18\x01 \x01(\t\x12Y\n\x0btrust_level\x18\x02 \x01(\x0b\x32(.ibc.lightclients.tendermint.v1.FractionB\x1a\xc8\xde\x1f\x00\xf2\xde\x1f\x12yaml:\"trust_level\"\x12V\n\x0ftrusting_period\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\"\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xf2\xde\x1f\x16yaml:\"trusting_period\"\x12X\n\x10unbonding_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB#\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xf2\xde\x1f\x17yaml:\"unbonding_period\"\x12V\n\x0fmax_clock_drift\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\"\xc8\xde\x1f\x00\x98\xdf\x1f\x01\xf2\xde\x1f\x16yaml:\"max_clock_drift\"\x12O\n\rfrozen_height\x18\x06 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1c\xc8\xde\x1f\x00\xf2\xde\x1f\x14yaml:\"frozen_height\"\x12O\n\rlatest_height\x18\x07 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1c\xc8\xde\x1f\x00\xf2\xde\x1f\x14yaml:\"latest_height\"\x12=\n\x0bproof_specs\x18\x08 \x03(\x0b\x32\x10.ics23.ProofSpecB\x16\xf2\xde\x1f\x12yaml:\"proof_specs\"\x12-\n\x0cupgrade_path\x18\t \x03(\tB\x17\xf2\xde\x1f\x13yaml:\"upgrade_path\"\x12G\n\x19\x61llow_update_after_expiry\x18\n \x01(\x08\x42$\xf2\xde\x1f yaml:\"allow_update_after_expiry\"\x12S\n\x1f\x61llow_update_after_misbehaviour\x18\x0b \x01(\x08\x42*\xf2\xde\x1f&yaml:\"allow_update_after_misbehaviour\":\x04\x88\xa0\x1f\x00\"\xfe\x01\n\x0e\x43onsensusState\x12\x37\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01\x12\x36\n\x04root\x18\x02 \x01(\x0b\x32\".ibc.core.commitment.v1.MerkleRootB\x04\xc8\xde\x1f\x00\x12u\n\x14next_validators_hash\x18\x03 \x01(\x0c\x42W\xfa\xde\x1f\x34github.com/tendermint/tendermint/libs/bytes.HexBytes\xf2\xde\x1f\x1byaml:\"next_validators_hash\":\x04\x88\xa0\x1f\x00\"\xf1\x01\n\x0cMisbehaviour\x12\'\n\tclient_id\x18\x01 \x01(\tB\x14\xf2\xde\x1f\x10yaml:\"client_id\"\x12X\n\x08header_1\x18\x02 \x01(\x0b\x32&.ibc.lightclients.tendermint.v1.HeaderB\x1e\xe2\xde\x1f\x07Header1\xf2\xde\x1f\x0fyaml:\"header_1\"\x12X\n\x08header_2\x18\x03 \x01(\x0b\x32&.ibc.lightclients.tendermint.v1.HeaderB\x1e\xe2\xde\x1f\x07Header2\xf2\xde\x1f\x0fyaml:\"header_2\":\x04\x88\xa0\x1f\x00\"\xdc\x02\n\x06Header\x12S\n\rsigned_header\x18\x01 \x01(\x0b\x32\x1e.tendermint.types.SignedHeaderB\x1c\xd0\xde\x1f\x01\xf2\xde\x1f\x14yaml:\"signed_header\"\x12O\n\rvalidator_set\x18\x02 \x01(\x0b\x32\x1e.tendermint.types.ValidatorSetB\x18\xf2\xde\x1f\x14yaml:\"validator_set\"\x12Q\n\x0etrusted_height\x18\x03 \x01(\x0b\x32\x1a.ibc.core.client.v1.HeightB\x1d\xc8\xde\x1f\x00\xf2\xde\x1f\x15yaml:\"trusted_height\"\x12Y\n\x12trusted_validators\x18\x04 \x01(\x0b\x32\x1e.tendermint.types.ValidatorSetB\x1d\xf2\xde\x1f\x19yaml:\"trusted_validators\"\"2\n\x08\x46raction\x12\x11\n\tnumerator\x18\x01 \x01(\x04\x12\x13\n\x0b\x64\x65nominator\x18\x02 \x01(\x04\x42\x44ZBgithub.com/cosmos/ibc-go/modules/light-clients/07-tendermint/typesb\x06proto3' , dependencies=[tendermint_dot_types_dot_validator__pb2.DESCRIPTOR,tendermint_dot_types_dot_types__pb2.DESCRIPTOR,confio_dot_proofs__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,ibc_dot_core_dot_client_dot_v1_dot_client__pb2.DESCRIPTOR,ibc_dot_core_dot_commitment_dot_v1_dot_commitment__pb2.DESCRIPTOR,gogoproto_dot_gogo__pb2.DESCRIPTOR,]) diff --git a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi deleted file mode 100644 index 6bbd4a5..0000000 --- a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi +++ /dev/null @@ -1,169 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import confio.proofs_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import ibc.core.client.v1.client_pb2 -import ibc.core.commitment.v1.commitment_pb2 -import tendermint.types.types_pb2 -import tendermint.types.validator_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class ClientState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHAIN_ID_FIELD_NUMBER: builtins.int - TRUST_LEVEL_FIELD_NUMBER: builtins.int - TRUSTING_PERIOD_FIELD_NUMBER: builtins.int - UNBONDING_PERIOD_FIELD_NUMBER: builtins.int - MAX_CLOCK_DRIFT_FIELD_NUMBER: builtins.int - FROZEN_HEIGHT_FIELD_NUMBER: builtins.int - LATEST_HEIGHT_FIELD_NUMBER: builtins.int - PROOF_SPECS_FIELD_NUMBER: builtins.int - UPGRADE_PATH_FIELD_NUMBER: builtins.int - ALLOW_UPDATE_AFTER_EXPIRY_FIELD_NUMBER: builtins.int - ALLOW_UPDATE_AFTER_MISBEHAVIOUR_FIELD_NUMBER: builtins.int - chain_id: typing.Text = ... - - @property - def upgrade_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - allow_update_after_expiry: builtins.bool = ... - allow_update_after_misbehaviour: builtins.bool = ... - - @property - def trust_level(self) -> global___Fraction: ... - - @property - def trusting_period(self) -> google.protobuf.duration_pb2.Duration: ... - - @property - def unbonding_period(self) -> google.protobuf.duration_pb2.Duration: ... - - @property - def max_clock_drift(self) -> google.protobuf.duration_pb2.Duration: ... - - @property - def frozen_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - @property - def latest_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - @property - def proof_specs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[confio.proofs_pb2.ProofSpec]: ... - - def __init__(self, - *, - chain_id : typing.Text = ..., - trust_level : typing.Optional[global___Fraction] = ..., - trusting_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - unbonding_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - max_clock_drift : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - frozen_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - latest_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - proof_specs : typing.Optional[typing.Iterable[confio.proofs_pb2.ProofSpec]] = ..., - upgrade_path : typing.Optional[typing.Iterable[typing.Text]] = ..., - allow_update_after_expiry : builtins.bool = ..., - allow_update_after_misbehaviour : builtins.bool = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"frozen_height",b"frozen_height",u"latest_height",b"latest_height",u"max_clock_drift",b"max_clock_drift",u"trust_level",b"trust_level",u"trusting_period",b"trusting_period",u"unbonding_period",b"unbonding_period"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"allow_update_after_expiry",b"allow_update_after_expiry",u"allow_update_after_misbehaviour",b"allow_update_after_misbehaviour",u"chain_id",b"chain_id",u"frozen_height",b"frozen_height",u"latest_height",b"latest_height",u"max_clock_drift",b"max_clock_drift",u"proof_specs",b"proof_specs",u"trust_level",b"trust_level",u"trusting_period",b"trusting_period",u"unbonding_period",b"unbonding_period",u"upgrade_path",b"upgrade_path"]) -> None: ... -global___ClientState = ClientState - -class ConsensusState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TIMESTAMP_FIELD_NUMBER: builtins.int - ROOT_FIELD_NUMBER: builtins.int - NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int - next_validators_hash: builtins.bytes = ... - - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - @property - def root(self) -> ibc.core.commitment.v1.commitment_pb2.MerkleRoot: ... - - def __init__(self, - *, - timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - root : typing.Optional[ibc.core.commitment.v1.commitment_pb2.MerkleRoot] = ..., - next_validators_hash : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"root",b"root",u"timestamp",b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"next_validators_hash",b"next_validators_hash",u"root",b"root",u"timestamp",b"timestamp"]) -> None: ... -global___ConsensusState = ConsensusState - -class Misbehaviour(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - HEADER_1_FIELD_NUMBER: builtins.int - HEADER_2_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - - @property - def header_1(self) -> global___Header: ... - - @property - def header_2(self) -> global___Header: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - header_1 : typing.Optional[global___Header] = ..., - header_2 : typing.Optional[global___Header] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"header_1",b"header_1",u"header_2",b"header_2"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"header_1",b"header_1",u"header_2",b"header_2"]) -> None: ... -global___Misbehaviour = Misbehaviour - -class Header(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIGNED_HEADER_FIELD_NUMBER: builtins.int - VALIDATOR_SET_FIELD_NUMBER: builtins.int - TRUSTED_HEIGHT_FIELD_NUMBER: builtins.int - TRUSTED_VALIDATORS_FIELD_NUMBER: builtins.int - - @property - def signed_header(self) -> tendermint.types.types_pb2.SignedHeader: ... - - @property - def validator_set(self) -> tendermint.types.validator_pb2.ValidatorSet: ... - - @property - def trusted_height(self) -> ibc.core.client.v1.client_pb2.Height: ... - - @property - def trusted_validators(self) -> tendermint.types.validator_pb2.ValidatorSet: ... - - def __init__(self, - *, - signed_header : typing.Optional[tendermint.types.types_pb2.SignedHeader] = ..., - validator_set : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., - trusted_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., - trusted_validators : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"trusted_height",b"trusted_height",u"trusted_validators",b"trusted_validators",u"validator_set",b"validator_set"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"trusted_height",b"trusted_height",u"trusted_validators",b"trusted_validators",u"validator_set",b"validator_set"]) -> None: ... -global___Header = Header - -class Fraction(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NUMERATOR_FIELD_NUMBER: builtins.int - DENOMINATOR_FIELD_NUMBER: builtins.int - numerator: builtins.int = ... - denominator: builtins.int = ... - - def __init__(self, - *, - numerator : builtins.int = ..., - denominator : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"denominator",b"denominator",u"numerator",b"numerator"]) -> None: ... -global___Fraction = Fraction diff --git a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi deleted file mode 100644 index 1e81e8c..0000000 --- a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .tendermint_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/genesis_pb2.py b/pyband/proto/oracle/v1/genesis_pb2.py index 305b77b..3f292c7 100644 --- a/pyband/proto/oracle/v1/genesis_pb2.py +++ b/pyband/proto/oracle/v1/genesis_pb2.py @@ -21,7 +21,7 @@ syntax='proto3', serialized_options=b'Z,github.com/bandprotocol/chain/x/oracle/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x17oracle/v1/genesis.proto\x12\toracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x16oracle/v1/oracle.proto\"\xdc\x01\n\x0cGenesisState\x12\'\n\x06params\x18\x01 \x01(\x0b\x32\x11.oracle.v1.ParamsB\x04\xc8\xde\x1f\x00\x12\x31\n\x0c\x64\x61ta_sources\x18\x02 \x03(\x0b\x32\x15.oracle.v1.DataSourceB\x04\xc8\xde\x1f\x00\x12\x35\n\x0eoracle_scripts\x18\x03 \x03(\x0b\x32\x17.oracle.v1.OracleScriptB\x04\xc8\xde\x1f\x00\x12\x39\n\treporters\x18\x04 \x03(\x0b\x32 .oracle.v1.ReportersPerValidatorB\x04\xc8\xde\x1f\x00\x42.Z,github.com/bandprotocol/chain/x/oracle/typesb\x06proto3' + serialized_pb=b'\n\x17oracle/v1/genesis.proto\x12\toracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x16oracle/v1/oracle.proto\"\xa1\x01\n\x0cGenesisState\x12\'\n\x06params\x18\x01 \x01(\x0b\x32\x11.oracle.v1.ParamsB\x04\xc8\xde\x1f\x00\x12\x31\n\x0c\x64\x61ta_sources\x18\x02 \x03(\x0b\x32\x15.oracle.v1.DataSourceB\x04\xc8\xde\x1f\x00\x12\x35\n\x0eoracle_scripts\x18\x03 \x03(\x0b\x32\x17.oracle.v1.OracleScriptB\x04\xc8\xde\x1f\x00\x42.Z,github.com/bandprotocol/chain/x/oracle/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,oracle_dot_v1_dot_oracle__pb2.DESCRIPTOR,]) @@ -57,13 +57,6 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reporters', full_name='oracle.v1.GenesisState.reporters', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -77,13 +70,12 @@ oneofs=[ ], serialized_start=85, - serialized_end=305, + serialized_end=246, ) _GENESISSTATE.fields_by_name['params'].message_type = oracle_dot_v1_dot_oracle__pb2._PARAMS _GENESISSTATE.fields_by_name['data_sources'].message_type = oracle_dot_v1_dot_oracle__pb2._DATASOURCE _GENESISSTATE.fields_by_name['oracle_scripts'].message_type = oracle_dot_v1_dot_oracle__pb2._ORACLESCRIPT -_GENESISSTATE.fields_by_name['reporters'].message_type = oracle_dot_v1_dot_oracle__pb2._REPORTERSPERVALIDATOR DESCRIPTOR.message_types_by_name['GenesisState'] = _GENESISSTATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -99,5 +91,4 @@ _GENESISSTATE.fields_by_name['params']._options = None _GENESISSTATE.fields_by_name['data_sources']._options = None _GENESISSTATE.fields_by_name['oracle_scripts']._options = None -_GENESISSTATE.fields_by_name['reporters']._options = None # @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/oracle/v1/genesis_pb2.pyi b/pyband/proto/oracle/v1/genesis_pb2.pyi deleted file mode 100644 index e12fc7c..0000000 --- a/pyband/proto/oracle/v1/genesis_pb2.pyi +++ /dev/null @@ -1,43 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import oracle.v1.oracle_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class GenesisState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - DATA_SOURCES_FIELD_NUMBER: builtins.int - ORACLE_SCRIPTS_FIELD_NUMBER: builtins.int - REPORTERS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> oracle.v1.oracle_pb2.Params: ... - - @property - def data_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.DataSource]: ... - - @property - def oracle_scripts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.OracleScript]: ... - - @property - def reporters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.ReportersPerValidator]: ... - - def __init__(self, - *, - params : typing.Optional[oracle.v1.oracle_pb2.Params] = ..., - data_sources : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.DataSource]] = ..., - oracle_scripts : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.OracleScript]] = ..., - reporters : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.ReportersPerValidator]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data_sources",b"data_sources",u"oracle_scripts",b"oracle_scripts",u"params",b"params",u"reporters",b"reporters"]) -> None: ... -global___GenesisState = GenesisState diff --git a/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi b/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi deleted file mode 100644 index b5eede6..0000000 --- a/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/oracle_pb2.py b/pyband/proto/oracle/v1/oracle_pb2.py index 1879d39..6b85fa3 100644 --- a/pyband/proto/oracle/v1/oracle_pb2.py +++ b/pyband/proto/oracle/v1/oracle_pb2.py @@ -24,7 +24,7 @@ syntax='proto3', serialized_options=b'Z,github.com/bandprotocol/chain/x/oracle/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x16oracle/v1/oracle.proto\x12\toracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xc2\x01\n\nDataSource\x12\r\n\x05owner\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08\x66ilename\x18\x04 \x01(\t\x12\x10\n\x08treasury\x18\x05 \x01(\t\x12X\n\x03\x66\x65\x65\x18\x06 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x04\xe8\xa0\x1f\x01\"\x94\x01\n\x0cOracleScript\x12\r\n\x05owner\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08\x66ilename\x18\x04 \x01(\t\x12\x0e\n\x06schema\x18\x05 \x01(\t\x12*\n\x0fsource_code_url\x18\x06 \x01(\tB\x11\xe2\xde\x1f\rSourceCodeURL:\x04\xe8\xa0\x1f\x01\"\x91\x01\n\nRawRequest\x12\x31\n\x0b\x65xternal_id\x18\x01 \x01(\x03\x42\x1c\xe2\xde\x1f\nExternalID\xfa\xde\x1f\nExternalID\x12\x38\n\x0e\x64\x61ta_source_id\x18\x02 \x01(\x03\x42 \xe2\xde\x1f\x0c\x44\x61taSourceID\xfa\xde\x1f\x0c\x44\x61taSourceID\x12\x10\n\x08\x63\x61lldata\x18\x03 \x01(\x0c:\x04\xe8\xa0\x1f\x01\"e\n\tRawReport\x12\x31\n\x0b\x65xternal_id\x18\x01 \x01(\x03\x42\x1c\xe2\xde\x1f\nExternalID\xfa\xde\x1f\nExternalID\x12\x11\n\texit_code\x18\x02 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c:\x04\xe8\xa0\x1f\x01\"\xe5\x02\n\x07Request\x12>\n\x10oracle_script_id\x18\x01 \x01(\x03\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x10\n\x08\x63\x61lldata\x18\x02 \x01(\x0c\x12\x1c\n\x14requested_validators\x18\x03 \x03(\t\x12\x11\n\tmin_count\x18\x04 \x01(\x04\x12\x16\n\x0erequest_height\x18\x05 \x01(\x03\x12\x14\n\x0crequest_time\x18\x06 \x01(\x04\x12\x1f\n\tclient_id\x18\x07 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12\x31\n\x0craw_requests\x18\x08 \x03(\x0b\x32\x15.oracle.v1.RawRequestB\x04\xc8\xde\x1f\x00\x12:\n\x0bibc_channel\x18\t \x01(\x0b\x32\x15.oracle.v1.IBCChannelB\x0e\xe2\xde\x1f\nIBCChannel\x12\x13\n\x0b\x65xecute_gas\x18\n \x01(\x04:\x04\xe8\xa0\x1f\x01\"m\n\x06Report\x12\x11\n\tvalidator\x18\x01 \x01(\t\x12\x19\n\x11in_before_resolve\x18\x02 \x01(\x08\x12/\n\x0braw_reports\x18\x03 \x03(\x0b\x32\x14.oracle.v1.RawReportB\x04\xc8\xde\x1f\x00:\x04\xe8\xa0\x1f\x01\"\xd7\x02\n\x17OracleRequestPacketData\x12\x1f\n\tclient_id\x18\x01 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12>\n\x10oracle_script_id\x18\x02 \x01(\x03\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x10\n\x08\x63\x61lldata\x18\x03 \x01(\x0c\x12\x11\n\task_count\x18\x04 \x01(\x04\x12\x11\n\tmin_count\x18\x05 \x01(\x04\x12^\n\tfee_limit\x18\x06 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x13\n\x0brequest_key\x18\x07 \x01(\t\x12\x13\n\x0bprepare_gas\x18\x08 \x01(\x04\x12\x13\n\x0b\x65xecute_gas\x18\t \x01(\x04:\x04\xe8\xa0\x1f\x01\"Z\n\"OracleRequestPacketAcknowledgement\x12.\n\nrequest_id\x18\x01 \x01(\x03\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID:\x04\xe8\xa0\x1f\x01\"\xf2\x01\n\x18OracleResponsePacketData\x12\x1f\n\tclient_id\x18\x01 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12.\n\nrequest_id\x18\x02 \x01(\x03\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12\x11\n\tans_count\x18\x03 \x01(\x04\x12\x14\n\x0crequest_time\x18\x04 \x01(\x03\x12\x14\n\x0cresolve_time\x18\x05 \x01(\x03\x12\x30\n\x0eresolve_status\x18\x06 \x01(\x0e\x32\x18.oracle.v1.ResolveStatus\x12\x0e\n\x06result\x18\x07 \x01(\x0c:\x04\xe8\xa0\x1f\x01\"\xd8\x02\n\x06Result\x12\x1f\n\tclient_id\x18\x01 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12>\n\x10oracle_script_id\x18\x02 \x01(\x03\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x10\n\x08\x63\x61lldata\x18\x03 \x01(\x0c\x12\x11\n\task_count\x18\x04 \x01(\x04\x12\x11\n\tmin_count\x18\x05 \x01(\x04\x12.\n\nrequest_id\x18\x06 \x01(\x03\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12\x11\n\tans_count\x18\x07 \x01(\x04\x12\x14\n\x0crequest_time\x18\x08 \x01(\x03\x12\x14\n\x0cresolve_time\x18\t \x01(\x03\x12\x30\n\x0eresolve_status\x18\n \x01(\x0e\x32\x18.oracle.v1.ResolveStatus\x12\x0e\n\x06result\x18\x0b \x01(\x0c:\x04\xe8\xa0\x1f\x01\"_\n\x0fValidatorStatus\x12\x11\n\tis_active\x18\x01 \x01(\x08\x12\x33\n\x05since\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01:\x04\xe8\xa0\x1f\x01\"1\n\x0f\x41\x63tiveValidator\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\r\n\x05power\x18\x02 \x01(\x04\"\xb8\x02\n\x06Params\x12\x1d\n\x15max_raw_request_count\x18\x01 \x01(\x04\x12\x15\n\rmax_ask_count\x18\x02 \x01(\x04\x12\x1e\n\x16\x65xpiration_block_count\x18\x03 \x01(\x04\x12\x16\n\x0e\x62\x61se_owasm_gas\x18\x04 \x01(\x04\x12!\n\x19per_validator_request_gas\x18\x05 \x01(\x04\x12\x1a\n\x12sampling_try_count\x18\x06 \x01(\x04\x12 \n\x18oracle_reward_percentage\x18\x07 \x01(\x04\x12!\n\x19inactive_penalty_duration\x18\x08 \x01(\x04\x12\x32\n\x13ibc_request_enabled\x18\t \x01(\x08\x42\x15\xe2\xde\x1f\x11IBCRequestEnabled:\x08\xe8\xa0\x1f\x01\x98\xa0\x1f\x00\"/\n\x12PendingResolveList\x12\x13\n\x0brequest_ids\x18\x01 \x03(\x03:\x04\xe8\xa0\x1f\x01\"7\n\nIBCChannel\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t:\x04\xe8\xa0\x1f\x01\"C\n\x15ReportersPerValidator\x12\x11\n\tvalidator\x18\x01 \x01(\t\x12\x17\n\treporters\x18\x02 \x03(\tB\x04\xc8\xde\x1f\x00\"\xb0\x01\n\x13RequestVerification\x12\x1d\n\x08\x63hain_id\x18\x01 \x01(\tB\x0b\xe2\xde\x1f\x07\x43hainID\x12\x11\n\tvalidator\x18\x02 \x01(\t\x12.\n\nrequest_id\x18\x03 \x01(\x03\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12\x31\n\x0b\x65xternal_id\x18\x04 \x01(\x03\x42\x1c\xe2\xde\x1f\nExternalID\xfa\xde\x1f\nExternalID:\x04\xe8\xa0\x1f\x01\"\x83\x01\n\x0bPriceResult\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x12\n\nmultiplier\x18\x02 \x01(\x04\x12\n\n\x02px\x18\x03 \x01(\x04\x12.\n\nrequest_id\x18\x04 \x01(\x03\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12\x14\n\x0cresolve_time\x18\x05 \x01(\x03*\xfb\x01\n\rResolveStatus\x12<\n\x1fRESOLVE_STATUS_OPEN_UNSPECIFIED\x10\x00\x1a\x17\x8a\x9d \x13RESOLVE_STATUS_OPEN\x12\x36\n\x16RESOLVE_STATUS_SUCCESS\x10\x01\x1a\x1a\x8a\x9d \x16RESOLVE_STATUS_SUCCESS\x12\x36\n\x16RESOLVE_STATUS_FAILURE\x10\x02\x1a\x1a\x8a\x9d \x16RESOLVE_STATUS_FAILURE\x12\x36\n\x16RESOLVE_STATUS_EXPIRED\x10\x03\x1a\x1a\x8a\x9d \x16RESOLVE_STATUS_EXPIRED\x1a\x04\x88\xa3\x1e\x00\x42.Z,github.com/bandprotocol/chain/x/oracle/typesb\x06proto3' + serialized_pb=b'\n\x16oracle/v1/oracle.proto\x12\toracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xc2\x01\n\nDataSource\x12\r\n\x05owner\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08\x66ilename\x18\x04 \x01(\t\x12\x10\n\x08treasury\x18\x05 \x01(\t\x12X\n\x03\x66\x65\x65\x18\x06 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins:\x04\xe8\xa0\x1f\x01\"\x94\x01\n\x0cOracleScript\x12\r\n\x05owner\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08\x66ilename\x18\x04 \x01(\t\x12\x0e\n\x06schema\x18\x05 \x01(\t\x12*\n\x0fsource_code_url\x18\x06 \x01(\tB\x11\xe2\xde\x1f\rSourceCodeURL:\x04\xe8\xa0\x1f\x01\"\x91\x01\n\nRawRequest\x12\x31\n\x0b\x65xternal_id\x18\x01 \x01(\x04\x42\x1c\xe2\xde\x1f\nExternalID\xfa\xde\x1f\nExternalID\x12\x38\n\x0e\x64\x61ta_source_id\x18\x02 \x01(\x04\x42 \xe2\xde\x1f\x0c\x44\x61taSourceID\xfa\xde\x1f\x0c\x44\x61taSourceID\x12\x10\n\x08\x63\x61lldata\x18\x03 \x01(\x0c:\x04\xe8\xa0\x1f\x01\"e\n\tRawReport\x12\x31\n\x0b\x65xternal_id\x18\x01 \x01(\x04\x42\x1c\xe2\xde\x1f\nExternalID\xfa\xde\x1f\nExternalID\x12\x11\n\texit_code\x18\x02 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c:\x04\xe8\xa0\x1f\x01\"\xe5\x02\n\x07Request\x12>\n\x10oracle_script_id\x18\x01 \x01(\x04\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x10\n\x08\x63\x61lldata\x18\x02 \x01(\x0c\x12\x1c\n\x14requested_validators\x18\x03 \x03(\t\x12\x11\n\tmin_count\x18\x04 \x01(\x04\x12\x16\n\x0erequest_height\x18\x05 \x01(\x03\x12\x14\n\x0crequest_time\x18\x06 \x01(\x03\x12\x1f\n\tclient_id\x18\x07 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12\x31\n\x0craw_requests\x18\x08 \x03(\x0b\x32\x15.oracle.v1.RawRequestB\x04\xc8\xde\x1f\x00\x12:\n\x0bibc_channel\x18\t \x01(\x0b\x32\x15.oracle.v1.IBCChannelB\x0e\xe2\xde\x1f\nIBCChannel\x12\x13\n\x0b\x65xecute_gas\x18\n \x01(\x04:\x04\xe8\xa0\x1f\x01\"m\n\x06Report\x12\x11\n\tvalidator\x18\x01 \x01(\t\x12\x19\n\x11in_before_resolve\x18\x02 \x01(\x08\x12/\n\x0braw_reports\x18\x03 \x03(\x0b\x32\x14.oracle.v1.RawReportB\x04\xc8\xde\x1f\x00:\x04\xe8\xa0\x1f\x01\"\xc2\x02\n\x17OracleRequestPacketData\x12\x1f\n\tclient_id\x18\x01 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12>\n\x10oracle_script_id\x18\x02 \x01(\x04\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x10\n\x08\x63\x61lldata\x18\x03 \x01(\x0c\x12\x11\n\task_count\x18\x04 \x01(\x04\x12\x11\n\tmin_count\x18\x05 \x01(\x04\x12^\n\tfee_limit\x18\x06 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x13\n\x0bprepare_gas\x18\x07 \x01(\x04\x12\x13\n\x0b\x65xecute_gas\x18\x08 \x01(\x04:\x04\xe8\xa0\x1f\x01\"Z\n\"OracleRequestPacketAcknowledgement\x12.\n\nrequest_id\x18\x01 \x01(\x04\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID:\x04\xe8\xa0\x1f\x01\"\xf2\x01\n\x18OracleResponsePacketData\x12\x1f\n\tclient_id\x18\x01 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12.\n\nrequest_id\x18\x02 \x01(\x04\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12\x11\n\tans_count\x18\x03 \x01(\x04\x12\x14\n\x0crequest_time\x18\x04 \x01(\x03\x12\x14\n\x0cresolve_time\x18\x05 \x01(\x03\x12\x30\n\x0eresolve_status\x18\x06 \x01(\x0e\x32\x18.oracle.v1.ResolveStatus\x12\x0e\n\x06result\x18\x07 \x01(\x0c:\x04\xe8\xa0\x1f\x01\"\xd8\x02\n\x06Result\x12\x1f\n\tclient_id\x18\x01 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12>\n\x10oracle_script_id\x18\x02 \x01(\x04\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x10\n\x08\x63\x61lldata\x18\x03 \x01(\x0c\x12\x11\n\task_count\x18\x04 \x01(\x04\x12\x11\n\tmin_count\x18\x05 \x01(\x04\x12.\n\nrequest_id\x18\x06 \x01(\x04\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12\x11\n\tans_count\x18\x07 \x01(\x04\x12\x14\n\x0crequest_time\x18\x08 \x01(\x03\x12\x14\n\x0cresolve_time\x18\t \x01(\x03\x12\x30\n\x0eresolve_status\x18\n \x01(\x0e\x32\x18.oracle.v1.ResolveStatus\x12\x0e\n\x06result\x18\x0b \x01(\x0c:\x04\xe8\xa0\x1f\x01\"_\n\x0fValidatorStatus\x12\x11\n\tis_active\x18\x01 \x01(\x08\x12\x33\n\x05since\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01:\x04\xe8\xa0\x1f\x01\"1\n\x0f\x41\x63tiveValidator\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\r\n\x05power\x18\x02 \x01(\x04\"\xf1\x02\n\x06Params\x12\x1d\n\x15max_raw_request_count\x18\x01 \x01(\x04\x12\x15\n\rmax_ask_count\x18\x02 \x01(\x04\x12\x19\n\x11max_calldata_size\x18\x03 \x01(\x04\x12\x1c\n\x14max_report_data_size\x18\x04 \x01(\x04\x12\x1e\n\x16\x65xpiration_block_count\x18\x05 \x01(\x04\x12\x16\n\x0e\x62\x61se_owasm_gas\x18\x06 \x01(\x04\x12!\n\x19per_validator_request_gas\x18\x07 \x01(\x04\x12\x1a\n\x12sampling_try_count\x18\x08 \x01(\x04\x12 \n\x18oracle_reward_percentage\x18\t \x01(\x04\x12!\n\x19inactive_penalty_duration\x18\n \x01(\x04\x12\x32\n\x13ibc_request_enabled\x18\x0b \x01(\x08\x42\x15\xe2\xde\x1f\x11IBCRequestEnabled:\x08\xe8\xa0\x1f\x01\x98\xa0\x1f\x00\"/\n\x12PendingResolveList\x12\x13\n\x0brequest_ids\x18\x01 \x03(\x04:\x04\xe8\xa0\x1f\x01\"7\n\nIBCChannel\x12\x0f\n\x07port_id\x18\x01 \x01(\t\x12\x12\n\nchannel_id\x18\x02 \x01(\t:\x04\xe8\xa0\x1f\x01\"\xb0\x01\n\x13RequestVerification\x12\x1d\n\x08\x63hain_id\x18\x01 \x01(\tB\x0b\xe2\xde\x1f\x07\x43hainID\x12\x11\n\tvalidator\x18\x02 \x01(\t\x12.\n\nrequest_id\x18\x03 \x01(\x04\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12\x31\n\x0b\x65xternal_id\x18\x04 \x01(\x04\x42\x1c\xe2\xde\x1f\nExternalID\xfa\xde\x1f\nExternalID:\x04\xe8\xa0\x1f\x01\"\x83\x01\n\x0bPriceResult\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x12\n\nmultiplier\x18\x02 \x01(\x04\x12\n\n\x02px\x18\x03 \x01(\x04\x12.\n\nrequest_id\x18\x04 \x01(\x04\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12\x14\n\x0cresolve_time\x18\x05 \x01(\x03*\xfb\x01\n\rResolveStatus\x12<\n\x1fRESOLVE_STATUS_OPEN_UNSPECIFIED\x10\x00\x1a\x17\x8a\x9d \x13RESOLVE_STATUS_OPEN\x12\x36\n\x16RESOLVE_STATUS_SUCCESS\x10\x01\x1a\x1a\x8a\x9d \x16RESOLVE_STATUS_SUCCESS\x12\x36\n\x16RESOLVE_STATUS_FAILURE\x10\x02\x1a\x1a\x8a\x9d \x16RESOLVE_STATUS_FAILURE\x12\x36\n\x16RESOLVE_STATUS_EXPIRED\x10\x03\x1a\x1a\x8a\x9d \x16RESOLVE_STATUS_EXPIRED\x1a\x04\x88\xa3\x1e\x00\x42.Z,github.com/bandprotocol/chain/x/oracle/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,]) @@ -58,8 +58,8 @@ ], containing_type=None, serialized_options=b'\210\243\036\000', - serialized_start=3203, - serialized_end=3454, + serialized_start=3170, + serialized_end=3421, ) _sym_db.RegisterEnumDescriptor(_RESOLVESTATUS) @@ -215,14 +215,14 @@ fields=[ _descriptor.FieldDescriptor( name='external_id', full_name='oracle.v1.RawRequest.external_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\342\336\037\nExternalID\372\336\037\nExternalID', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data_source_id', full_name='oracle.v1.RawRequest.data_source_id', index=1, - number=2, type=3, cpp_type=2, label=1, + number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -261,7 +261,7 @@ fields=[ _descriptor.FieldDescriptor( name='external_id', full_name='oracle.v1.RawReport.external_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -307,7 +307,7 @@ fields=[ _descriptor.FieldDescriptor( name='oracle_script_id', full_name='oracle.v1.Request.oracle_script_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -342,7 +342,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_time', full_name='oracle.v1.Request.request_time', index=5, - number=6, type=4, cpp_type=4, label=1, + number=6, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -455,7 +455,7 @@ serialized_options=b'\342\336\037\010ClientID', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='oracle_script_id', full_name='oracle.v1.OracleRequestPacketData.oracle_script_id', index=1, - number=2, type=3, cpp_type=2, label=1, + number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -489,22 +489,15 @@ is_extension=False, extension_scope=None, serialized_options=b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='request_key', full_name='oracle.v1.OracleRequestPacketData.request_key', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='prepare_gas', full_name='oracle.v1.OracleRequestPacketData.prepare_gas', index=7, - number=8, type=4, cpp_type=4, label=1, + name='prepare_gas', full_name='oracle.v1.OracleRequestPacketData.prepare_gas', index=6, + number=7, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='execute_gas', full_name='oracle.v1.OracleRequestPacketData.execute_gas', index=8, - number=9, type=4, cpp_type=4, label=1, + name='execute_gas', full_name='oracle.v1.OracleRequestPacketData.execute_gas', index=7, + number=8, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -522,7 +515,7 @@ oneofs=[ ], serialized_start=1222, - serialized_end=1565, + serialized_end=1544, ) @@ -536,7 +529,7 @@ fields=[ _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.OracleRequestPacketAcknowledgement.request_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -553,8 +546,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1567, - serialized_end=1657, + serialized_start=1546, + serialized_end=1636, ) @@ -575,7 +568,7 @@ serialized_options=b'\342\336\037\010ClientID', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.OracleResponsePacketData.request_id', index=1, - number=2, type=3, cpp_type=2, label=1, + number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -627,8 +620,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1660, - serialized_end=1902, + serialized_start=1639, + serialized_end=1881, ) @@ -649,7 +642,7 @@ serialized_options=b'\342\336\037\010ClientID', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='oracle_script_id', full_name='oracle.v1.Result.oracle_script_id', index=1, - number=2, type=3, cpp_type=2, label=1, + number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -677,7 +670,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.Result.request_id', index=5, - number=6, type=3, cpp_type=2, label=1, + number=6, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -729,8 +722,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1905, - serialized_end=2249, + serialized_start=1884, + serialized_end=2228, ) @@ -768,8 +761,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2251, - serialized_end=2346, + serialized_start=2230, + serialized_end=2325, ) @@ -807,8 +800,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2348, - serialized_end=2397, + serialized_start=2327, + serialized_end=2376, ) @@ -835,50 +828,64 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='expiration_block_count', full_name='oracle.v1.Params.expiration_block_count', index=2, + name='max_calldata_size', full_name='oracle.v1.Params.max_calldata_size', index=2, number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='base_owasm_gas', full_name='oracle.v1.Params.base_owasm_gas', index=3, + name='max_report_data_size', full_name='oracle.v1.Params.max_report_data_size', index=3, number=4, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='per_validator_request_gas', full_name='oracle.v1.Params.per_validator_request_gas', index=4, + name='expiration_block_count', full_name='oracle.v1.Params.expiration_block_count', index=4, number=5, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sampling_try_count', full_name='oracle.v1.Params.sampling_try_count', index=5, + name='base_owasm_gas', full_name='oracle.v1.Params.base_owasm_gas', index=5, number=6, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='oracle_reward_percentage', full_name='oracle.v1.Params.oracle_reward_percentage', index=6, + name='per_validator_request_gas', full_name='oracle.v1.Params.per_validator_request_gas', index=6, number=7, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='inactive_penalty_duration', full_name='oracle.v1.Params.inactive_penalty_duration', index=7, + name='sampling_try_count', full_name='oracle.v1.Params.sampling_try_count', index=7, number=8, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='ibc_request_enabled', full_name='oracle.v1.Params.ibc_request_enabled', index=8, - number=9, type=8, cpp_type=7, label=1, + name='oracle_reward_percentage', full_name='oracle.v1.Params.oracle_reward_percentage', index=8, + number=9, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='inactive_penalty_duration', full_name='oracle.v1.Params.inactive_penalty_duration', index=9, + number=10, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='ibc_request_enabled', full_name='oracle.v1.Params.ibc_request_enabled', index=10, + number=11, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -895,8 +902,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2400, - serialized_end=2712, + serialized_start=2379, + serialized_end=2748, ) @@ -910,7 +917,7 @@ fields=[ _descriptor.FieldDescriptor( name='request_ids', full_name='oracle.v1.PendingResolveList.request_ids', index=0, - number=1, type=3, cpp_type=2, label=3, + number=1, type=4, cpp_type=4, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -927,8 +934,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2714, - serialized_end=2761, + serialized_start=2750, + serialized_end=2797, ) @@ -966,47 +973,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2763, - serialized_end=2818, -) - - -_REPORTERSPERVALIDATOR = _descriptor.Descriptor( - name='ReportersPerValidator', - full_name='oracle.v1.ReportersPerValidator', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='validator', full_name='oracle.v1.ReportersPerValidator.validator', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reporters', full_name='oracle.v1.ReportersPerValidator.reporters', index=1, - number=2, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\310\336\037\000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2820, - serialized_end=2887, + serialized_start=2799, + serialized_end=2854, ) @@ -1034,14 +1002,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.RequestVerification.request_id', index=2, - number=3, type=3, cpp_type=2, label=1, + number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\342\336\037\tRequestID\372\336\037\tRequestID', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='external_id', full_name='oracle.v1.RequestVerification.external_id', index=3, - number=4, type=3, cpp_type=2, label=1, + number=4, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -1058,8 +1026,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2890, - serialized_end=3066, + serialized_start=2857, + serialized_end=3033, ) @@ -1094,7 +1062,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.PriceResult.request_id', index=3, - number=4, type=3, cpp_type=2, label=1, + number=4, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -1118,8 +1086,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3069, - serialized_end=3200, + serialized_start=3036, + serialized_end=3167, ) _DATASOURCE.fields_by_name['fee'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN @@ -1145,7 +1113,6 @@ DESCRIPTOR.message_types_by_name['Params'] = _PARAMS DESCRIPTOR.message_types_by_name['PendingResolveList'] = _PENDINGRESOLVELIST DESCRIPTOR.message_types_by_name['IBCChannel'] = _IBCCHANNEL -DESCRIPTOR.message_types_by_name['ReportersPerValidator'] = _REPORTERSPERVALIDATOR DESCRIPTOR.message_types_by_name['RequestVerification'] = _REQUESTVERIFICATION DESCRIPTOR.message_types_by_name['PriceResult'] = _PRICERESULT DESCRIPTOR.enum_types_by_name['ResolveStatus'] = _RESOLVESTATUS @@ -1256,13 +1223,6 @@ }) _sym_db.RegisterMessage(IBCChannel) -ReportersPerValidator = _reflection.GeneratedProtocolMessageType('ReportersPerValidator', (_message.Message,), { - 'DESCRIPTOR' : _REPORTERSPERVALIDATOR, - '__module__' : 'oracle.v1.oracle_pb2' - # @@protoc_insertion_point(class_scope:oracle.v1.ReportersPerValidator) - }) -_sym_db.RegisterMessage(ReportersPerValidator) - RequestVerification = _reflection.GeneratedProtocolMessageType('RequestVerification', (_message.Message,), { 'DESCRIPTOR' : _REQUESTVERIFICATION, '__module__' : 'oracle.v1.oracle_pb2' @@ -1319,7 +1279,6 @@ _PARAMS._options = None _PENDINGRESOLVELIST._options = None _IBCCHANNEL._options = None -_REPORTERSPERVALIDATOR.fields_by_name['reporters']._options = None _REQUESTVERIFICATION.fields_by_name['chain_id']._options = None _REQUESTVERIFICATION.fields_by_name['request_id']._options = None _REQUESTVERIFICATION.fields_by_name['external_id']._options = None diff --git a/pyband/proto/oracle/v1/oracle_pb2.pyi b/pyband/proto/oracle/v1/oracle_pb2.pyi deleted file mode 100644 index 5fa5030..0000000 --- a/pyband/proto/oracle/v1/oracle_pb2.pyi +++ /dev/null @@ -1,472 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class ResolveStatus(metaclass=_ResolveStatus): - V = typing.NewType('V', builtins.int) - -global___ResolveStatus = ResolveStatus - -RESOLVE_STATUS_OPEN_UNSPECIFIED = ResolveStatus.V(0) -RESOLVE_STATUS_SUCCESS = ResolveStatus.V(1) -RESOLVE_STATUS_FAILURE = ResolveStatus.V(2) -RESOLVE_STATUS_EXPIRED = ResolveStatus.V(3) - -class _ResolveStatus(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ResolveStatus.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - RESOLVE_STATUS_OPEN_UNSPECIFIED = ResolveStatus.V(0) - RESOLVE_STATUS_SUCCESS = ResolveStatus.V(1) - RESOLVE_STATUS_FAILURE = ResolveStatus.V(2) - RESOLVE_STATUS_EXPIRED = ResolveStatus.V(3) - -class DataSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - OWNER_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - FILENAME_FIELD_NUMBER: builtins.int - TREASURY_FIELD_NUMBER: builtins.int - FEE_FIELD_NUMBER: builtins.int - owner: typing.Text = ... - name: typing.Text = ... - description: typing.Text = ... - filename: typing.Text = ... - treasury: typing.Text = ... - - @property - def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - owner : typing.Text = ..., - name : typing.Text = ..., - description : typing.Text = ..., - filename : typing.Text = ..., - treasury : typing.Text = ..., - fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"fee",b"fee",u"filename",b"filename",u"name",b"name",u"owner",b"owner",u"treasury",b"treasury"]) -> None: ... -global___DataSource = DataSource - -class OracleScript(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - OWNER_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - FILENAME_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - SOURCE_CODE_URL_FIELD_NUMBER: builtins.int - owner: typing.Text = ... - name: typing.Text = ... - description: typing.Text = ... - filename: typing.Text = ... - schema: typing.Text = ... - source_code_url: typing.Text = ... - - def __init__(self, - *, - owner : typing.Text = ..., - name : typing.Text = ..., - description : typing.Text = ..., - filename : typing.Text = ..., - schema : typing.Text = ..., - source_code_url : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"filename",b"filename",u"name",b"name",u"owner",b"owner",u"schema",b"schema",u"source_code_url",b"source_code_url"]) -> None: ... -global___OracleScript = OracleScript - -class RawRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EXTERNAL_ID_FIELD_NUMBER: builtins.int - DATA_SOURCE_ID_FIELD_NUMBER: builtins.int - CALLDATA_FIELD_NUMBER: builtins.int - external_id: builtins.int = ... - data_source_id: builtins.int = ... - calldata: builtins.bytes = ... - - def __init__(self, - *, - external_id : builtins.int = ..., - data_source_id : builtins.int = ..., - calldata : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"calldata",b"calldata",u"data_source_id",b"data_source_id",u"external_id",b"external_id"]) -> None: ... -global___RawRequest = RawRequest - -class RawReport(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EXTERNAL_ID_FIELD_NUMBER: builtins.int - EXIT_CODE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - external_id: builtins.int = ... - exit_code: builtins.int = ... - data: builtins.bytes = ... - - def __init__(self, - *, - external_id : builtins.int = ..., - exit_code : builtins.int = ..., - data : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"exit_code",b"exit_code",u"external_id",b"external_id"]) -> None: ... -global___RawReport = RawReport - -class Request(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int - CALLDATA_FIELD_NUMBER: builtins.int - REQUESTED_VALIDATORS_FIELD_NUMBER: builtins.int - MIN_COUNT_FIELD_NUMBER: builtins.int - REQUEST_HEIGHT_FIELD_NUMBER: builtins.int - REQUEST_TIME_FIELD_NUMBER: builtins.int - CLIENT_ID_FIELD_NUMBER: builtins.int - RAW_REQUESTS_FIELD_NUMBER: builtins.int - IBC_CHANNEL_FIELD_NUMBER: builtins.int - EXECUTE_GAS_FIELD_NUMBER: builtins.int - oracle_script_id: builtins.int = ... - calldata: builtins.bytes = ... - - @property - def requested_validators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - min_count: builtins.int = ... - request_height: builtins.int = ... - request_time: builtins.int = ... - client_id: typing.Text = ... - execute_gas: builtins.int = ... - - @property - def raw_requests(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RawRequest]: ... - - @property - def ibc_channel(self) -> global___IBCChannel: ... - - def __init__(self, - *, - oracle_script_id : builtins.int = ..., - calldata : builtins.bytes = ..., - requested_validators : typing.Optional[typing.Iterable[typing.Text]] = ..., - min_count : builtins.int = ..., - request_height : builtins.int = ..., - request_time : builtins.int = ..., - client_id : typing.Text = ..., - raw_requests : typing.Optional[typing.Iterable[global___RawRequest]] = ..., - ibc_channel : typing.Optional[global___IBCChannel] = ..., - execute_gas : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"ibc_channel",b"ibc_channel"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"ibc_channel",b"ibc_channel",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"raw_requests",b"raw_requests",u"request_height",b"request_height",u"request_time",b"request_time",u"requested_validators",b"requested_validators"]) -> None: ... -global___Request = Request - -class Report(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_FIELD_NUMBER: builtins.int - IN_BEFORE_RESOLVE_FIELD_NUMBER: builtins.int - RAW_REPORTS_FIELD_NUMBER: builtins.int - validator: typing.Text = ... - in_before_resolve: builtins.bool = ... - - @property - def raw_reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RawReport]: ... - - def __init__(self, - *, - validator : typing.Text = ..., - in_before_resolve : builtins.bool = ..., - raw_reports : typing.Optional[typing.Iterable[global___RawReport]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"in_before_resolve",b"in_before_resolve",u"raw_reports",b"raw_reports",u"validator",b"validator"]) -> None: ... -global___Report = Report - -class OracleRequestPacketData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int - CALLDATA_FIELD_NUMBER: builtins.int - ASK_COUNT_FIELD_NUMBER: builtins.int - MIN_COUNT_FIELD_NUMBER: builtins.int - FEE_LIMIT_FIELD_NUMBER: builtins.int - REQUEST_KEY_FIELD_NUMBER: builtins.int - PREPARE_GAS_FIELD_NUMBER: builtins.int - EXECUTE_GAS_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - oracle_script_id: builtins.int = ... - calldata: builtins.bytes = ... - ask_count: builtins.int = ... - min_count: builtins.int = ... - request_key: typing.Text = ... - prepare_gas: builtins.int = ... - execute_gas: builtins.int = ... - - @property - def fee_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - client_id : typing.Text = ..., - oracle_script_id : builtins.int = ..., - calldata : builtins.bytes = ..., - ask_count : builtins.int = ..., - min_count : builtins.int = ..., - fee_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - request_key : typing.Text = ..., - prepare_gas : builtins.int = ..., - execute_gas : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"fee_limit",b"fee_limit",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"prepare_gas",b"prepare_gas",u"request_key",b"request_key"]) -> None: ... -global___OracleRequestPacketData = OracleRequestPacketData - -class OracleRequestPacketAcknowledgement(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_ID_FIELD_NUMBER: builtins.int - request_id: builtins.int = ... - - def __init__(self, - *, - request_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"request_id",b"request_id"]) -> None: ... -global___OracleRequestPacketAcknowledgement = OracleRequestPacketAcknowledgement - -class OracleResponsePacketData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - ANS_COUNT_FIELD_NUMBER: builtins.int - REQUEST_TIME_FIELD_NUMBER: builtins.int - RESOLVE_TIME_FIELD_NUMBER: builtins.int - RESOLVE_STATUS_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - request_id: builtins.int = ... - ans_count: builtins.int = ... - request_time: builtins.int = ... - resolve_time: builtins.int = ... - resolve_status: global___ResolveStatus.V = ... - result: builtins.bytes = ... - - def __init__(self, - *, - client_id : typing.Text = ..., - request_id : builtins.int = ..., - ans_count : builtins.int = ..., - request_time : builtins.int = ..., - resolve_time : builtins.int = ..., - resolve_status : global___ResolveStatus.V = ..., - result : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ans_count",b"ans_count",u"client_id",b"client_id",u"request_id",b"request_id",u"request_time",b"request_time",u"resolve_status",b"resolve_status",u"resolve_time",b"resolve_time",u"result",b"result"]) -> None: ... -global___OracleResponsePacketData = OracleResponsePacketData - -class Result(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CLIENT_ID_FIELD_NUMBER: builtins.int - ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int - CALLDATA_FIELD_NUMBER: builtins.int - ASK_COUNT_FIELD_NUMBER: builtins.int - MIN_COUNT_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - ANS_COUNT_FIELD_NUMBER: builtins.int - REQUEST_TIME_FIELD_NUMBER: builtins.int - RESOLVE_TIME_FIELD_NUMBER: builtins.int - RESOLVE_STATUS_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - client_id: typing.Text = ... - oracle_script_id: builtins.int = ... - calldata: builtins.bytes = ... - ask_count: builtins.int = ... - min_count: builtins.int = ... - request_id: builtins.int = ... - ans_count: builtins.int = ... - request_time: builtins.int = ... - resolve_time: builtins.int = ... - resolve_status: global___ResolveStatus.V = ... - result: builtins.bytes = ... - - def __init__(self, - *, - client_id : typing.Text = ..., - oracle_script_id : builtins.int = ..., - calldata : builtins.bytes = ..., - ask_count : builtins.int = ..., - min_count : builtins.int = ..., - request_id : builtins.int = ..., - ans_count : builtins.int = ..., - request_time : builtins.int = ..., - resolve_time : builtins.int = ..., - resolve_status : global___ResolveStatus.V = ..., - result : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ans_count",b"ans_count",u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"request_id",b"request_id",u"request_time",b"request_time",u"resolve_status",b"resolve_status",u"resolve_time",b"resolve_time",u"result",b"result"]) -> None: ... -global___Result = Result - -class ValidatorStatus(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - IS_ACTIVE_FIELD_NUMBER: builtins.int - SINCE_FIELD_NUMBER: builtins.int - is_active: builtins.bool = ... - - @property - def since(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - is_active : builtins.bool = ..., - since : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"since",b"since"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"is_active",b"is_active",u"since",b"since"]) -> None: ... -global___ValidatorStatus = ValidatorStatus - -class ActiveValidator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - POWER_FIELD_NUMBER: builtins.int - address: typing.Text = ... - power: builtins.int = ... - - def __init__(self, - *, - address : typing.Text = ..., - power : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... -global___ActiveValidator = ActiveValidator - -class Params(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MAX_RAW_REQUEST_COUNT_FIELD_NUMBER: builtins.int - MAX_ASK_COUNT_FIELD_NUMBER: builtins.int - EXPIRATION_BLOCK_COUNT_FIELD_NUMBER: builtins.int - BASE_OWASM_GAS_FIELD_NUMBER: builtins.int - PER_VALIDATOR_REQUEST_GAS_FIELD_NUMBER: builtins.int - SAMPLING_TRY_COUNT_FIELD_NUMBER: builtins.int - ORACLE_REWARD_PERCENTAGE_FIELD_NUMBER: builtins.int - INACTIVE_PENALTY_DURATION_FIELD_NUMBER: builtins.int - IBC_REQUEST_ENABLED_FIELD_NUMBER: builtins.int - max_raw_request_count: builtins.int = ... - max_ask_count: builtins.int = ... - expiration_block_count: builtins.int = ... - base_owasm_gas: builtins.int = ... - per_validator_request_gas: builtins.int = ... - sampling_try_count: builtins.int = ... - oracle_reward_percentage: builtins.int = ... - inactive_penalty_duration: builtins.int = ... - ibc_request_enabled: builtins.bool = ... - - def __init__(self, - *, - max_raw_request_count : builtins.int = ..., - max_ask_count : builtins.int = ..., - expiration_block_count : builtins.int = ..., - base_owasm_gas : builtins.int = ..., - per_validator_request_gas : builtins.int = ..., - sampling_try_count : builtins.int = ..., - oracle_reward_percentage : builtins.int = ..., - inactive_penalty_duration : builtins.int = ..., - ibc_request_enabled : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"base_owasm_gas",b"base_owasm_gas",u"expiration_block_count",b"expiration_block_count",u"ibc_request_enabled",b"ibc_request_enabled",u"inactive_penalty_duration",b"inactive_penalty_duration",u"max_ask_count",b"max_ask_count",u"max_raw_request_count",b"max_raw_request_count",u"oracle_reward_percentage",b"oracle_reward_percentage",u"per_validator_request_gas",b"per_validator_request_gas",u"sampling_try_count",b"sampling_try_count"]) -> None: ... -global___Params = Params - -class PendingResolveList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_IDS_FIELD_NUMBER: builtins.int - - @property - def request_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - def __init__(self, - *, - request_ids : typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"request_ids",b"request_ids"]) -> None: ... -global___PendingResolveList = PendingResolveList - -class IBCChannel(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - port_id: typing.Text = ... - channel_id: typing.Text = ... - - def __init__(self, - *, - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... -global___IBCChannel = IBCChannel - -class ReportersPerValidator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_FIELD_NUMBER: builtins.int - REPORTERS_FIELD_NUMBER: builtins.int - validator: typing.Text = ... - - @property - def reporters(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - validator : typing.Text = ..., - reporters : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"reporters",b"reporters",u"validator",b"validator"]) -> None: ... -global___ReportersPerValidator = ReportersPerValidator - -class RequestVerification(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHAIN_ID_FIELD_NUMBER: builtins.int - VALIDATOR_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - EXTERNAL_ID_FIELD_NUMBER: builtins.int - chain_id: typing.Text = ... - validator: typing.Text = ... - request_id: builtins.int = ... - external_id: builtins.int = ... - - def __init__(self, - *, - chain_id : typing.Text = ..., - validator : typing.Text = ..., - request_id : builtins.int = ..., - external_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"external_id",b"external_id",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... -global___RequestVerification = RequestVerification - -class PriceResult(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SYMBOL_FIELD_NUMBER: builtins.int - MULTIPLIER_FIELD_NUMBER: builtins.int - PX_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - RESOLVE_TIME_FIELD_NUMBER: builtins.int - symbol: typing.Text = ... - multiplier: builtins.int = ... - px: builtins.int = ... - request_id: builtins.int = ... - resolve_time: builtins.int = ... - - def __init__(self, - *, - symbol : typing.Text = ..., - multiplier : builtins.int = ..., - px : builtins.int = ..., - request_id : builtins.int = ..., - resolve_time : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"multiplier",b"multiplier",u"px",b"px",u"request_id",b"request_id",u"resolve_time",b"resolve_time",u"symbol",b"symbol"]) -> None: ... -global___PriceResult = PriceResult diff --git a/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi b/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi deleted file mode 100644 index 1306f22..0000000 --- a/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .oracle_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/query_pb2.py b/pyband/proto/oracle/v1/query_pb2.py index 927e678..1d4b36b 100644 --- a/pyband/proto/oracle/v1/query_pb2.py +++ b/pyband/proto/oracle/v1/query_pb2.py @@ -12,9 +12,11 @@ from gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from oracle.v1 import oracle_pb2 as oracle_dot_v1_dot_oracle__pb2 from cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 +from cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 DESCRIPTOR = _descriptor.FileDescriptor( @@ -23,9 +25,9 @@ syntax='proto3', serialized_options=b'Z,github.com/bandprotocol/chain/x/oracle/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x15oracle/v1/query.proto\x12\toracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x16oracle/v1/oracle.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x14\n\x12QueryCountsRequest\"d\n\x13QueryCountsResponse\x12\x19\n\x11\x64\x61ta_source_count\x18\x01 \x01(\x03\x12\x1b\n\x13oracle_script_count\x18\x02 \x01(\x03\x12\x15\n\rrequest_count\x18\x03 \x01(\x03\"%\n\x10QueryDataRequest\x12\x11\n\tdata_hash\x18\x01 \x01(\t\"!\n\x11QueryDataResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"0\n\x16QueryDataSourceRequest\x12\x16\n\x0e\x64\x61ta_source_id\x18\x01 \x01(\x03\"E\n\x17QueryDataSourceResponse\x12*\n\x0b\x64\x61ta_source\x18\x01 \x01(\x0b\x32\x15.oracle.v1.DataSource\"4\n\x18QueryOracleScriptRequest\x12\x18\n\x10oracle_script_id\x18\x01 \x01(\x03\"K\n\x19QueryOracleScriptResponse\x12.\n\roracle_script\x18\x01 \x01(\x0b\x32\x17.oracle.v1.OracleScript\")\n\x13QueryRequestRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\x03\"\x88\x01\n\x14QueryRequestResponse\x12#\n\x07request\x18\x01 \x01(\x0b\x32\x12.oracle.v1.Request\x12(\n\x07reports\x18\x02 \x03(\x0b\x32\x11.oracle.v1.ReportB\x04\xc8\xde\x1f\x00\x12!\n\x06result\x18\x03 \x01(\x0b\x32\x11.oracle.v1.Result\"8\n\x1bQueryPendingRequestsRequest\x12\x19\n\x11validator_address\x18\x01 \x01(\t\"C\n\x1cQueryPendingRequestsResponse\x12#\n\x0brequest_ids\x18\x01 \x03(\x03\x42\x0e\xe2\xde\x1f\nRequestIDs\"\x14\n\x12QueryParamsRequest\">\n\x13QueryParamsResponse\x12\'\n\x06params\x18\x01 \x01(\x0b\x32\x11.oracle.v1.ParamsB\x04\xc8\xde\x1f\x00\"2\n\x15QueryValidatorRequest\x12\x19\n\x11validator_address\x18\x01 \x01(\t\"D\n\x16QueryValidatorResponse\x12*\n\x06status\x18\x01 \x01(\x0b\x32\x1a.oracle.v1.ValidatorStatus\"2\n\x15QueryReportersRequest\x12\x19\n\x11validator_address\x18\x01 \x01(\t\"*\n\x16QueryReportersResponse\x12\x10\n\x08reporter\x18\x01 \x03(\t\"\x1e\n\x1cQueryActiveValidatorsRequest\"O\n\x1dQueryActiveValidatorsResponse\x12.\n\nvalidators\x18\x01 \x03(\x0b\x32\x1a.oracle.v1.ActiveValidator\"m\n\x19QueryRequestSearchRequest\x12\x18\n\x10oracle_script_id\x18\x01 \x01(\x03\x12\x10\n\x08\x63\x61lldata\x18\x02 \x01(\t\x12\x11\n\task_count\x18\x03 \x01(\x04\x12\x11\n\tmin_count\x18\x04 \x01(\x04\"N\n\x1aQueryRequestSearchResponse\x12\x30\n\x07request\x18\x01 \x01(\x0b\x32\x1f.oracle.v1.QueryRequestResponse\"Q\n\x18QueryRequestPriceRequest\x12\x0f\n\x07symbols\x18\x01 \x03(\t\x12\x11\n\task_count\x18\x02 \x01(\x03\x12\x11\n\tmin_count\x18\x03 \x01(\x03\"J\n\x19QueryRequestPriceResponse\x12-\n\rprice_results\x18\x01 \x03(\x0b\x32\x16.oracle.v1.PriceResult\"\x94\x01\n\x1fQueryRequestVerificationRequest\x12\x10\n\x08\x63hain_id\x18\x01 \x01(\t\x12\x11\n\tvalidator\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\x03\x12\x13\n\x0b\x65xternal_id\x18\x04 \x01(\x03\x12\x10\n\x08reporter\x18\x05 \x01(\t\x12\x11\n\tsignature\x18\x06 \x01(\x0c\"\x88\x01\n QueryRequestVerificationResponse\x12\x10\n\x08\x63hain_id\x18\x01 \x01(\t\x12\x11\n\tvalidator\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\x03\x12\x13\n\x0b\x65xternal_id\x18\x04 \x01(\x03\x12\x16\n\x0e\x64\x61ta_source_id\x18\x05 \x01(\x03\"S\n\x17QueryRequestPoolRequest\x12\x13\n\x0brequest_key\x18\x01 \x01(\t\x12\x0f\n\x07port_id\x18\x02 \x01(\t\x12\x12\n\nchannel_id\x18\x03 \x01(\t\"\x96\x01\n\x18QueryRequestPoolResponse\x12\x1c\n\x14request_pool_address\x18\x01 \x01(\t\x12\\\n\x07\x62\x61lance\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins2\xb0\x0e\n\x05Query\x12\x62\n\x06\x43ounts\x12\x1d.oracle.v1.QueryCountsRequest\x1a\x1e.oracle.v1.QueryCountsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/oracle/v1/counts\x12\x66\n\x04\x44\x61ta\x12\x1b.oracle.v1.QueryDataRequest\x1a\x1c.oracle.v1.QueryDataResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/oracle/v1/data/{data_hash}\x12\x85\x01\n\nDataSource\x12!.oracle.v1.QueryDataSourceRequest\x1a\".oracle.v1.QueryDataSourceResponse\"0\x82\xd3\xe4\x93\x02*\x12(/oracle/v1/data_sources/{data_source_id}\x12\x8f\x01\n\x0cOracleScript\x12#.oracle.v1.QueryOracleScriptRequest\x1a$.oracle.v1.QueryOracleScriptResponse\"4\x82\xd3\xe4\x93\x02.\x12,/oracle/v1/oracle_scripts/{oracle_script_id}\x12t\n\x07Request\x12\x1e.oracle.v1.QueryRequestRequest\x1a\x1f.oracle.v1.QueryRequestResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /oracle/v1/requests/{request_id}\x12\x9b\x01\n\x0fPendingRequests\x12&.oracle.v1.QueryPendingRequestsRequest\x1a\'.oracle.v1.QueryPendingRequestsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//oracle/v1/pending_requests/{validator_address}\x12\x83\x01\n\tValidator\x12 .oracle.v1.QueryValidatorRequest\x1a!.oracle.v1.QueryValidatorResponse\"1\x82\xd3\xe4\x93\x02+\x12)/oracle/v1/validators/{validator_address}\x12\x82\x01\n\tReporters\x12 .oracle.v1.QueryReportersRequest\x1a!.oracle.v1.QueryReportersResponse\"0\x82\xd3\xe4\x93\x02*\x12(/oracle/v1/reporters/{validator_address}\x12\x8b\x01\n\x10\x41\x63tiveValidators\x12\'.oracle.v1.QueryActiveValidatorsRequest\x1a(.oracle.v1.QueryActiveValidatorsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/oracle/v1/active_validators\x12\x62\n\x06Params\x12\x1d.oracle.v1.QueryParamsRequest\x1a\x1e.oracle.v1.QueryParamsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/oracle/v1/params\x12\x7f\n\rRequestSearch\x12$.oracle.v1.QueryRequestSearchRequest\x1a%.oracle.v1.QueryRequestSearchResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/oracle/v1/request_search\x12|\n\x0cRequestPrice\x12#.oracle.v1.QueryRequestPriceRequest\x1a$.oracle.v1.QueryRequestPriceResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/oracle/v1/request_prices\x12\x91\x01\n\x13RequestVerification\x12*.oracle.v1.QueryRequestVerificationRequest\x1a+.oracle.v1.QueryRequestVerificationResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/oracle/v1/verify_request\x12\x9c\x01\n\x0bRequestPool\x12\".oracle.v1.QueryRequestPoolRequest\x1a#.oracle.v1.QueryRequestPoolResponse\"D\x82\xd3\xe4\x93\x02>\x12\n\x13QueryParamsResponse\x12\'\n\x06params\x18\x01 \x01(\x0b\x32\x11.oracle.v1.ParamsB\x04\xc8\xde\x1f\x00\"2\n\x15QueryValidatorRequest\x12\x19\n\x11validator_address\x18\x01 \x01(\t\"D\n\x16QueryValidatorResponse\x12*\n\x06status\x18\x01 \x01(\x0b\x32\x1a.oracle.v1.ValidatorStatus\"M\n\x16QueryIsReporterRequest\x12\x19\n\x11validator_address\x18\x01 \x01(\t\x12\x18\n\x10reporter_address\x18\x02 \x01(\t\".\n\x17QueryIsReporterResponse\x12\x13\n\x0bis_reporter\x18\x01 \x01(\x08\"2\n\x15QueryReportersRequest\x12\x19\n\x11validator_address\x18\x01 \x01(\t\"*\n\x16QueryReportersResponse\x12\x10\n\x08reporter\x18\x01 \x03(\t\"\x1e\n\x1cQueryActiveValidatorsRequest\"O\n\x1dQueryActiveValidatorsResponse\x12.\n\nvalidators\x18\x01 \x03(\x0b\x32\x1a.oracle.v1.ActiveValidator\"m\n\x19QueryRequestSearchRequest\x12\x18\n\x10oracle_script_id\x18\x01 \x01(\x04\x12\x10\n\x08\x63\x61lldata\x18\x02 \x01(\t\x12\x11\n\task_count\x18\x03 \x01(\x04\x12\x11\n\tmin_count\x18\x04 \x01(\x04\"N\n\x1aQueryRequestSearchResponse\x12\x30\n\x07request\x18\x01 \x01(\x0b\x32\x1f.oracle.v1.QueryRequestResponse\"Q\n\x18QueryRequestPriceRequest\x12\x0f\n\x07symbols\x18\x01 \x03(\t\x12\x11\n\task_count\x18\x02 \x01(\x04\x12\x11\n\tmin_count\x18\x03 \x01(\x04\"J\n\x19QueryRequestPriceResponse\x12-\n\rprice_results\x18\x01 \x03(\x0b\x32\x16.oracle.v1.PriceResult\"\x94\x01\n\x1fQueryRequestVerificationRequest\x12\x10\n\x08\x63hain_id\x18\x01 \x01(\t\x12\x11\n\tvalidator\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\x04\x12\x13\n\x0b\x65xternal_id\x18\x04 \x01(\x04\x12\x10\n\x08reporter\x18\x05 \x01(\t\x12\x11\n\tsignature\x18\x06 \x01(\x0c\"\x88\x01\n QueryRequestVerificationResponse\x12\x10\n\x08\x63hain_id\x18\x01 \x01(\t\x12\x11\n\tvalidator\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\x04\x12\x13\n\x0b\x65xternal_id\x18\x04 \x01(\x04\x12\x16\n\x0e\x64\x61ta_source_id\x18\x05 \x01(\x04\x32\xab\x0e\n\x05Query\x12\x62\n\x06\x43ounts\x12\x1d.oracle.v1.QueryCountsRequest\x1a\x1e.oracle.v1.QueryCountsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/oracle/v1/counts\x12\x66\n\x04\x44\x61ta\x12\x1b.oracle.v1.QueryDataRequest\x1a\x1c.oracle.v1.QueryDataResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/oracle/v1/data/{data_hash}\x12\x85\x01\n\nDataSource\x12!.oracle.v1.QueryDataSourceRequest\x1a\".oracle.v1.QueryDataSourceResponse\"0\x82\xd3\xe4\x93\x02*\x12(/oracle/v1/data_sources/{data_source_id}\x12\x8f\x01\n\x0cOracleScript\x12#.oracle.v1.QueryOracleScriptRequest\x1a$.oracle.v1.QueryOracleScriptResponse\"4\x82\xd3\xe4\x93\x02.\x12,/oracle/v1/oracle_scripts/{oracle_script_id}\x12t\n\x07Request\x12\x1e.oracle.v1.QueryRequestRequest\x1a\x1f.oracle.v1.QueryRequestResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /oracle/v1/requests/{request_id}\x12\x9b\x01\n\x0fPendingRequests\x12&.oracle.v1.QueryPendingRequestsRequest\x1a\'.oracle.v1.QueryPendingRequestsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//oracle/v1/pending_requests/{validator_address}\x12\x83\x01\n\tValidator\x12 .oracle.v1.QueryValidatorRequest\x1a!.oracle.v1.QueryValidatorResponse\"1\x82\xd3\xe4\x93\x02+\x12)/oracle/v1/validators/{validator_address}\x12\x97\x01\n\nIsReporter\x12!.oracle.v1.QueryIsReporterRequest\x1a\".oracle.v1.QueryIsReporterResponse\"B\x82\xd3\xe4\x93\x02<\x12:/oracle/v1/reporter/{validator_address}/{reporter_address}\x12\x82\x01\n\tReporters\x12 .oracle.v1.QueryReportersRequest\x1a!.oracle.v1.QueryReportersResponse\"0\x82\xd3\xe4\x93\x02*\x12(/oracle/v1/reporters/{validator_address}\x12\x8b\x01\n\x10\x41\x63tiveValidators\x12\'.oracle.v1.QueryActiveValidatorsRequest\x1a(.oracle.v1.QueryActiveValidatorsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/oracle/v1/active_validators\x12\x62\n\x06Params\x12\x1d.oracle.v1.QueryParamsRequest\x1a\x1e.oracle.v1.QueryParamsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/oracle/v1/params\x12\x7f\n\rRequestSearch\x12$.oracle.v1.QueryRequestSearchRequest\x1a%.oracle.v1.QueryRequestSearchResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/oracle/v1/request_search\x12|\n\x0cRequestPrice\x12#.oracle.v1.QueryRequestPriceRequest\x1a$.oracle.v1.QueryRequestPriceResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/oracle/v1/request_prices\x12\x91\x01\n\x13RequestVerification\x12*.oracle.v1.QueryRequestVerificationRequest\x1a+.oracle.v1.QueryRequestVerificationResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/oracle/v1/verify_requestB.Z,github.com/bandprotocol/chain/x/oracle/typesb\x06proto3' , - dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,oracle_dot_v1_dot_oracle__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,]) + dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,oracle_dot_v1_dot_oracle__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,cosmos__proto_dot_cosmos__pb2.DESCRIPTOR,]) @@ -50,8 +52,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=144, - serialized_end=164, + serialized_start=198, + serialized_end=218, ) @@ -65,21 +67,21 @@ fields=[ _descriptor.FieldDescriptor( name='data_source_count', full_name='oracle.v1.QueryCountsResponse.data_source_count', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='oracle_script_count', full_name='oracle.v1.QueryCountsResponse.oracle_script_count', index=1, - number=2, type=3, cpp_type=2, label=1, + number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_count', full_name='oracle.v1.QueryCountsResponse.request_count', index=2, - number=3, type=3, cpp_type=2, label=1, + number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -96,8 +98,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=166, - serialized_end=266, + serialized_start=220, + serialized_end=320, ) @@ -128,8 +130,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=268, - serialized_end=305, + serialized_start=322, + serialized_end=359, ) @@ -160,8 +162,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=307, - serialized_end=340, + serialized_start=361, + serialized_end=394, ) @@ -175,7 +177,7 @@ fields=[ _descriptor.FieldDescriptor( name='data_source_id', full_name='oracle.v1.QueryDataSourceRequest.data_source_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -192,8 +194,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=342, - serialized_end=390, + serialized_start=396, + serialized_end=444, ) @@ -224,8 +226,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=392, - serialized_end=461, + serialized_start=446, + serialized_end=515, ) @@ -239,7 +241,7 @@ fields=[ _descriptor.FieldDescriptor( name='oracle_script_id', full_name='oracle.v1.QueryOracleScriptRequest.oracle_script_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -256,8 +258,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=463, - serialized_end=515, + serialized_start=517, + serialized_end=569, ) @@ -288,8 +290,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=517, - serialized_end=592, + serialized_start=571, + serialized_end=646, ) @@ -303,7 +305,7 @@ fields=[ _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.QueryRequestRequest.request_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -320,8 +322,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=594, - serialized_end=635, + serialized_start=648, + serialized_end=689, ) @@ -366,8 +368,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=638, - serialized_end=774, + serialized_start=692, + serialized_end=828, ) @@ -398,8 +400,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=776, - serialized_end=832, + serialized_start=830, + serialized_end=886, ) @@ -413,7 +415,7 @@ fields=[ _descriptor.FieldDescriptor( name='request_ids', full_name='oracle.v1.QueryPendingRequestsResponse.request_ids', index=0, - number=1, type=3, cpp_type=2, label=3, + number=1, type=4, cpp_type=4, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -430,8 +432,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=834, - serialized_end=901, + serialized_start=888, + serialized_end=955, ) @@ -455,8 +457,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=903, - serialized_end=923, + serialized_start=957, + serialized_end=977, ) @@ -487,8 +489,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=925, - serialized_end=987, + serialized_start=979, + serialized_end=1041, ) @@ -519,8 +521,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=989, - serialized_end=1039, + serialized_start=1043, + serialized_end=1093, ) @@ -551,8 +553,79 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1041, - serialized_end=1109, + serialized_start=1095, + serialized_end=1163, +) + + +_QUERYISREPORTERREQUEST = _descriptor.Descriptor( + name='QueryIsReporterRequest', + full_name='oracle.v1.QueryIsReporterRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='validator_address', full_name='oracle.v1.QueryIsReporterRequest.validator_address', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='reporter_address', full_name='oracle.v1.QueryIsReporterRequest.reporter_address', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1165, + serialized_end=1242, +) + + +_QUERYISREPORTERRESPONSE = _descriptor.Descriptor( + name='QueryIsReporterResponse', + full_name='oracle.v1.QueryIsReporterResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='is_reporter', full_name='oracle.v1.QueryIsReporterResponse.is_reporter', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1244, + serialized_end=1290, ) @@ -583,8 +656,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1111, - serialized_end=1161, + serialized_start=1292, + serialized_end=1342, ) @@ -615,8 +688,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1163, - serialized_end=1205, + serialized_start=1344, + serialized_end=1386, ) @@ -640,8 +713,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1207, - serialized_end=1237, + serialized_start=1388, + serialized_end=1418, ) @@ -672,8 +745,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1239, - serialized_end=1318, + serialized_start=1420, + serialized_end=1499, ) @@ -687,7 +760,7 @@ fields=[ _descriptor.FieldDescriptor( name='oracle_script_id', full_name='oracle.v1.QueryRequestSearchRequest.oracle_script_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -725,8 +798,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1320, - serialized_end=1429, + serialized_start=1501, + serialized_end=1610, ) @@ -757,8 +830,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1431, - serialized_end=1509, + serialized_start=1612, + serialized_end=1690, ) @@ -779,14 +852,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='ask_count', full_name='oracle.v1.QueryRequestPriceRequest.ask_count', index=1, - number=2, type=3, cpp_type=2, label=1, + number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='min_count', full_name='oracle.v1.QueryRequestPriceRequest.min_count', index=2, - number=3, type=3, cpp_type=2, label=1, + number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -803,8 +876,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1511, - serialized_end=1592, + serialized_start=1692, + serialized_end=1773, ) @@ -835,8 +908,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1594, - serialized_end=1668, + serialized_start=1775, + serialized_end=1849, ) @@ -864,14 +937,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.QueryRequestVerificationRequest.request_id', index=2, - number=3, type=3, cpp_type=2, label=1, + number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='external_id', full_name='oracle.v1.QueryRequestVerificationRequest.external_id', index=3, - number=4, type=3, cpp_type=2, label=1, + number=4, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -902,8 +975,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1671, - serialized_end=1819, + serialized_start=1852, + serialized_end=2000, ) @@ -931,21 +1004,21 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.QueryRequestVerificationResponse.request_id', index=2, - number=3, type=3, cpp_type=2, label=1, + number=3, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='external_id', full_name='oracle.v1.QueryRequestVerificationResponse.external_id', index=3, - number=4, type=3, cpp_type=2, label=1, + number=4, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='data_source_id', full_name='oracle.v1.QueryRequestVerificationResponse.data_source_id', index=4, - number=5, type=3, cpp_type=2, label=1, + number=5, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -962,93 +1035,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1822, - serialized_end=1958, -) - - -_QUERYREQUESTPOOLREQUEST = _descriptor.Descriptor( - name='QueryRequestPoolRequest', - full_name='oracle.v1.QueryRequestPoolRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='request_key', full_name='oracle.v1.QueryRequestPoolRequest.request_key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='port_id', full_name='oracle.v1.QueryRequestPoolRequest.port_id', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='channel_id', full_name='oracle.v1.QueryRequestPoolRequest.channel_id', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1960, - serialized_end=2043, -) - - -_QUERYREQUESTPOOLRESPONSE = _descriptor.Descriptor( - name='QueryRequestPoolResponse', - full_name='oracle.v1.QueryRequestPoolResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='request_pool_address', full_name='oracle.v1.QueryRequestPoolResponse.request_pool_address', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='balance', full_name='oracle.v1.QueryRequestPoolResponse.balance', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2046, - serialized_end=2196, + serialized_start=2003, + serialized_end=2139, ) _QUERYDATASOURCERESPONSE.fields_by_name['data_source'].message_type = oracle_dot_v1_dot_oracle__pb2._DATASOURCE @@ -1061,7 +1049,6 @@ _QUERYACTIVEVALIDATORSRESPONSE.fields_by_name['validators'].message_type = oracle_dot_v1_dot_oracle__pb2._ACTIVEVALIDATOR _QUERYREQUESTSEARCHRESPONSE.fields_by_name['request'].message_type = _QUERYREQUESTRESPONSE _QUERYREQUESTPRICERESPONSE.fields_by_name['price_results'].message_type = oracle_dot_v1_dot_oracle__pb2._PRICERESULT -_QUERYREQUESTPOOLRESPONSE.fields_by_name['balance'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN DESCRIPTOR.message_types_by_name['QueryCountsRequest'] = _QUERYCOUNTSREQUEST DESCRIPTOR.message_types_by_name['QueryCountsResponse'] = _QUERYCOUNTSRESPONSE DESCRIPTOR.message_types_by_name['QueryDataRequest'] = _QUERYDATAREQUEST @@ -1078,6 +1065,8 @@ DESCRIPTOR.message_types_by_name['QueryParamsResponse'] = _QUERYPARAMSRESPONSE DESCRIPTOR.message_types_by_name['QueryValidatorRequest'] = _QUERYVALIDATORREQUEST DESCRIPTOR.message_types_by_name['QueryValidatorResponse'] = _QUERYVALIDATORRESPONSE +DESCRIPTOR.message_types_by_name['QueryIsReporterRequest'] = _QUERYISREPORTERREQUEST +DESCRIPTOR.message_types_by_name['QueryIsReporterResponse'] = _QUERYISREPORTERRESPONSE DESCRIPTOR.message_types_by_name['QueryReportersRequest'] = _QUERYREPORTERSREQUEST DESCRIPTOR.message_types_by_name['QueryReportersResponse'] = _QUERYREPORTERSRESPONSE DESCRIPTOR.message_types_by_name['QueryActiveValidatorsRequest'] = _QUERYACTIVEVALIDATORSREQUEST @@ -1088,8 +1077,6 @@ DESCRIPTOR.message_types_by_name['QueryRequestPriceResponse'] = _QUERYREQUESTPRICERESPONSE DESCRIPTOR.message_types_by_name['QueryRequestVerificationRequest'] = _QUERYREQUESTVERIFICATIONREQUEST DESCRIPTOR.message_types_by_name['QueryRequestVerificationResponse'] = _QUERYREQUESTVERIFICATIONRESPONSE -DESCRIPTOR.message_types_by_name['QueryRequestPoolRequest'] = _QUERYREQUESTPOOLREQUEST -DESCRIPTOR.message_types_by_name['QueryRequestPoolResponse'] = _QUERYREQUESTPOOLRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) QueryCountsRequest = _reflection.GeneratedProtocolMessageType('QueryCountsRequest', (_message.Message,), { @@ -1204,6 +1191,20 @@ }) _sym_db.RegisterMessage(QueryValidatorResponse) +QueryIsReporterRequest = _reflection.GeneratedProtocolMessageType('QueryIsReporterRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUERYISREPORTERREQUEST, + '__module__' : 'oracle.v1.query_pb2' + # @@protoc_insertion_point(class_scope:oracle.v1.QueryIsReporterRequest) + }) +_sym_db.RegisterMessage(QueryIsReporterRequest) + +QueryIsReporterResponse = _reflection.GeneratedProtocolMessageType('QueryIsReporterResponse', (_message.Message,), { + 'DESCRIPTOR' : _QUERYISREPORTERRESPONSE, + '__module__' : 'oracle.v1.query_pb2' + # @@protoc_insertion_point(class_scope:oracle.v1.QueryIsReporterResponse) + }) +_sym_db.RegisterMessage(QueryIsReporterResponse) + QueryReportersRequest = _reflection.GeneratedProtocolMessageType('QueryReportersRequest', (_message.Message,), { 'DESCRIPTOR' : _QUERYREPORTERSREQUEST, '__module__' : 'oracle.v1.query_pb2' @@ -1274,26 +1275,11 @@ }) _sym_db.RegisterMessage(QueryRequestVerificationResponse) -QueryRequestPoolRequest = _reflection.GeneratedProtocolMessageType('QueryRequestPoolRequest', (_message.Message,), { - 'DESCRIPTOR' : _QUERYREQUESTPOOLREQUEST, - '__module__' : 'oracle.v1.query_pb2' - # @@protoc_insertion_point(class_scope:oracle.v1.QueryRequestPoolRequest) - }) -_sym_db.RegisterMessage(QueryRequestPoolRequest) - -QueryRequestPoolResponse = _reflection.GeneratedProtocolMessageType('QueryRequestPoolResponse', (_message.Message,), { - 'DESCRIPTOR' : _QUERYREQUESTPOOLRESPONSE, - '__module__' : 'oracle.v1.query_pb2' - # @@protoc_insertion_point(class_scope:oracle.v1.QueryRequestPoolResponse) - }) -_sym_db.RegisterMessage(QueryRequestPoolResponse) - DESCRIPTOR._options = None _QUERYREQUESTRESPONSE.fields_by_name['reports']._options = None _QUERYPENDINGREQUESTSRESPONSE.fields_by_name['request_ids']._options = None _QUERYPARAMSRESPONSE.fields_by_name['params']._options = None -_QUERYREQUESTPOOLRESPONSE.fields_by_name['balance']._options = None _QUERY = _descriptor.ServiceDescriptor( name='Query', @@ -1302,8 +1288,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=2199, - serialized_end=4039, + serialized_start=2142, + serialized_end=3977, methods=[ _descriptor.MethodDescriptor( name='Counts', @@ -1375,10 +1361,20 @@ serialized_options=b'\202\323\344\223\002+\022)/oracle/v1/validators/{validator_address}', create_key=_descriptor._internal_create_key, ), + _descriptor.MethodDescriptor( + name='IsReporter', + full_name='oracle.v1.Query.IsReporter', + index=7, + containing_service=None, + input_type=_QUERYISREPORTERREQUEST, + output_type=_QUERYISREPORTERRESPONSE, + serialized_options=b'\202\323\344\223\002<\022:/oracle/v1/reporter/{validator_address}/{reporter_address}', + create_key=_descriptor._internal_create_key, + ), _descriptor.MethodDescriptor( name='Reporters', full_name='oracle.v1.Query.Reporters', - index=7, + index=8, containing_service=None, input_type=_QUERYREPORTERSREQUEST, output_type=_QUERYREPORTERSRESPONSE, @@ -1388,7 +1384,7 @@ _descriptor.MethodDescriptor( name='ActiveValidators', full_name='oracle.v1.Query.ActiveValidators', - index=8, + index=9, containing_service=None, input_type=_QUERYACTIVEVALIDATORSREQUEST, output_type=_QUERYACTIVEVALIDATORSRESPONSE, @@ -1398,7 +1394,7 @@ _descriptor.MethodDescriptor( name='Params', full_name='oracle.v1.Query.Params', - index=9, + index=10, containing_service=None, input_type=_QUERYPARAMSREQUEST, output_type=_QUERYPARAMSRESPONSE, @@ -1408,7 +1404,7 @@ _descriptor.MethodDescriptor( name='RequestSearch', full_name='oracle.v1.Query.RequestSearch', - index=10, + index=11, containing_service=None, input_type=_QUERYREQUESTSEARCHREQUEST, output_type=_QUERYREQUESTSEARCHRESPONSE, @@ -1418,7 +1414,7 @@ _descriptor.MethodDescriptor( name='RequestPrice', full_name='oracle.v1.Query.RequestPrice', - index=11, + index=12, containing_service=None, input_type=_QUERYREQUESTPRICEREQUEST, output_type=_QUERYREQUESTPRICERESPONSE, @@ -1428,23 +1424,13 @@ _descriptor.MethodDescriptor( name='RequestVerification', full_name='oracle.v1.Query.RequestVerification', - index=12, + index=13, containing_service=None, input_type=_QUERYREQUESTVERIFICATIONREQUEST, output_type=_QUERYREQUESTVERIFICATIONRESPONSE, serialized_options=b'\202\323\344\223\002\033\022\031/oracle/v1/verify_request', create_key=_descriptor._internal_create_key, ), - _descriptor.MethodDescriptor( - name='RequestPool', - full_name='oracle.v1.Query.RequestPool', - index=13, - containing_service=None, - input_type=_QUERYREQUESTPOOLREQUEST, - output_type=_QUERYREQUESTPOOLRESPONSE, - serialized_options=b'\202\323\344\223\002>\022 None: ... -global___QueryCountsRequest = QueryCountsRequest - -class QueryCountsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_SOURCE_COUNT_FIELD_NUMBER: builtins.int - ORACLE_SCRIPT_COUNT_FIELD_NUMBER: builtins.int - REQUEST_COUNT_FIELD_NUMBER: builtins.int - data_source_count: builtins.int = ... - oracle_script_count: builtins.int = ... - request_count: builtins.int = ... - - def __init__(self, - *, - data_source_count : builtins.int = ..., - oracle_script_count : builtins.int = ..., - request_count : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data_source_count",b"data_source_count",u"oracle_script_count",b"oracle_script_count",u"request_count",b"request_count"]) -> None: ... -global___QueryCountsResponse = QueryCountsResponse - -class QueryDataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_HASH_FIELD_NUMBER: builtins.int - data_hash: typing.Text = ... - - def __init__(self, - *, - data_hash : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data_hash",b"data_hash"]) -> None: ... -global___QueryDataRequest = QueryDataRequest - -class QueryDataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_FIELD_NUMBER: builtins.int - data: builtins.bytes = ... - - def __init__(self, - *, - data : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data"]) -> None: ... -global___QueryDataResponse = QueryDataResponse - -class QueryDataSourceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_SOURCE_ID_FIELD_NUMBER: builtins.int - data_source_id: builtins.int = ... - - def __init__(self, - *, - data_source_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data_source_id",b"data_source_id"]) -> None: ... -global___QueryDataSourceRequest = QueryDataSourceRequest - -class QueryDataSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_SOURCE_FIELD_NUMBER: builtins.int - - @property - def data_source(self) -> oracle.v1.oracle_pb2.DataSource: ... - - def __init__(self, - *, - data_source : typing.Optional[oracle.v1.oracle_pb2.DataSource] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"data_source",b"data_source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data_source",b"data_source"]) -> None: ... -global___QueryDataSourceResponse = QueryDataSourceResponse - -class QueryOracleScriptRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int - oracle_script_id: builtins.int = ... - - def __init__(self, - *, - oracle_script_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"oracle_script_id",b"oracle_script_id"]) -> None: ... -global___QueryOracleScriptRequest = QueryOracleScriptRequest - -class QueryOracleScriptResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ORACLE_SCRIPT_FIELD_NUMBER: builtins.int - - @property - def oracle_script(self) -> oracle.v1.oracle_pb2.OracleScript: ... - - def __init__(self, - *, - oracle_script : typing.Optional[oracle.v1.oracle_pb2.OracleScript] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"oracle_script",b"oracle_script"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"oracle_script",b"oracle_script"]) -> None: ... -global___QueryOracleScriptResponse = QueryOracleScriptResponse - -class QueryRequestRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_ID_FIELD_NUMBER: builtins.int - request_id: builtins.int = ... - - def __init__(self, - *, - request_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"request_id",b"request_id"]) -> None: ... -global___QueryRequestRequest = QueryRequestRequest - -class QueryRequestResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_FIELD_NUMBER: builtins.int - REPORTS_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - - @property - def request(self) -> oracle.v1.oracle_pb2.Request: ... - - @property - def reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.Report]: ... - - @property - def result(self) -> oracle.v1.oracle_pb2.Result: ... - - def __init__(self, - *, - request : typing.Optional[oracle.v1.oracle_pb2.Request] = ..., - reports : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.Report]] = ..., - result : typing.Optional[oracle.v1.oracle_pb2.Result] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"request",b"request",u"result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"reports",b"reports",u"request",b"request",u"result",b"result"]) -> None: ... -global___QueryRequestResponse = QueryRequestResponse - -class QueryPendingRequestsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... -global___QueryPendingRequestsRequest = QueryPendingRequestsRequest - -class QueryPendingRequestsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_IDS_FIELD_NUMBER: builtins.int - - @property - def request_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - def __init__(self, - *, - request_ids : typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"request_ids",b"request_ids"]) -> None: ... -global___QueryPendingRequestsResponse = QueryPendingRequestsResponse - -class QueryParamsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryParamsRequest = QueryParamsRequest - -class QueryParamsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PARAMS_FIELD_NUMBER: builtins.int - - @property - def params(self) -> oracle.v1.oracle_pb2.Params: ... - - def __init__(self, - *, - params : typing.Optional[oracle.v1.oracle_pb2.Params] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... -global___QueryParamsResponse = QueryParamsResponse - -class QueryValidatorRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... -global___QueryValidatorRequest = QueryValidatorRequest - -class QueryValidatorResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - STATUS_FIELD_NUMBER: builtins.int - - @property - def status(self) -> oracle.v1.oracle_pb2.ValidatorStatus: ... - - def __init__(self, - *, - status : typing.Optional[oracle.v1.oracle_pb2.ValidatorStatus] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> None: ... -global___QueryValidatorResponse = QueryValidatorResponse - -class QueryReportersRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - validator_address: typing.Text = ... - - def __init__(self, - *, - validator_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... -global___QueryReportersRequest = QueryReportersRequest - -class QueryReportersResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REPORTER_FIELD_NUMBER: builtins.int - - @property - def reporter(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - reporter : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"reporter",b"reporter"]) -> None: ... -global___QueryReportersResponse = QueryReportersResponse - -class QueryActiveValidatorsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___QueryActiveValidatorsRequest = QueryActiveValidatorsRequest - -class QueryActiveValidatorsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATORS_FIELD_NUMBER: builtins.int - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.ActiveValidator]: ... - - def __init__(self, - *, - validators : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.ActiveValidator]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validators",b"validators"]) -> None: ... -global___QueryActiveValidatorsResponse = QueryActiveValidatorsResponse - -class QueryRequestSearchRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int - CALLDATA_FIELD_NUMBER: builtins.int - ASK_COUNT_FIELD_NUMBER: builtins.int - MIN_COUNT_FIELD_NUMBER: builtins.int - oracle_script_id: builtins.int = ... - calldata: typing.Text = ... - ask_count: builtins.int = ... - min_count: builtins.int = ... - - def __init__(self, - *, - oracle_script_id : builtins.int = ..., - calldata : typing.Text = ..., - ask_count : builtins.int = ..., - min_count : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id"]) -> None: ... -global___QueryRequestSearchRequest = QueryRequestSearchRequest - -class QueryRequestSearchResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_FIELD_NUMBER: builtins.int - - @property - def request(self) -> global___QueryRequestResponse: ... - - def __init__(self, - *, - request : typing.Optional[global___QueryRequestResponse] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"request",b"request"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"request",b"request"]) -> None: ... -global___QueryRequestSearchResponse = QueryRequestSearchResponse - -class QueryRequestPriceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SYMBOLS_FIELD_NUMBER: builtins.int - ASK_COUNT_FIELD_NUMBER: builtins.int - MIN_COUNT_FIELD_NUMBER: builtins.int - - @property - def symbols(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - ask_count: builtins.int = ... - min_count: builtins.int = ... - - def __init__(self, - *, - symbols : typing.Optional[typing.Iterable[typing.Text]] = ..., - ask_count : builtins.int = ..., - min_count : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"min_count",b"min_count",u"symbols",b"symbols"]) -> None: ... -global___QueryRequestPriceRequest = QueryRequestPriceRequest - -class QueryRequestPriceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PRICE_RESULTS_FIELD_NUMBER: builtins.int - - @property - def price_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.PriceResult]: ... - - def __init__(self, - *, - price_results : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.PriceResult]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"price_results",b"price_results"]) -> None: ... -global___QueryRequestPriceResponse = QueryRequestPriceResponse - -class QueryRequestVerificationRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHAIN_ID_FIELD_NUMBER: builtins.int - VALIDATOR_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - EXTERNAL_ID_FIELD_NUMBER: builtins.int - REPORTER_FIELD_NUMBER: builtins.int - SIGNATURE_FIELD_NUMBER: builtins.int - chain_id: typing.Text = ... - validator: typing.Text = ... - request_id: builtins.int = ... - external_id: builtins.int = ... - reporter: typing.Text = ... - signature: builtins.bytes = ... - - def __init__(self, - *, - chain_id : typing.Text = ..., - validator : typing.Text = ..., - request_id : builtins.int = ..., - external_id : builtins.int = ..., - reporter : typing.Text = ..., - signature : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"external_id",b"external_id",u"reporter",b"reporter",u"request_id",b"request_id",u"signature",b"signature",u"validator",b"validator"]) -> None: ... -global___QueryRequestVerificationRequest = QueryRequestVerificationRequest - -class QueryRequestVerificationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHAIN_ID_FIELD_NUMBER: builtins.int - VALIDATOR_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - EXTERNAL_ID_FIELD_NUMBER: builtins.int - DATA_SOURCE_ID_FIELD_NUMBER: builtins.int - chain_id: typing.Text = ... - validator: typing.Text = ... - request_id: builtins.int = ... - external_id: builtins.int = ... - data_source_id: builtins.int = ... - - def __init__(self, - *, - chain_id : typing.Text = ..., - validator : typing.Text = ..., - request_id : builtins.int = ..., - external_id : builtins.int = ..., - data_source_id : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"data_source_id",b"data_source_id",u"external_id",b"external_id",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... -global___QueryRequestVerificationResponse = QueryRequestVerificationResponse - -class QueryRequestPoolRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_KEY_FIELD_NUMBER: builtins.int - PORT_ID_FIELD_NUMBER: builtins.int - CHANNEL_ID_FIELD_NUMBER: builtins.int - request_key: typing.Text = ... - port_id: typing.Text = ... - channel_id: typing.Text = ... - - def __init__(self, - *, - request_key : typing.Text = ..., - port_id : typing.Text = ..., - channel_id : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"request_key",b"request_key"]) -> None: ... -global___QueryRequestPoolRequest = QueryRequestPoolRequest - -class QueryRequestPoolResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_POOL_ADDRESS_FIELD_NUMBER: builtins.int - BALANCE_FIELD_NUMBER: builtins.int - request_pool_address: typing.Text = ... - - @property - def balance(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - request_pool_address : typing.Text = ..., - balance : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"request_pool_address",b"request_pool_address"]) -> None: ... -global___QueryRequestPoolResponse = QueryRequestPoolResponse diff --git a/pyband/proto/oracle/v1/query_pb2_grpc.py b/pyband/proto/oracle/v1/query_pb2_grpc.py index f25d64f..916bf5c 100644 --- a/pyband/proto/oracle/v1/query_pb2_grpc.py +++ b/pyband/proto/oracle/v1/query_pb2_grpc.py @@ -50,6 +50,11 @@ def __init__(self, channel): request_serializer=oracle_dot_v1_dot_query__pb2.QueryValidatorRequest.SerializeToString, response_deserializer=oracle_dot_v1_dot_query__pb2.QueryValidatorResponse.FromString, ) + self.IsReporter = channel.unary_unary( + '/oracle.v1.Query/IsReporter', + request_serializer=oracle_dot_v1_dot_query__pb2.QueryIsReporterRequest.SerializeToString, + response_deserializer=oracle_dot_v1_dot_query__pb2.QueryIsReporterResponse.FromString, + ) self.Reporters = channel.unary_unary( '/oracle.v1.Query/Reporters', request_serializer=oracle_dot_v1_dot_query__pb2.QueryReportersRequest.SerializeToString, @@ -80,11 +85,6 @@ def __init__(self, channel): request_serializer=oracle_dot_v1_dot_query__pb2.QueryRequestVerificationRequest.SerializeToString, response_deserializer=oracle_dot_v1_dot_query__pb2.QueryRequestVerificationResponse.FromString, ) - self.RequestPool = channel.unary_unary( - '/oracle.v1.Query/RequestPool', - request_serializer=oracle_dot_v1_dot_query__pb2.QueryRequestPoolRequest.SerializeToString, - response_deserializer=oracle_dot_v1_dot_query__pb2.QueryRequestPoolResponse.FromString, - ) class QueryServicer(object): @@ -143,6 +143,13 @@ def Validator(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def IsReporter(self, request, context): + """IsReporter queries grant of account on this validator. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def Reporters(self, request, context): """Reporters queries all reporters associated with given validator address. """ @@ -187,14 +194,6 @@ def RequestVerification(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def RequestPool(self, request, context): - """RequestPool queries the request pool information corresponding to the given - port, channel, and request key. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def add_QueryServicer_to_server(servicer, server): rpc_method_handlers = { @@ -233,6 +232,11 @@ def add_QueryServicer_to_server(servicer, server): request_deserializer=oracle_dot_v1_dot_query__pb2.QueryValidatorRequest.FromString, response_serializer=oracle_dot_v1_dot_query__pb2.QueryValidatorResponse.SerializeToString, ), + 'IsReporter': grpc.unary_unary_rpc_method_handler( + servicer.IsReporter, + request_deserializer=oracle_dot_v1_dot_query__pb2.QueryIsReporterRequest.FromString, + response_serializer=oracle_dot_v1_dot_query__pb2.QueryIsReporterResponse.SerializeToString, + ), 'Reporters': grpc.unary_unary_rpc_method_handler( servicer.Reporters, request_deserializer=oracle_dot_v1_dot_query__pb2.QueryReportersRequest.FromString, @@ -263,11 +267,6 @@ def add_QueryServicer_to_server(servicer, server): request_deserializer=oracle_dot_v1_dot_query__pb2.QueryRequestVerificationRequest.FromString, response_serializer=oracle_dot_v1_dot_query__pb2.QueryRequestVerificationResponse.SerializeToString, ), - 'RequestPool': grpc.unary_unary_rpc_method_handler( - servicer.RequestPool, - request_deserializer=oracle_dot_v1_dot_query__pb2.QueryRequestPoolRequest.FromString, - response_serializer=oracle_dot_v1_dot_query__pb2.QueryRequestPoolResponse.SerializeToString, - ), } generic_handler = grpc.method_handlers_generic_handler( 'oracle.v1.Query', rpc_method_handlers) @@ -398,6 +397,23 @@ def Validator(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def IsReporter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/oracle.v1.Query/IsReporter', + oracle_dot_v1_dot_query__pb2.QueryIsReporterRequest.SerializeToString, + oracle_dot_v1_dot_query__pb2.QueryIsReporterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def Reporters(request, target, @@ -499,20 +515,3 @@ def RequestVerification(request, oracle_dot_v1_dot_query__pb2.QueryRequestVerificationResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RequestPool(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/oracle.v1.Query/RequestPool', - oracle_dot_v1_dot_query__pb2.QueryRequestPoolRequest.SerializeToString, - oracle_dot_v1_dot_query__pb2.QueryRequestPoolResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyband/proto/oracle/v1/query_pb2_grpc.pyi b/pyband/proto/oracle/v1/query_pb2_grpc.pyi deleted file mode 100644 index ccb2c78..0000000 --- a/pyband/proto/oracle/v1/query_pb2_grpc.pyi +++ /dev/null @@ -1,154 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .query_pb2 import * -class QueryStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Counts:grpc.UnaryUnaryMultiCallable[ - global___QueryCountsRequest, - global___QueryCountsResponse] = ... - - Data:grpc.UnaryUnaryMultiCallable[ - global___QueryDataRequest, - global___QueryDataResponse] = ... - - DataSource:grpc.UnaryUnaryMultiCallable[ - global___QueryDataSourceRequest, - global___QueryDataSourceResponse] = ... - - OracleScript:grpc.UnaryUnaryMultiCallable[ - global___QueryOracleScriptRequest, - global___QueryOracleScriptResponse] = ... - - Request:grpc.UnaryUnaryMultiCallable[ - global___QueryRequestRequest, - global___QueryRequestResponse] = ... - - PendingRequests:grpc.UnaryUnaryMultiCallable[ - global___QueryPendingRequestsRequest, - global___QueryPendingRequestsResponse] = ... - - Validator:grpc.UnaryUnaryMultiCallable[ - global___QueryValidatorRequest, - global___QueryValidatorResponse] = ... - - Reporters:grpc.UnaryUnaryMultiCallable[ - global___QueryReportersRequest, - global___QueryReportersResponse] = ... - - ActiveValidators:grpc.UnaryUnaryMultiCallable[ - global___QueryActiveValidatorsRequest, - global___QueryActiveValidatorsResponse] = ... - - Params:grpc.UnaryUnaryMultiCallable[ - global___QueryParamsRequest, - global___QueryParamsResponse] = ... - - RequestSearch:grpc.UnaryUnaryMultiCallable[ - global___QueryRequestSearchRequest, - global___QueryRequestSearchResponse] = ... - - RequestPrice:grpc.UnaryUnaryMultiCallable[ - global___QueryRequestPriceRequest, - global___QueryRequestPriceResponse] = ... - - RequestVerification:grpc.UnaryUnaryMultiCallable[ - global___QueryRequestVerificationRequest, - global___QueryRequestVerificationResponse] = ... - - RequestPool:grpc.UnaryUnaryMultiCallable[ - global___QueryRequestPoolRequest, - global___QueryRequestPoolResponse] = ... - - -class QueryServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Counts(self, - request: global___QueryCountsRequest, - context: grpc.ServicerContext, - ) -> global___QueryCountsResponse: ... - - @abc.abstractmethod - def Data(self, - request: global___QueryDataRequest, - context: grpc.ServicerContext, - ) -> global___QueryDataResponse: ... - - @abc.abstractmethod - def DataSource(self, - request: global___QueryDataSourceRequest, - context: grpc.ServicerContext, - ) -> global___QueryDataSourceResponse: ... - - @abc.abstractmethod - def OracleScript(self, - request: global___QueryOracleScriptRequest, - context: grpc.ServicerContext, - ) -> global___QueryOracleScriptResponse: ... - - @abc.abstractmethod - def Request(self, - request: global___QueryRequestRequest, - context: grpc.ServicerContext, - ) -> global___QueryRequestResponse: ... - - @abc.abstractmethod - def PendingRequests(self, - request: global___QueryPendingRequestsRequest, - context: grpc.ServicerContext, - ) -> global___QueryPendingRequestsResponse: ... - - @abc.abstractmethod - def Validator(self, - request: global___QueryValidatorRequest, - context: grpc.ServicerContext, - ) -> global___QueryValidatorResponse: ... - - @abc.abstractmethod - def Reporters(self, - request: global___QueryReportersRequest, - context: grpc.ServicerContext, - ) -> global___QueryReportersResponse: ... - - @abc.abstractmethod - def ActiveValidators(self, - request: global___QueryActiveValidatorsRequest, - context: grpc.ServicerContext, - ) -> global___QueryActiveValidatorsResponse: ... - - @abc.abstractmethod - def Params(self, - request: global___QueryParamsRequest, - context: grpc.ServicerContext, - ) -> global___QueryParamsResponse: ... - - @abc.abstractmethod - def RequestSearch(self, - request: global___QueryRequestSearchRequest, - context: grpc.ServicerContext, - ) -> global___QueryRequestSearchResponse: ... - - @abc.abstractmethod - def RequestPrice(self, - request: global___QueryRequestPriceRequest, - context: grpc.ServicerContext, - ) -> global___QueryRequestPriceResponse: ... - - @abc.abstractmethod - def RequestVerification(self, - request: global___QueryRequestVerificationRequest, - context: grpc.ServicerContext, - ) -> global___QueryRequestVerificationResponse: ... - - @abc.abstractmethod - def RequestPool(self, - request: global___QueryRequestPoolRequest, - context: grpc.ServicerContext, - ) -> global___QueryRequestPoolResponse: ... - - -def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/oracle/v1/tx_pb2.py b/pyband/proto/oracle/v1/tx_pb2.py index 720299e..810097a 100644 --- a/pyband/proto/oracle/v1/tx_pb2.py +++ b/pyband/proto/oracle/v1/tx_pb2.py @@ -24,7 +24,7 @@ syntax='proto3', serialized_options=b'Z,github.com/bandprotocol/chain/x/oracle/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x12oracle/v1/tx.proto\x12\toracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x16oracle/v1/oracle.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xc9\x02\n\x0eMsgRequestData\x12>\n\x10oracle_script_id\x18\x01 \x01(\x03\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x10\n\x08\x63\x61lldata\x18\x02 \x01(\x0c\x12\x11\n\task_count\x18\x03 \x01(\x04\x12\x11\n\tmin_count\x18\x04 \x01(\x04\x12\x1f\n\tclient_id\x18\x05 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12^\n\tfee_limit\x18\x06 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x13\n\x0bprepare_gas\x18\x07 \x01(\x04\x12\x13\n\x0b\x65xecute_gas\x18\x08 \x01(\x04\x12\x0e\n\x06sender\x18\t \x01(\t:\x04\xe8\xa0\x1f\x01\"\x18\n\x16MsgRequestDataResponse\"\x9b\x01\n\rMsgReportData\x12.\n\nrequest_id\x18\x01 \x01(\x03\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12/\n\x0braw_reports\x18\x02 \x03(\x0b\x32\x14.oracle.v1.RawReportB\x04\xc8\xde\x1f\x00\x12\x11\n\tvalidator\x18\x03 \x01(\t\x12\x10\n\x08reporter\x18\x04 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x17\n\x15MsgReportDataResponse\"\xdd\x01\n\x13MsgCreateDataSource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x12\n\nexecutable\x18\x03 \x01(\x0c\x12X\n\x03\x66\x65\x65\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x10\n\x08treasury\x18\x05 \x01(\t\x12\r\n\x05owner\x18\x06 \x01(\t\x12\x0e\n\x06sender\x18\x07 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1d\n\x1bMsgCreateDataSourceResponse\"\x95\x02\n\x11MsgEditDataSource\x12\x38\n\x0e\x64\x61ta_source_id\x18\x01 \x01(\x03\x42 \xe2\xde\x1f\x0c\x44\x61taSourceID\xfa\xde\x1f\x0c\x44\x61taSourceID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x12\n\nexecutable\x18\x04 \x01(\x0c\x12X\n\x03\x66\x65\x65\x18\x05 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x10\n\x08treasury\x18\x06 \x01(\t\x12\r\n\x05owner\x18\x07 \x01(\t\x12\x0e\n\x06sender\x18\x08 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1b\n\x19MsgEditDataSourceResponse\"\xa9\x01\n\x15MsgCreateOracleScript\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0e\n\x06schema\x18\x03 \x01(\t\x12*\n\x0fsource_code_url\x18\x04 \x01(\tB\x11\xe2\xde\x1f\rSourceCodeURL\x12\x0c\n\x04\x63ode\x18\x05 \x01(\x0c\x12\r\n\x05owner\x18\x06 \x01(\t\x12\x0e\n\x06sender\x18\x07 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1f\n\x1dMsgCreateOracleScriptResponse\"\xe7\x01\n\x13MsgEditOracleScript\x12>\n\x10oracle_script_id\x18\x01 \x01(\x03\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0e\n\x06schema\x18\x04 \x01(\t\x12*\n\x0fsource_code_url\x18\x05 \x01(\tB\x11\xe2\xde\x1f\rSourceCodeURL\x12\x0c\n\x04\x63ode\x18\x06 \x01(\x0c\x12\r\n\x05owner\x18\x07 \x01(\t\x12\x0e\n\x06sender\x18\x08 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1d\n\x1bMsgEditOracleScriptResponse\"&\n\x0bMsgActivate\x12\x11\n\tvalidator\x18\x01 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x15\n\x13MsgActivateResponse\";\n\x0eMsgAddReporter\x12\x11\n\tvalidator\x18\x01 \x01(\t\x12\x10\n\x08reporter\x18\x02 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x18\n\x16MsgAddReporterResponse\">\n\x11MsgRemoveReporter\x12\x11\n\tvalidator\x18\x01 \x01(\t\x12\x10\n\x08reporter\x18\x02 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1b\n\x19MsgRemoveReporterResponse2\xf3\x05\n\x03Msg\x12K\n\x0bRequestData\x12\x19.oracle.v1.MsgRequestData\x1a!.oracle.v1.MsgRequestDataResponse\x12H\n\nReportData\x12\x18.oracle.v1.MsgReportData\x1a .oracle.v1.MsgReportDataResponse\x12Z\n\x10\x43reateDataSource\x12\x1e.oracle.v1.MsgCreateDataSource\x1a&.oracle.v1.MsgCreateDataSourceResponse\x12T\n\x0e\x45\x64itDataSource\x12\x1c.oracle.v1.MsgEditDataSource\x1a$.oracle.v1.MsgEditDataSourceResponse\x12`\n\x12\x43reateOracleScript\x12 .oracle.v1.MsgCreateOracleScript\x1a(.oracle.v1.MsgCreateOracleScriptResponse\x12Z\n\x10\x45\x64itOracleScript\x12\x1e.oracle.v1.MsgEditOracleScript\x1a&.oracle.v1.MsgEditOracleScriptResponse\x12\x42\n\x08\x41\x63tivate\x12\x16.oracle.v1.MsgActivate\x1a\x1e.oracle.v1.MsgActivateResponse\x12K\n\x0b\x41\x64\x64Reporter\x12\x19.oracle.v1.MsgAddReporter\x1a!.oracle.v1.MsgAddReporterResponse\x12T\n\x0eRemoveReporter\x12\x1c.oracle.v1.MsgRemoveReporter\x1a$.oracle.v1.MsgRemoveReporterResponseB.Z,github.com/bandprotocol/chain/x/oracle/typesb\x06proto3' + serialized_pb=b'\n\x12oracle/v1/tx.proto\x12\toracle.v1\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x16oracle/v1/oracle.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xc9\x02\n\x0eMsgRequestData\x12>\n\x10oracle_script_id\x18\x01 \x01(\x04\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x10\n\x08\x63\x61lldata\x18\x02 \x01(\x0c\x12\x11\n\task_count\x18\x03 \x01(\x04\x12\x11\n\tmin_count\x18\x04 \x01(\x04\x12\x1f\n\tclient_id\x18\x05 \x01(\tB\x0c\xe2\xde\x1f\x08\x43lientID\x12^\n\tfee_limit\x18\x06 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x13\n\x0bprepare_gas\x18\x07 \x01(\x04\x12\x13\n\x0b\x65xecute_gas\x18\x08 \x01(\x04\x12\x0e\n\x06sender\x18\t \x01(\t:\x04\xe8\xa0\x1f\x01\"\x18\n\x16MsgRequestDataResponse\"\x89\x01\n\rMsgReportData\x12.\n\nrequest_id\x18\x01 \x01(\x04\x42\x1a\xe2\xde\x1f\tRequestID\xfa\xde\x1f\tRequestID\x12/\n\x0braw_reports\x18\x02 \x03(\x0b\x32\x14.oracle.v1.RawReportB\x04\xc8\xde\x1f\x00\x12\x11\n\tvalidator\x18\x03 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x17\n\x15MsgReportDataResponse\"\xdd\x01\n\x13MsgCreateDataSource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x12\n\nexecutable\x18\x03 \x01(\x0c\x12X\n\x03\x66\x65\x65\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x10\n\x08treasury\x18\x05 \x01(\t\x12\r\n\x05owner\x18\x06 \x01(\t\x12\x0e\n\x06sender\x18\x07 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1d\n\x1bMsgCreateDataSourceResponse\"\x95\x02\n\x11MsgEditDataSource\x12\x38\n\x0e\x64\x61ta_source_id\x18\x01 \x01(\x04\x42 \xe2\xde\x1f\x0c\x44\x61taSourceID\xfa\xde\x1f\x0c\x44\x61taSourceID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x12\n\nexecutable\x18\x04 \x01(\x0c\x12X\n\x03\x66\x65\x65\x18\x05 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\x12\x10\n\x08treasury\x18\x06 \x01(\t\x12\r\n\x05owner\x18\x07 \x01(\t\x12\x0e\n\x06sender\x18\x08 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1b\n\x19MsgEditDataSourceResponse\"\xa9\x01\n\x15MsgCreateOracleScript\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0e\n\x06schema\x18\x03 \x01(\t\x12*\n\x0fsource_code_url\x18\x04 \x01(\tB\x11\xe2\xde\x1f\rSourceCodeURL\x12\x0c\n\x04\x63ode\x18\x05 \x01(\x0c\x12\r\n\x05owner\x18\x06 \x01(\t\x12\x0e\n\x06sender\x18\x07 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1f\n\x1dMsgCreateOracleScriptResponse\"\xe7\x01\n\x13MsgEditOracleScript\x12>\n\x10oracle_script_id\x18\x01 \x01(\x04\x42$\xe2\xde\x1f\x0eOracleScriptID\xfa\xde\x1f\x0eOracleScriptID\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0e\n\x06schema\x18\x04 \x01(\t\x12*\n\x0fsource_code_url\x18\x05 \x01(\tB\x11\xe2\xde\x1f\rSourceCodeURL\x12\x0c\n\x04\x63ode\x18\x06 \x01(\x0c\x12\r\n\x05owner\x18\x07 \x01(\t\x12\x0e\n\x06sender\x18\x08 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x1d\n\x1bMsgEditOracleScriptResponse\"&\n\x0bMsgActivate\x12\x11\n\tvalidator\x18\x01 \x01(\t:\x04\xe8\xa0\x1f\x01\"\x15\n\x13MsgActivateResponse2\xd0\x04\n\x03Msg\x12K\n\x0bRequestData\x12\x19.oracle.v1.MsgRequestData\x1a!.oracle.v1.MsgRequestDataResponse\x12H\n\nReportData\x12\x18.oracle.v1.MsgReportData\x1a .oracle.v1.MsgReportDataResponse\x12Z\n\x10\x43reateDataSource\x12\x1e.oracle.v1.MsgCreateDataSource\x1a&.oracle.v1.MsgCreateDataSourceResponse\x12T\n\x0e\x45\x64itDataSource\x12\x1c.oracle.v1.MsgEditDataSource\x1a$.oracle.v1.MsgEditDataSourceResponse\x12`\n\x12\x43reateOracleScript\x12 .oracle.v1.MsgCreateOracleScript\x1a(.oracle.v1.MsgCreateOracleScriptResponse\x12Z\n\x10\x45\x64itOracleScript\x12\x1e.oracle.v1.MsgEditOracleScript\x1a&.oracle.v1.MsgEditOracleScriptResponse\x12\x42\n\x08\x41\x63tivate\x12\x16.oracle.v1.MsgActivate\x1a\x1e.oracle.v1.MsgActivateResponseB.Z,github.com/bandprotocol/chain/x/oracle/typesb\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,oracle_dot_v1_dot_oracle__pb2.DESCRIPTOR,cosmos_dot_base_dot_v1beta1_dot_coin__pb2.DESCRIPTOR,]) @@ -41,7 +41,7 @@ fields=[ _descriptor.FieldDescriptor( name='oracle_script_id', full_name='oracle.v1.MsgRequestData.oracle_script_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -154,7 +154,7 @@ fields=[ _descriptor.FieldDescriptor( name='request_id', full_name='oracle.v1.MsgReportData.request_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -173,13 +173,6 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reporter', full_name='oracle.v1.MsgReportData.reporter', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -193,7 +186,7 @@ oneofs=[ ], serialized_start=530, - serialized_end=685, + serialized_end=667, ) @@ -217,8 +210,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=687, - serialized_end=710, + serialized_start=669, + serialized_end=692, ) @@ -291,8 +284,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=713, - serialized_end=934, + serialized_start=695, + serialized_end=916, ) @@ -316,8 +309,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=936, - serialized_end=965, + serialized_start=918, + serialized_end=947, ) @@ -331,7 +324,7 @@ fields=[ _descriptor.FieldDescriptor( name='data_source_id', full_name='oracle.v1.MsgEditDataSource.data_source_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -397,8 +390,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=968, - serialized_end=1245, + serialized_start=950, + serialized_end=1227, ) @@ -422,8 +415,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1247, - serialized_end=1274, + serialized_start=1229, + serialized_end=1256, ) @@ -496,8 +489,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1277, - serialized_end=1446, + serialized_start=1259, + serialized_end=1428, ) @@ -521,8 +514,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1448, - serialized_end=1479, + serialized_start=1430, + serialized_end=1461, ) @@ -536,7 +529,7 @@ fields=[ _descriptor.FieldDescriptor( name='oracle_script_id', full_name='oracle.v1.MsgEditOracleScript.oracle_script_id', index=0, - number=1, type=3, cpp_type=2, label=1, + number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -602,8 +595,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1482, - serialized_end=1713, + serialized_start=1464, + serialized_end=1695, ) @@ -627,8 +620,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1715, - serialized_end=1744, + serialized_start=1697, + serialized_end=1726, ) @@ -659,8 +652,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1746, - serialized_end=1784, + serialized_start=1728, + serialized_end=1766, ) @@ -684,136 +677,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1786, - serialized_end=1807, -) - - -_MSGADDREPORTER = _descriptor.Descriptor( - name='MsgAddReporter', - full_name='oracle.v1.MsgAddReporter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='validator', full_name='oracle.v1.MsgAddReporter.validator', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reporter', full_name='oracle.v1.MsgAddReporter.reporter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'\350\240\037\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1809, - serialized_end=1868, -) - - -_MSGADDREPORTERRESPONSE = _descriptor.Descriptor( - name='MsgAddReporterResponse', - full_name='oracle.v1.MsgAddReporterResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1870, - serialized_end=1894, -) - - -_MSGREMOVEREPORTER = _descriptor.Descriptor( - name='MsgRemoveReporter', - full_name='oracle.v1.MsgRemoveReporter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='validator', full_name='oracle.v1.MsgRemoveReporter.validator', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reporter', full_name='oracle.v1.MsgRemoveReporter.reporter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'\350\240\037\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1896, - serialized_end=1958, -) - - -_MSGREMOVEREPORTERRESPONSE = _descriptor.Descriptor( - name='MsgRemoveReporterResponse', - full_name='oracle.v1.MsgRemoveReporterResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1960, - serialized_end=1987, + serialized_start=1768, + serialized_end=1789, ) _MSGREQUESTDATA.fields_by_name['fee_limit'].message_type = cosmos_dot_base_dot_v1beta1_dot_coin__pb2._COIN @@ -834,10 +699,6 @@ DESCRIPTOR.message_types_by_name['MsgEditOracleScriptResponse'] = _MSGEDITORACLESCRIPTRESPONSE DESCRIPTOR.message_types_by_name['MsgActivate'] = _MSGACTIVATE DESCRIPTOR.message_types_by_name['MsgActivateResponse'] = _MSGACTIVATERESPONSE -DESCRIPTOR.message_types_by_name['MsgAddReporter'] = _MSGADDREPORTER -DESCRIPTOR.message_types_by_name['MsgAddReporterResponse'] = _MSGADDREPORTERRESPONSE -DESCRIPTOR.message_types_by_name['MsgRemoveReporter'] = _MSGREMOVEREPORTER -DESCRIPTOR.message_types_by_name['MsgRemoveReporterResponse'] = _MSGREMOVEREPORTERRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) MsgRequestData = _reflection.GeneratedProtocolMessageType('MsgRequestData', (_message.Message,), { @@ -938,34 +799,6 @@ }) _sym_db.RegisterMessage(MsgActivateResponse) -MsgAddReporter = _reflection.GeneratedProtocolMessageType('MsgAddReporter', (_message.Message,), { - 'DESCRIPTOR' : _MSGADDREPORTER, - '__module__' : 'oracle.v1.tx_pb2' - # @@protoc_insertion_point(class_scope:oracle.v1.MsgAddReporter) - }) -_sym_db.RegisterMessage(MsgAddReporter) - -MsgAddReporterResponse = _reflection.GeneratedProtocolMessageType('MsgAddReporterResponse', (_message.Message,), { - 'DESCRIPTOR' : _MSGADDREPORTERRESPONSE, - '__module__' : 'oracle.v1.tx_pb2' - # @@protoc_insertion_point(class_scope:oracle.v1.MsgAddReporterResponse) - }) -_sym_db.RegisterMessage(MsgAddReporterResponse) - -MsgRemoveReporter = _reflection.GeneratedProtocolMessageType('MsgRemoveReporter', (_message.Message,), { - 'DESCRIPTOR' : _MSGREMOVEREPORTER, - '__module__' : 'oracle.v1.tx_pb2' - # @@protoc_insertion_point(class_scope:oracle.v1.MsgRemoveReporter) - }) -_sym_db.RegisterMessage(MsgRemoveReporter) - -MsgRemoveReporterResponse = _reflection.GeneratedProtocolMessageType('MsgRemoveReporterResponse', (_message.Message,), { - 'DESCRIPTOR' : _MSGREMOVEREPORTERRESPONSE, - '__module__' : 'oracle.v1.tx_pb2' - # @@protoc_insertion_point(class_scope:oracle.v1.MsgRemoveReporterResponse) - }) -_sym_db.RegisterMessage(MsgRemoveReporterResponse) - DESCRIPTOR._options = None _MSGREQUESTDATA.fields_by_name['oracle_script_id']._options = None @@ -986,8 +819,6 @@ _MSGEDITORACLESCRIPT.fields_by_name['source_code_url']._options = None _MSGEDITORACLESCRIPT._options = None _MSGACTIVATE._options = None -_MSGADDREPORTER._options = None -_MSGREMOVEREPORTER._options = None _MSG = _descriptor.ServiceDescriptor( name='Msg', @@ -996,8 +827,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1990, - serialized_end=2745, + serialized_start=1792, + serialized_end=2384, methods=[ _descriptor.MethodDescriptor( name='RequestData', @@ -1069,26 +900,6 @@ serialized_options=None, create_key=_descriptor._internal_create_key, ), - _descriptor.MethodDescriptor( - name='AddReporter', - full_name='oracle.v1.Msg.AddReporter', - index=7, - containing_service=None, - input_type=_MSGADDREPORTER, - output_type=_MSGADDREPORTERRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='RemoveReporter', - full_name='oracle.v1.Msg.RemoveReporter', - index=8, - containing_service=None, - input_type=_MSGREMOVEREPORTER, - output_type=_MSGREMOVEREPORTERRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), ]) _sym_db.RegisterServiceDescriptor(_MSG) diff --git a/pyband/proto/oracle/v1/tx_pb2.pyi b/pyband/proto/oracle/v1/tx_pb2.pyi deleted file mode 100644 index b284054..0000000 --- a/pyband/proto/oracle/v1/tx_pb2.pyi +++ /dev/null @@ -1,310 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import cosmos.base.v1beta1.coin_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import oracle.v1.oracle_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class MsgRequestData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int - CALLDATA_FIELD_NUMBER: builtins.int - ASK_COUNT_FIELD_NUMBER: builtins.int - MIN_COUNT_FIELD_NUMBER: builtins.int - CLIENT_ID_FIELD_NUMBER: builtins.int - FEE_LIMIT_FIELD_NUMBER: builtins.int - PREPARE_GAS_FIELD_NUMBER: builtins.int - EXECUTE_GAS_FIELD_NUMBER: builtins.int - SENDER_FIELD_NUMBER: builtins.int - oracle_script_id: builtins.int = ... - calldata: builtins.bytes = ... - ask_count: builtins.int = ... - min_count: builtins.int = ... - client_id: typing.Text = ... - prepare_gas: builtins.int = ... - execute_gas: builtins.int = ... - sender: typing.Text = ... - - @property - def fee_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - oracle_script_id : builtins.int = ..., - calldata : builtins.bytes = ..., - ask_count : builtins.int = ..., - min_count : builtins.int = ..., - client_id : typing.Text = ..., - fee_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - prepare_gas : builtins.int = ..., - execute_gas : builtins.int = ..., - sender : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"fee_limit",b"fee_limit",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"prepare_gas",b"prepare_gas",u"sender",b"sender"]) -> None: ... -global___MsgRequestData = MsgRequestData - -class MsgRequestDataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgRequestDataResponse = MsgRequestDataResponse - -class MsgReportData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - REQUEST_ID_FIELD_NUMBER: builtins.int - RAW_REPORTS_FIELD_NUMBER: builtins.int - VALIDATOR_FIELD_NUMBER: builtins.int - REPORTER_FIELD_NUMBER: builtins.int - request_id: builtins.int = ... - validator: typing.Text = ... - reporter: typing.Text = ... - - @property - def raw_reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.RawReport]: ... - - def __init__(self, - *, - request_id : builtins.int = ..., - raw_reports : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.RawReport]] = ..., - validator : typing.Text = ..., - reporter : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"raw_reports",b"raw_reports",u"reporter",b"reporter",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... -global___MsgReportData = MsgReportData - -class MsgReportDataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgReportDataResponse = MsgReportDataResponse - -class MsgCreateDataSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - EXECUTABLE_FIELD_NUMBER: builtins.int - FEE_FIELD_NUMBER: builtins.int - TREASURY_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - SENDER_FIELD_NUMBER: builtins.int - name: typing.Text = ... - description: typing.Text = ... - executable: builtins.bytes = ... - treasury: typing.Text = ... - owner: typing.Text = ... - sender: typing.Text = ... - - @property - def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - name : typing.Text = ..., - description : typing.Text = ..., - executable : builtins.bytes = ..., - fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - treasury : typing.Text = ..., - owner : typing.Text = ..., - sender : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"executable",b"executable",u"fee",b"fee",u"name",b"name",u"owner",b"owner",u"sender",b"sender",u"treasury",b"treasury"]) -> None: ... -global___MsgCreateDataSource = MsgCreateDataSource - -class MsgCreateDataSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgCreateDataSourceResponse = MsgCreateDataSourceResponse - -class MsgEditDataSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_SOURCE_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - EXECUTABLE_FIELD_NUMBER: builtins.int - FEE_FIELD_NUMBER: builtins.int - TREASURY_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - SENDER_FIELD_NUMBER: builtins.int - data_source_id: builtins.int = ... - name: typing.Text = ... - description: typing.Text = ... - executable: builtins.bytes = ... - treasury: typing.Text = ... - owner: typing.Text = ... - sender: typing.Text = ... - - @property - def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... - - def __init__(self, - *, - data_source_id : builtins.int = ..., - name : typing.Text = ..., - description : typing.Text = ..., - executable : builtins.bytes = ..., - fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., - treasury : typing.Text = ..., - owner : typing.Text = ..., - sender : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data_source_id",b"data_source_id",u"description",b"description",u"executable",b"executable",u"fee",b"fee",u"name",b"name",u"owner",b"owner",u"sender",b"sender",u"treasury",b"treasury"]) -> None: ... -global___MsgEditDataSource = MsgEditDataSource - -class MsgEditDataSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgEditDataSourceResponse = MsgEditDataSourceResponse - -class MsgCreateOracleScript(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - SOURCE_CODE_URL_FIELD_NUMBER: builtins.int - CODE_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - SENDER_FIELD_NUMBER: builtins.int - name: typing.Text = ... - description: typing.Text = ... - schema: typing.Text = ... - source_code_url: typing.Text = ... - code: builtins.bytes = ... - owner: typing.Text = ... - sender: typing.Text = ... - - def __init__(self, - *, - name : typing.Text = ..., - description : typing.Text = ..., - schema : typing.Text = ..., - source_code_url : typing.Text = ..., - code : builtins.bytes = ..., - owner : typing.Text = ..., - sender : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"description",b"description",u"name",b"name",u"owner",b"owner",u"schema",b"schema",u"sender",b"sender",u"source_code_url",b"source_code_url"]) -> None: ... -global___MsgCreateOracleScript = MsgCreateOracleScript - -class MsgCreateOracleScriptResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgCreateOracleScriptResponse = MsgCreateOracleScriptResponse - -class MsgEditOracleScript(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - SOURCE_CODE_URL_FIELD_NUMBER: builtins.int - CODE_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - SENDER_FIELD_NUMBER: builtins.int - oracle_script_id: builtins.int = ... - name: typing.Text = ... - description: typing.Text = ... - schema: typing.Text = ... - source_code_url: typing.Text = ... - code: builtins.bytes = ... - owner: typing.Text = ... - sender: typing.Text = ... - - def __init__(self, - *, - oracle_script_id : builtins.int = ..., - name : typing.Text = ..., - description : typing.Text = ..., - schema : typing.Text = ..., - source_code_url : typing.Text = ..., - code : builtins.bytes = ..., - owner : typing.Text = ..., - sender : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"description",b"description",u"name",b"name",u"oracle_script_id",b"oracle_script_id",u"owner",b"owner",u"schema",b"schema",u"sender",b"sender",u"source_code_url",b"source_code_url"]) -> None: ... -global___MsgEditOracleScript = MsgEditOracleScript - -class MsgEditOracleScriptResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgEditOracleScriptResponse = MsgEditOracleScriptResponse - -class MsgActivate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_FIELD_NUMBER: builtins.int - validator: typing.Text = ... - - def __init__(self, - *, - validator : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... -global___MsgActivate = MsgActivate - -class MsgActivateResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgActivateResponse = MsgActivateResponse - -class MsgAddReporter(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_FIELD_NUMBER: builtins.int - REPORTER_FIELD_NUMBER: builtins.int - validator: typing.Text = ... - reporter: typing.Text = ... - - def __init__(self, - *, - validator : typing.Text = ..., - reporter : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"reporter",b"reporter",u"validator",b"validator"]) -> None: ... -global___MsgAddReporter = MsgAddReporter - -class MsgAddReporterResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgAddReporterResponse = MsgAddReporterResponse - -class MsgRemoveReporter(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_FIELD_NUMBER: builtins.int - REPORTER_FIELD_NUMBER: builtins.int - validator: typing.Text = ... - reporter: typing.Text = ... - - def __init__(self, - *, - validator : typing.Text = ..., - reporter : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"reporter",b"reporter",u"validator",b"validator"]) -> None: ... -global___MsgRemoveReporter = MsgRemoveReporter - -class MsgRemoveReporterResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___MsgRemoveReporterResponse = MsgRemoveReporterResponse diff --git a/pyband/proto/oracle/v1/tx_pb2_grpc.py b/pyband/proto/oracle/v1/tx_pb2_grpc.py index 4a7919c..e5380df 100644 --- a/pyband/proto/oracle/v1/tx_pb2_grpc.py +++ b/pyband/proto/oracle/v1/tx_pb2_grpc.py @@ -50,16 +50,6 @@ def __init__(self, channel): request_serializer=oracle_dot_v1_dot_tx__pb2.MsgActivate.SerializeToString, response_deserializer=oracle_dot_v1_dot_tx__pb2.MsgActivateResponse.FromString, ) - self.AddReporter = channel.unary_unary( - '/oracle.v1.Msg/AddReporter', - request_serializer=oracle_dot_v1_dot_tx__pb2.MsgAddReporter.SerializeToString, - response_deserializer=oracle_dot_v1_dot_tx__pb2.MsgAddReporterResponse.FromString, - ) - self.RemoveReporter = channel.unary_unary( - '/oracle.v1.Msg/RemoveReporter', - request_serializer=oracle_dot_v1_dot_tx__pb2.MsgRemoveReporter.SerializeToString, - response_deserializer=oracle_dot_v1_dot_tx__pb2.MsgRemoveReporterResponse.FromString, - ) class MsgServicer(object): @@ -115,20 +105,6 @@ def Activate(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def AddReporter(self, request, context): - """AddReporter defines a method for adding a new reporter for a validator. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveReporter(self, request, context): - """RemoveReporter defines a method for removing an reporter from a validator - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def add_MsgServicer_to_server(servicer, server): rpc_method_handlers = { @@ -167,16 +143,6 @@ def add_MsgServicer_to_server(servicer, server): request_deserializer=oracle_dot_v1_dot_tx__pb2.MsgActivate.FromString, response_serializer=oracle_dot_v1_dot_tx__pb2.MsgActivateResponse.SerializeToString, ), - 'AddReporter': grpc.unary_unary_rpc_method_handler( - servicer.AddReporter, - request_deserializer=oracle_dot_v1_dot_tx__pb2.MsgAddReporter.FromString, - response_serializer=oracle_dot_v1_dot_tx__pb2.MsgAddReporterResponse.SerializeToString, - ), - 'RemoveReporter': grpc.unary_unary_rpc_method_handler( - servicer.RemoveReporter, - request_deserializer=oracle_dot_v1_dot_tx__pb2.MsgRemoveReporter.FromString, - response_serializer=oracle_dot_v1_dot_tx__pb2.MsgRemoveReporterResponse.SerializeToString, - ), } generic_handler = grpc.method_handlers_generic_handler( 'oracle.v1.Msg', rpc_method_handlers) @@ -306,37 +272,3 @@ def Activate(request, oracle_dot_v1_dot_tx__pb2.MsgActivateResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddReporter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/oracle.v1.Msg/AddReporter', - oracle_dot_v1_dot_tx__pb2.MsgAddReporter.SerializeToString, - oracle_dot_v1_dot_tx__pb2.MsgAddReporterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RemoveReporter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/oracle.v1.Msg/RemoveReporter', - oracle_dot_v1_dot_tx__pb2.MsgRemoveReporter.SerializeToString, - oracle_dot_v1_dot_tx__pb2.MsgRemoveReporterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/pyband/proto/oracle/v1/tx_pb2_grpc.pyi b/pyband/proto/oracle/v1/tx_pb2_grpc.pyi deleted file mode 100644 index 0ec002f..0000000 --- a/pyband/proto/oracle/v1/tx_pb2_grpc.pyi +++ /dev/null @@ -1,104 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .tx_pb2 import * -class MsgStub: - def __init__(self, channel: grpc.Channel) -> None: ... - RequestData:grpc.UnaryUnaryMultiCallable[ - global___MsgRequestData, - global___MsgRequestDataResponse] = ... - - ReportData:grpc.UnaryUnaryMultiCallable[ - global___MsgReportData, - global___MsgReportDataResponse] = ... - - CreateDataSource:grpc.UnaryUnaryMultiCallable[ - global___MsgCreateDataSource, - global___MsgCreateDataSourceResponse] = ... - - EditDataSource:grpc.UnaryUnaryMultiCallable[ - global___MsgEditDataSource, - global___MsgEditDataSourceResponse] = ... - - CreateOracleScript:grpc.UnaryUnaryMultiCallable[ - global___MsgCreateOracleScript, - global___MsgCreateOracleScriptResponse] = ... - - EditOracleScript:grpc.UnaryUnaryMultiCallable[ - global___MsgEditOracleScript, - global___MsgEditOracleScriptResponse] = ... - - Activate:grpc.UnaryUnaryMultiCallable[ - global___MsgActivate, - global___MsgActivateResponse] = ... - - AddReporter:grpc.UnaryUnaryMultiCallable[ - global___MsgAddReporter, - global___MsgAddReporterResponse] = ... - - RemoveReporter:grpc.UnaryUnaryMultiCallable[ - global___MsgRemoveReporter, - global___MsgRemoveReporterResponse] = ... - - -class MsgServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def RequestData(self, - request: global___MsgRequestData, - context: grpc.ServicerContext, - ) -> global___MsgRequestDataResponse: ... - - @abc.abstractmethod - def ReportData(self, - request: global___MsgReportData, - context: grpc.ServicerContext, - ) -> global___MsgReportDataResponse: ... - - @abc.abstractmethod - def CreateDataSource(self, - request: global___MsgCreateDataSource, - context: grpc.ServicerContext, - ) -> global___MsgCreateDataSourceResponse: ... - - @abc.abstractmethod - def EditDataSource(self, - request: global___MsgEditDataSource, - context: grpc.ServicerContext, - ) -> global___MsgEditDataSourceResponse: ... - - @abc.abstractmethod - def CreateOracleScript(self, - request: global___MsgCreateOracleScript, - context: grpc.ServicerContext, - ) -> global___MsgCreateOracleScriptResponse: ... - - @abc.abstractmethod - def EditOracleScript(self, - request: global___MsgEditOracleScript, - context: grpc.ServicerContext, - ) -> global___MsgEditOracleScriptResponse: ... - - @abc.abstractmethod - def Activate(self, - request: global___MsgActivate, - context: grpc.ServicerContext, - ) -> global___MsgActivateResponse: ... - - @abc.abstractmethod - def AddReporter(self, - request: global___MsgAddReporter, - context: grpc.ServicerContext, - ) -> global___MsgAddReporterResponse: ... - - @abc.abstractmethod - def RemoveReporter(self, - request: global___MsgRemoveReporter, - context: grpc.ServicerContext, - ) -> global___MsgRemoveReporterResponse: ... - - -def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/tendermint/abci/types_pb2.pyi b/pyband/proto/tendermint/abci/types_pb2.pyi deleted file mode 100644 index fa66b27..0000000 --- a/pyband/proto/tendermint/abci/types_pb2.pyi +++ /dev/null @@ -1,1047 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import tendermint.crypto.keys_pb2 -import tendermint.crypto.proof_pb2 -import tendermint.types.params_pb2 -import tendermint.types.types_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class CheckTxType(metaclass=_CheckTxType): - V = typing.NewType('V', builtins.int) - -global___CheckTxType = CheckTxType - -NEW = CheckTxType.V(0) -RECHECK = CheckTxType.V(1) - -class _CheckTxType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CheckTxType.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - NEW = CheckTxType.V(0) - RECHECK = CheckTxType.V(1) - -class EvidenceType(metaclass=_EvidenceType): - V = typing.NewType('V', builtins.int) - -global___EvidenceType = EvidenceType - -UNKNOWN = EvidenceType.V(0) -DUPLICATE_VOTE = EvidenceType.V(1) -LIGHT_CLIENT_ATTACK = EvidenceType.V(2) - -class _EvidenceType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[EvidenceType.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - UNKNOWN = EvidenceType.V(0) - DUPLICATE_VOTE = EvidenceType.V(1) - LIGHT_CLIENT_ATTACK = EvidenceType.V(2) - -class Request(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ECHO_FIELD_NUMBER: builtins.int - FLUSH_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - SET_OPTION_FIELD_NUMBER: builtins.int - INIT_CHAIN_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - BEGIN_BLOCK_FIELD_NUMBER: builtins.int - CHECK_TX_FIELD_NUMBER: builtins.int - DELIVER_TX_FIELD_NUMBER: builtins.int - END_BLOCK_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - LIST_SNAPSHOTS_FIELD_NUMBER: builtins.int - OFFER_SNAPSHOT_FIELD_NUMBER: builtins.int - LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int - APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int - - @property - def echo(self) -> global___RequestEcho: ... - - @property - def flush(self) -> global___RequestFlush: ... - - @property - def info(self) -> global___RequestInfo: ... - - @property - def set_option(self) -> global___RequestSetOption: ... - - @property - def init_chain(self) -> global___RequestInitChain: ... - - @property - def query(self) -> global___RequestQuery: ... - - @property - def begin_block(self) -> global___RequestBeginBlock: ... - - @property - def check_tx(self) -> global___RequestCheckTx: ... - - @property - def deliver_tx(self) -> global___RequestDeliverTx: ... - - @property - def end_block(self) -> global___RequestEndBlock: ... - - @property - def commit(self) -> global___RequestCommit: ... - - @property - def list_snapshots(self) -> global___RequestListSnapshots: ... - - @property - def offer_snapshot(self) -> global___RequestOfferSnapshot: ... - - @property - def load_snapshot_chunk(self) -> global___RequestLoadSnapshotChunk: ... - - @property - def apply_snapshot_chunk(self) -> global___RequestApplySnapshotChunk: ... - - def __init__(self, - *, - echo : typing.Optional[global___RequestEcho] = ..., - flush : typing.Optional[global___RequestFlush] = ..., - info : typing.Optional[global___RequestInfo] = ..., - set_option : typing.Optional[global___RequestSetOption] = ..., - init_chain : typing.Optional[global___RequestInitChain] = ..., - query : typing.Optional[global___RequestQuery] = ..., - begin_block : typing.Optional[global___RequestBeginBlock] = ..., - check_tx : typing.Optional[global___RequestCheckTx] = ..., - deliver_tx : typing.Optional[global___RequestDeliverTx] = ..., - end_block : typing.Optional[global___RequestEndBlock] = ..., - commit : typing.Optional[global___RequestCommit] = ..., - list_snapshots : typing.Optional[global___RequestListSnapshots] = ..., - offer_snapshot : typing.Optional[global___RequestOfferSnapshot] = ..., - load_snapshot_chunk : typing.Optional[global___RequestLoadSnapshotChunk] = ..., - apply_snapshot_chunk : typing.Optional[global___RequestApplySnapshotChunk] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"value",b"value"]) -> typing.Optional[typing_extensions.Literal["echo","flush","info","set_option","init_chain","query","begin_block","check_tx","deliver_tx","end_block","commit","list_snapshots","offer_snapshot","load_snapshot_chunk","apply_snapshot_chunk"]]: ... -global___Request = Request - -class RequestEcho(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MESSAGE_FIELD_NUMBER: builtins.int - message: typing.Text = ... - - def __init__(self, - *, - message : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"message",b"message"]) -> None: ... -global___RequestEcho = RequestEcho - -class RequestFlush(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___RequestFlush = RequestFlush - -class RequestInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VERSION_FIELD_NUMBER: builtins.int - BLOCK_VERSION_FIELD_NUMBER: builtins.int - P2P_VERSION_FIELD_NUMBER: builtins.int - version: typing.Text = ... - block_version: builtins.int = ... - p2p_version: builtins.int = ... - - def __init__(self, - *, - version : typing.Text = ..., - block_version : builtins.int = ..., - p2p_version : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_version",b"block_version",u"p2p_version",b"p2p_version",u"version",b"version"]) -> None: ... -global___RequestInfo = RequestInfo - -class RequestSetOption(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: typing.Text = ... - value: typing.Text = ... - - def __init__(self, - *, - key : typing.Text = ..., - value : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... -global___RequestSetOption = RequestSetOption - -class RequestInitChain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TIME_FIELD_NUMBER: builtins.int - CHAIN_ID_FIELD_NUMBER: builtins.int - CONSENSUS_PARAMS_FIELD_NUMBER: builtins.int - VALIDATORS_FIELD_NUMBER: builtins.int - APP_STATE_BYTES_FIELD_NUMBER: builtins.int - INITIAL_HEIGHT_FIELD_NUMBER: builtins.int - chain_id: typing.Text = ... - app_state_bytes: builtins.bytes = ... - initial_height: builtins.int = ... - - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - @property - def consensus_params(self) -> global___ConsensusParams: ... - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... - - def __init__(self, - *, - time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - chain_id : typing.Text = ..., - consensus_params : typing.Optional[global___ConsensusParams] = ..., - validators : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., - app_state_bytes : builtins.bytes = ..., - initial_height : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_params",b"consensus_params",u"time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app_state_bytes",b"app_state_bytes",u"chain_id",b"chain_id",u"consensus_params",b"consensus_params",u"initial_height",b"initial_height",u"time",b"time",u"validators",b"validators"]) -> None: ... -global___RequestInitChain = RequestInitChain - -class RequestQuery(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_FIELD_NUMBER: builtins.int - PATH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - PROVE_FIELD_NUMBER: builtins.int - data: builtins.bytes = ... - path: typing.Text = ... - height: builtins.int = ... - prove: builtins.bool = ... - - def __init__(self, - *, - data : builtins.bytes = ..., - path : typing.Text = ..., - height : builtins.int = ..., - prove : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"height",b"height",u"path",b"path",u"prove",b"prove"]) -> None: ... -global___RequestQuery = RequestQuery - -class RequestBeginBlock(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HASH_FIELD_NUMBER: builtins.int - HEADER_FIELD_NUMBER: builtins.int - LAST_COMMIT_INFO_FIELD_NUMBER: builtins.int - BYZANTINE_VALIDATORS_FIELD_NUMBER: builtins.int - hash: builtins.bytes = ... - - @property - def header(self) -> tendermint.types.types_pb2.Header: ... - - @property - def last_commit_info(self) -> global___LastCommitInfo: ... - - @property - def byzantine_validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Evidence]: ... - - def __init__(self, - *, - hash : builtins.bytes = ..., - header : typing.Optional[tendermint.types.types_pb2.Header] = ..., - last_commit_info : typing.Optional[global___LastCommitInfo] = ..., - byzantine_validators : typing.Optional[typing.Iterable[global___Evidence]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"header",b"header",u"last_commit_info",b"last_commit_info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"byzantine_validators",b"byzantine_validators",u"hash",b"hash",u"header",b"header",u"last_commit_info",b"last_commit_info"]) -> None: ... -global___RequestBeginBlock = RequestBeginBlock - -class RequestCheckTx(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TX_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - tx: builtins.bytes = ... - type: global___CheckTxType.V = ... - - def __init__(self, - *, - tx : builtins.bytes = ..., - type : global___CheckTxType.V = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"type",b"type"]) -> None: ... -global___RequestCheckTx = RequestCheckTx - -class RequestDeliverTx(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TX_FIELD_NUMBER: builtins.int - tx: builtins.bytes = ... - - def __init__(self, - *, - tx : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> None: ... -global___RequestDeliverTx = RequestDeliverTx - -class RequestEndBlock(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - height: builtins.int = ... - - def __init__(self, - *, - height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... -global___RequestEndBlock = RequestEndBlock - -class RequestCommit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___RequestCommit = RequestCommit - -class RequestListSnapshots(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___RequestListSnapshots = RequestListSnapshots - -class RequestOfferSnapshot(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SNAPSHOT_FIELD_NUMBER: builtins.int - APP_HASH_FIELD_NUMBER: builtins.int - app_hash: builtins.bytes = ... - - @property - def snapshot(self) -> global___Snapshot: ... - - def __init__(self, - *, - snapshot : typing.Optional[global___Snapshot] = ..., - app_hash : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"snapshot",b"snapshot"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"snapshot",b"snapshot"]) -> None: ... -global___RequestOfferSnapshot = RequestOfferSnapshot - -class RequestLoadSnapshotChunk(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - FORMAT_FIELD_NUMBER: builtins.int - CHUNK_FIELD_NUMBER: builtins.int - height: builtins.int = ... - format: builtins.int = ... - chunk: builtins.int = ... - - def __init__(self, - *, - height : builtins.int = ..., - format : builtins.int = ..., - chunk : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chunk",b"chunk",u"format",b"format",u"height",b"height"]) -> None: ... -global___RequestLoadSnapshotChunk = RequestLoadSnapshotChunk - -class RequestApplySnapshotChunk(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INDEX_FIELD_NUMBER: builtins.int - CHUNK_FIELD_NUMBER: builtins.int - SENDER_FIELD_NUMBER: builtins.int - index: builtins.int = ... - chunk: builtins.bytes = ... - sender: typing.Text = ... - - def __init__(self, - *, - index : builtins.int = ..., - chunk : builtins.bytes = ..., - sender : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chunk",b"chunk",u"index",b"index",u"sender",b"sender"]) -> None: ... -global___RequestApplySnapshotChunk = RequestApplySnapshotChunk - -class Response(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EXCEPTION_FIELD_NUMBER: builtins.int - ECHO_FIELD_NUMBER: builtins.int - FLUSH_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - SET_OPTION_FIELD_NUMBER: builtins.int - INIT_CHAIN_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - BEGIN_BLOCK_FIELD_NUMBER: builtins.int - CHECK_TX_FIELD_NUMBER: builtins.int - DELIVER_TX_FIELD_NUMBER: builtins.int - END_BLOCK_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - LIST_SNAPSHOTS_FIELD_NUMBER: builtins.int - OFFER_SNAPSHOT_FIELD_NUMBER: builtins.int - LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int - APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int - - @property - def exception(self) -> global___ResponseException: ... - - @property - def echo(self) -> global___ResponseEcho: ... - - @property - def flush(self) -> global___ResponseFlush: ... - - @property - def info(self) -> global___ResponseInfo: ... - - @property - def set_option(self) -> global___ResponseSetOption: ... - - @property - def init_chain(self) -> global___ResponseInitChain: ... - - @property - def query(self) -> global___ResponseQuery: ... - - @property - def begin_block(self) -> global___ResponseBeginBlock: ... - - @property - def check_tx(self) -> global___ResponseCheckTx: ... - - @property - def deliver_tx(self) -> global___ResponseDeliverTx: ... - - @property - def end_block(self) -> global___ResponseEndBlock: ... - - @property - def commit(self) -> global___ResponseCommit: ... - - @property - def list_snapshots(self) -> global___ResponseListSnapshots: ... - - @property - def offer_snapshot(self) -> global___ResponseOfferSnapshot: ... - - @property - def load_snapshot_chunk(self) -> global___ResponseLoadSnapshotChunk: ... - - @property - def apply_snapshot_chunk(self) -> global___ResponseApplySnapshotChunk: ... - - def __init__(self, - *, - exception : typing.Optional[global___ResponseException] = ..., - echo : typing.Optional[global___ResponseEcho] = ..., - flush : typing.Optional[global___ResponseFlush] = ..., - info : typing.Optional[global___ResponseInfo] = ..., - set_option : typing.Optional[global___ResponseSetOption] = ..., - init_chain : typing.Optional[global___ResponseInitChain] = ..., - query : typing.Optional[global___ResponseQuery] = ..., - begin_block : typing.Optional[global___ResponseBeginBlock] = ..., - check_tx : typing.Optional[global___ResponseCheckTx] = ..., - deliver_tx : typing.Optional[global___ResponseDeliverTx] = ..., - end_block : typing.Optional[global___ResponseEndBlock] = ..., - commit : typing.Optional[global___ResponseCommit] = ..., - list_snapshots : typing.Optional[global___ResponseListSnapshots] = ..., - offer_snapshot : typing.Optional[global___ResponseOfferSnapshot] = ..., - load_snapshot_chunk : typing.Optional[global___ResponseLoadSnapshotChunk] = ..., - apply_snapshot_chunk : typing.Optional[global___ResponseApplySnapshotChunk] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"exception",b"exception",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"exception",b"exception",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"value",b"value"]) -> typing.Optional[typing_extensions.Literal["exception","echo","flush","info","set_option","init_chain","query","begin_block","check_tx","deliver_tx","end_block","commit","list_snapshots","offer_snapshot","load_snapshot_chunk","apply_snapshot_chunk"]]: ... -global___Response = Response - -class ResponseException(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ERROR_FIELD_NUMBER: builtins.int - error: typing.Text = ... - - def __init__(self, - *, - error : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"error",b"error"]) -> None: ... -global___ResponseException = ResponseException - -class ResponseEcho(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MESSAGE_FIELD_NUMBER: builtins.int - message: typing.Text = ... - - def __init__(self, - *, - message : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"message",b"message"]) -> None: ... -global___ResponseEcho = ResponseEcho - -class ResponseFlush(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - - def __init__(self, - ) -> None: ... -global___ResponseFlush = ResponseFlush - -class ResponseInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - APP_VERSION_FIELD_NUMBER: builtins.int - LAST_BLOCK_HEIGHT_FIELD_NUMBER: builtins.int - LAST_BLOCK_APP_HASH_FIELD_NUMBER: builtins.int - data: typing.Text = ... - version: typing.Text = ... - app_version: builtins.int = ... - last_block_height: builtins.int = ... - last_block_app_hash: builtins.bytes = ... - - def __init__(self, - *, - data : typing.Text = ..., - version : typing.Text = ..., - app_version : builtins.int = ..., - last_block_height : builtins.int = ..., - last_block_app_hash : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app_version",b"app_version",u"data",b"data",u"last_block_app_hash",b"last_block_app_hash",u"last_block_height",b"last_block_height",u"version",b"version"]) -> None: ... -global___ResponseInfo = ResponseInfo - -class ResponseSetOption(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CODE_FIELD_NUMBER: builtins.int - LOG_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - code: builtins.int = ... - log: typing.Text = ... - info: typing.Text = ... - - def __init__(self, - *, - code : builtins.int = ..., - log : typing.Text = ..., - info : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"info",b"info",u"log",b"log"]) -> None: ... -global___ResponseSetOption = ResponseSetOption - -class ResponseInitChain(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONSENSUS_PARAMS_FIELD_NUMBER: builtins.int - VALIDATORS_FIELD_NUMBER: builtins.int - APP_HASH_FIELD_NUMBER: builtins.int - app_hash: builtins.bytes = ... - - @property - def consensus_params(self) -> global___ConsensusParams: ... - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... - - def __init__(self, - *, - consensus_params : typing.Optional[global___ConsensusParams] = ..., - validators : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., - app_hash : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_params",b"consensus_params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"consensus_params",b"consensus_params",u"validators",b"validators"]) -> None: ... -global___ResponseInitChain = ResponseInitChain - -class ResponseQuery(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CODE_FIELD_NUMBER: builtins.int - LOG_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - INDEX_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - PROOF_OPS_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - CODESPACE_FIELD_NUMBER: builtins.int - code: builtins.int = ... - log: typing.Text = ... - info: typing.Text = ... - index: builtins.int = ... - key: builtins.bytes = ... - value: builtins.bytes = ... - height: builtins.int = ... - codespace: typing.Text = ... - - @property - def proof_ops(self) -> tendermint.crypto.proof_pb2.ProofOps: ... - - def __init__(self, - *, - code : builtins.int = ..., - log : typing.Text = ..., - info : typing.Text = ..., - index : builtins.int = ..., - key : builtins.bytes = ..., - value : builtins.bytes = ..., - proof_ops : typing.Optional[tendermint.crypto.proof_pb2.ProofOps] = ..., - height : builtins.int = ..., - codespace : typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof_ops",b"proof_ops"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"height",b"height",u"index",b"index",u"info",b"info",u"key",b"key",u"log",b"log",u"proof_ops",b"proof_ops",u"value",b"value"]) -> None: ... -global___ResponseQuery = ResponseQuery - -class ResponseBeginBlock(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EVENTS_FIELD_NUMBER: builtins.int - - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... - - def __init__(self, - *, - events : typing.Optional[typing.Iterable[global___Event]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events"]) -> None: ... -global___ResponseBeginBlock = ResponseBeginBlock - -class ResponseCheckTx(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CODE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - LOG_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - GAS_WANTED_FIELD_NUMBER: builtins.int - GAS_USED_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - CODESPACE_FIELD_NUMBER: builtins.int - code: builtins.int = ... - data: builtins.bytes = ... - log: typing.Text = ... - info: typing.Text = ... - gas_wanted: builtins.int = ... - gas_used: builtins.int = ... - codespace: typing.Text = ... - - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... - - def __init__(self, - *, - code : builtins.int = ..., - data : builtins.bytes = ..., - log : typing.Text = ..., - info : typing.Text = ..., - gas_wanted : builtins.int = ..., - gas_used : builtins.int = ..., - events : typing.Optional[typing.Iterable[global___Event]] = ..., - codespace : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"events",b"events",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"info",b"info",u"log",b"log"]) -> None: ... -global___ResponseCheckTx = ResponseCheckTx - -class ResponseDeliverTx(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CODE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - LOG_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - GAS_WANTED_FIELD_NUMBER: builtins.int - GAS_USED_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - CODESPACE_FIELD_NUMBER: builtins.int - code: builtins.int = ... - data: builtins.bytes = ... - log: typing.Text = ... - info: typing.Text = ... - gas_wanted: builtins.int = ... - gas_used: builtins.int = ... - codespace: typing.Text = ... - - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... - - def __init__(self, - *, - code : builtins.int = ..., - data : builtins.bytes = ..., - log : typing.Text = ..., - info : typing.Text = ..., - gas_wanted : builtins.int = ..., - gas_used : builtins.int = ..., - events : typing.Optional[typing.Iterable[global___Event]] = ..., - codespace : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"events",b"events",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"info",b"info",u"log",b"log"]) -> None: ... -global___ResponseDeliverTx = ResponseDeliverTx - -class ResponseEndBlock(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_UPDATES_FIELD_NUMBER: builtins.int - CONSENSUS_PARAM_UPDATES_FIELD_NUMBER: builtins.int - EVENTS_FIELD_NUMBER: builtins.int - - @property - def validator_updates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... - - @property - def consensus_param_updates(self) -> global___ConsensusParams: ... - - @property - def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... - - def __init__(self, - *, - validator_updates : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., - consensus_param_updates : typing.Optional[global___ConsensusParams] = ..., - events : typing.Optional[typing.Iterable[global___Event]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"consensus_param_updates",b"consensus_param_updates"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"consensus_param_updates",b"consensus_param_updates",u"events",b"events",u"validator_updates",b"validator_updates"]) -> None: ... -global___ResponseEndBlock = ResponseEndBlock - -class ResponseCommit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DATA_FIELD_NUMBER: builtins.int - RETAIN_HEIGHT_FIELD_NUMBER: builtins.int - data: builtins.bytes = ... - retain_height: builtins.int = ... - - def __init__(self, - *, - data : builtins.bytes = ..., - retain_height : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"retain_height",b"retain_height"]) -> None: ... -global___ResponseCommit = ResponseCommit - -class ResponseListSnapshots(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SNAPSHOTS_FIELD_NUMBER: builtins.int - - @property - def snapshots(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Snapshot]: ... - - def __init__(self, - *, - snapshots : typing.Optional[typing.Iterable[global___Snapshot]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"snapshots",b"snapshots"]) -> None: ... -global___ResponseListSnapshots = ResponseListSnapshots - -class ResponseOfferSnapshot(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Result(metaclass=_Result): - V = typing.NewType('V', builtins.int) - - UNKNOWN = ResponseOfferSnapshot.Result.V(0) - ACCEPT = ResponseOfferSnapshot.Result.V(1) - ABORT = ResponseOfferSnapshot.Result.V(2) - REJECT = ResponseOfferSnapshot.Result.V(3) - REJECT_FORMAT = ResponseOfferSnapshot.Result.V(4) - REJECT_SENDER = ResponseOfferSnapshot.Result.V(5) - - class _Result(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Result.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - UNKNOWN = ResponseOfferSnapshot.Result.V(0) - ACCEPT = ResponseOfferSnapshot.Result.V(1) - ABORT = ResponseOfferSnapshot.Result.V(2) - REJECT = ResponseOfferSnapshot.Result.V(3) - REJECT_FORMAT = ResponseOfferSnapshot.Result.V(4) - REJECT_SENDER = ResponseOfferSnapshot.Result.V(5) - - RESULT_FIELD_NUMBER: builtins.int - result: global___ResponseOfferSnapshot.Result.V = ... - - def __init__(self, - *, - result : global___ResponseOfferSnapshot.Result.V = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"result",b"result"]) -> None: ... -global___ResponseOfferSnapshot = ResponseOfferSnapshot - -class ResponseLoadSnapshotChunk(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CHUNK_FIELD_NUMBER: builtins.int - chunk: builtins.bytes = ... - - def __init__(self, - *, - chunk : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chunk",b"chunk"]) -> None: ... -global___ResponseLoadSnapshotChunk = ResponseLoadSnapshotChunk - -class ResponseApplySnapshotChunk(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - class Result(metaclass=_Result): - V = typing.NewType('V', builtins.int) - - UNKNOWN = ResponseApplySnapshotChunk.Result.V(0) - ACCEPT = ResponseApplySnapshotChunk.Result.V(1) - ABORT = ResponseApplySnapshotChunk.Result.V(2) - RETRY = ResponseApplySnapshotChunk.Result.V(3) - RETRY_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(4) - REJECT_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(5) - - class _Result(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Result.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - UNKNOWN = ResponseApplySnapshotChunk.Result.V(0) - ACCEPT = ResponseApplySnapshotChunk.Result.V(1) - ABORT = ResponseApplySnapshotChunk.Result.V(2) - RETRY = ResponseApplySnapshotChunk.Result.V(3) - RETRY_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(4) - REJECT_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(5) - - RESULT_FIELD_NUMBER: builtins.int - REFETCH_CHUNKS_FIELD_NUMBER: builtins.int - REJECT_SENDERS_FIELD_NUMBER: builtins.int - result: global___ResponseApplySnapshotChunk.Result.V = ... - - @property - def refetch_chunks(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - @property - def reject_senders(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - result : global___ResponseApplySnapshotChunk.Result.V = ..., - refetch_chunks : typing.Optional[typing.Iterable[builtins.int]] = ..., - reject_senders : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"refetch_chunks",b"refetch_chunks",u"reject_senders",b"reject_senders",u"result",b"result"]) -> None: ... -global___ResponseApplySnapshotChunk = ResponseApplySnapshotChunk - -class ConsensusParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_FIELD_NUMBER: builtins.int - EVIDENCE_FIELD_NUMBER: builtins.int - VALIDATOR_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - - @property - def block(self) -> global___BlockParams: ... - - @property - def evidence(self) -> tendermint.types.params_pb2.EvidenceParams: ... - - @property - def validator(self) -> tendermint.types.params_pb2.ValidatorParams: ... - - @property - def version(self) -> tendermint.types.params_pb2.VersionParams: ... - - def __init__(self, - *, - block : typing.Optional[global___BlockParams] = ..., - evidence : typing.Optional[tendermint.types.params_pb2.EvidenceParams] = ..., - validator : typing.Optional[tendermint.types.params_pb2.ValidatorParams] = ..., - version : typing.Optional[tendermint.types.params_pb2.VersionParams] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> None: ... -global___ConsensusParams = ConsensusParams - -class BlockParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MAX_BYTES_FIELD_NUMBER: builtins.int - MAX_GAS_FIELD_NUMBER: builtins.int - max_bytes: builtins.int = ... - max_gas: builtins.int = ... - - def __init__(self, - *, - max_bytes : builtins.int = ..., - max_gas : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max_bytes",b"max_bytes",u"max_gas",b"max_gas"]) -> None: ... -global___BlockParams = BlockParams - -class LastCommitInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ROUND_FIELD_NUMBER: builtins.int - VOTES_FIELD_NUMBER: builtins.int - round: builtins.int = ... - - @property - def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VoteInfo]: ... - - def __init__(self, - *, - round : builtins.int = ..., - votes : typing.Optional[typing.Iterable[global___VoteInfo]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"round",b"round",u"votes",b"votes"]) -> None: ... -global___LastCommitInfo = LastCommitInfo - -class Event(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TYPE_FIELD_NUMBER: builtins.int - ATTRIBUTES_FIELD_NUMBER: builtins.int - type: typing.Text = ... - - @property - def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EventAttribute]: ... - - def __init__(self, - *, - type : typing.Text = ..., - attributes : typing.Optional[typing.Iterable[global___EventAttribute]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"type",b"type"]) -> None: ... -global___Event = Event - -class EventAttribute(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - INDEX_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - value: builtins.bytes = ... - index: builtins.bool = ... - - def __init__(self, - *, - key : builtins.bytes = ..., - value : builtins.bytes = ..., - index : builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"key",b"key",u"value",b"value"]) -> None: ... -global___EventAttribute = EventAttribute - -class TxResult(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - INDEX_FIELD_NUMBER: builtins.int - TX_FIELD_NUMBER: builtins.int - RESULT_FIELD_NUMBER: builtins.int - height: builtins.int = ... - index: builtins.int = ... - tx: builtins.bytes = ... - - @property - def result(self) -> global___ResponseDeliverTx: ... - - def __init__(self, - *, - height : builtins.int = ..., - index : builtins.int = ..., - tx : builtins.bytes = ..., - result : typing.Optional[global___ResponseDeliverTx] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"result",b"result"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"index",b"index",u"result",b"result",u"tx",b"tx"]) -> None: ... -global___TxResult = TxResult - -class Validator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - POWER_FIELD_NUMBER: builtins.int - address: builtins.bytes = ... - power: builtins.int = ... - - def __init__(self, - *, - address : builtins.bytes = ..., - power : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... -global___Validator = Validator - -class ValidatorUpdate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PUB_KEY_FIELD_NUMBER: builtins.int - POWER_FIELD_NUMBER: builtins.int - power: builtins.int = ... - - @property - def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... - - def __init__(self, - *, - pub_key : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., - power : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"power",b"power",u"pub_key",b"pub_key"]) -> None: ... -global___ValidatorUpdate = ValidatorUpdate - -class VoteInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATOR_FIELD_NUMBER: builtins.int - SIGNED_LAST_BLOCK_FIELD_NUMBER: builtins.int - signed_last_block: builtins.bool = ... - - @property - def validator(self) -> global___Validator: ... - - def __init__(self, - *, - validator : typing.Optional[global___Validator] = ..., - signed_last_block : builtins.bool = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"signed_last_block",b"signed_last_block",u"validator",b"validator"]) -> None: ... -global___VoteInfo = VoteInfo - -class Evidence(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TYPE_FIELD_NUMBER: builtins.int - VALIDATOR_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - TIME_FIELD_NUMBER: builtins.int - TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int - type: global___EvidenceType.V = ... - height: builtins.int = ... - total_voting_power: builtins.int = ... - - @property - def validator(self) -> global___Validator: ... - - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - type : global___EvidenceType.V = ..., - validator : typing.Optional[global___Validator] = ..., - height : builtins.int = ..., - time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - total_voting_power : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"time",b"time",u"validator",b"validator"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"time",b"time",u"total_voting_power",b"total_voting_power",u"type",b"type",u"validator",b"validator"]) -> None: ... -global___Evidence = Evidence - -class Snapshot(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - FORMAT_FIELD_NUMBER: builtins.int - CHUNKS_FIELD_NUMBER: builtins.int - HASH_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - height: builtins.int = ... - format: builtins.int = ... - chunks: builtins.int = ... - hash: builtins.bytes = ... - metadata: builtins.bytes = ... - - def __init__(self, - *, - height : builtins.int = ..., - format : builtins.int = ..., - chunks : builtins.int = ..., - hash : builtins.bytes = ..., - metadata : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"chunks",b"chunks",u"format",b"format",u"hash",b"hash",u"height",b"height",u"metadata",b"metadata"]) -> None: ... -global___Snapshot = Snapshot diff --git a/pyband/proto/tendermint/abci/types_pb2_grpc.pyi b/pyband/proto/tendermint/abci/types_pb2_grpc.pyi deleted file mode 100644 index 07bbc5d..0000000 --- a/pyband/proto/tendermint/abci/types_pb2_grpc.pyi +++ /dev/null @@ -1,164 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import abc -import grpc - -from .types_pb2 import * -class ABCIApplicationStub: - def __init__(self, channel: grpc.Channel) -> None: ... - Echo:grpc.UnaryUnaryMultiCallable[ - global___RequestEcho, - global___ResponseEcho] = ... - - Flush:grpc.UnaryUnaryMultiCallable[ - global___RequestFlush, - global___ResponseFlush] = ... - - Info:grpc.UnaryUnaryMultiCallable[ - global___RequestInfo, - global___ResponseInfo] = ... - - SetOption:grpc.UnaryUnaryMultiCallable[ - global___RequestSetOption, - global___ResponseSetOption] = ... - - DeliverTx:grpc.UnaryUnaryMultiCallable[ - global___RequestDeliverTx, - global___ResponseDeliverTx] = ... - - CheckTx:grpc.UnaryUnaryMultiCallable[ - global___RequestCheckTx, - global___ResponseCheckTx] = ... - - Query:grpc.UnaryUnaryMultiCallable[ - global___RequestQuery, - global___ResponseQuery] = ... - - Commit:grpc.UnaryUnaryMultiCallable[ - global___RequestCommit, - global___ResponseCommit] = ... - - InitChain:grpc.UnaryUnaryMultiCallable[ - global___RequestInitChain, - global___ResponseInitChain] = ... - - BeginBlock:grpc.UnaryUnaryMultiCallable[ - global___RequestBeginBlock, - global___ResponseBeginBlock] = ... - - EndBlock:grpc.UnaryUnaryMultiCallable[ - global___RequestEndBlock, - global___ResponseEndBlock] = ... - - ListSnapshots:grpc.UnaryUnaryMultiCallable[ - global___RequestListSnapshots, - global___ResponseListSnapshots] = ... - - OfferSnapshot:grpc.UnaryUnaryMultiCallable[ - global___RequestOfferSnapshot, - global___ResponseOfferSnapshot] = ... - - LoadSnapshotChunk:grpc.UnaryUnaryMultiCallable[ - global___RequestLoadSnapshotChunk, - global___ResponseLoadSnapshotChunk] = ... - - ApplySnapshotChunk:grpc.UnaryUnaryMultiCallable[ - global___RequestApplySnapshotChunk, - global___ResponseApplySnapshotChunk] = ... - - -class ABCIApplicationServicer(metaclass=abc.ABCMeta): - @abc.abstractmethod - def Echo(self, - request: global___RequestEcho, - context: grpc.ServicerContext, - ) -> global___ResponseEcho: ... - - @abc.abstractmethod - def Flush(self, - request: global___RequestFlush, - context: grpc.ServicerContext, - ) -> global___ResponseFlush: ... - - @abc.abstractmethod - def Info(self, - request: global___RequestInfo, - context: grpc.ServicerContext, - ) -> global___ResponseInfo: ... - - @abc.abstractmethod - def SetOption(self, - request: global___RequestSetOption, - context: grpc.ServicerContext, - ) -> global___ResponseSetOption: ... - - @abc.abstractmethod - def DeliverTx(self, - request: global___RequestDeliverTx, - context: grpc.ServicerContext, - ) -> global___ResponseDeliverTx: ... - - @abc.abstractmethod - def CheckTx(self, - request: global___RequestCheckTx, - context: grpc.ServicerContext, - ) -> global___ResponseCheckTx: ... - - @abc.abstractmethod - def Query(self, - request: global___RequestQuery, - context: grpc.ServicerContext, - ) -> global___ResponseQuery: ... - - @abc.abstractmethod - def Commit(self, - request: global___RequestCommit, - context: grpc.ServicerContext, - ) -> global___ResponseCommit: ... - - @abc.abstractmethod - def InitChain(self, - request: global___RequestInitChain, - context: grpc.ServicerContext, - ) -> global___ResponseInitChain: ... - - @abc.abstractmethod - def BeginBlock(self, - request: global___RequestBeginBlock, - context: grpc.ServicerContext, - ) -> global___ResponseBeginBlock: ... - - @abc.abstractmethod - def EndBlock(self, - request: global___RequestEndBlock, - context: grpc.ServicerContext, - ) -> global___ResponseEndBlock: ... - - @abc.abstractmethod - def ListSnapshots(self, - request: global___RequestListSnapshots, - context: grpc.ServicerContext, - ) -> global___ResponseListSnapshots: ... - - @abc.abstractmethod - def OfferSnapshot(self, - request: global___RequestOfferSnapshot, - context: grpc.ServicerContext, - ) -> global___ResponseOfferSnapshot: ... - - @abc.abstractmethod - def LoadSnapshotChunk(self, - request: global___RequestLoadSnapshotChunk, - context: grpc.ServicerContext, - ) -> global___ResponseLoadSnapshotChunk: ... - - @abc.abstractmethod - def ApplySnapshotChunk(self, - request: global___RequestApplySnapshotChunk, - context: grpc.ServicerContext, - ) -> global___ResponseApplySnapshotChunk: ... - - -def add_ABCIApplicationServicer_to_server(servicer: ABCIApplicationServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/tendermint/crypto/keys_pb2.pyi b/pyband/proto/tendermint/crypto/keys_pb2.pyi deleted file mode 100644 index aeed772..0000000 --- a/pyband/proto/tendermint/crypto/keys_pb2.pyi +++ /dev/null @@ -1,28 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class PublicKey(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ED25519_FIELD_NUMBER: builtins.int - SECP256K1_FIELD_NUMBER: builtins.int - ed25519: builtins.bytes = ... - secp256k1: builtins.bytes = ... - - def __init__(self, - *, - ed25519 : builtins.bytes = ..., - secp256k1 : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"ed25519",b"ed25519",u"secp256k1",b"secp256k1",u"sum",b"sum"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ed25519",b"ed25519",u"secp256k1",b"secp256k1",u"sum",b"sum"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["ed25519","secp256k1"]]: ... -global___PublicKey = PublicKey diff --git a/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi b/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi deleted file mode 100644 index 10c7047..0000000 --- a/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/crypto/proof_pb2.pyi b/pyband/proto/tendermint/crypto/proof_pb2.pyi deleted file mode 100644 index cd5e2f0..0000000 --- a/pyband/proto/tendermint/crypto/proof_pb2.pyi +++ /dev/null @@ -1,103 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Proof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TOTAL_FIELD_NUMBER: builtins.int - INDEX_FIELD_NUMBER: builtins.int - LEAF_HASH_FIELD_NUMBER: builtins.int - AUNTS_FIELD_NUMBER: builtins.int - total: builtins.int = ... - index: builtins.int = ... - leaf_hash: builtins.bytes = ... - - @property - def aunts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - - def __init__(self, - *, - total : builtins.int = ..., - index : builtins.int = ..., - leaf_hash : builtins.bytes = ..., - aunts : typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"aunts",b"aunts",u"index",b"index",u"leaf_hash",b"leaf_hash",u"total",b"total"]) -> None: ... -global___Proof = Proof - -class ValueOp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - key: builtins.bytes = ... - - @property - def proof(self) -> global___Proof: ... - - def __init__(self, - *, - key : builtins.bytes = ..., - proof : typing.Optional[global___Proof] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"proof",b"proof"]) -> None: ... -global___ValueOp = ValueOp - -class DominoOp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - KEY_FIELD_NUMBER: builtins.int - INPUT_FIELD_NUMBER: builtins.int - OUTPUT_FIELD_NUMBER: builtins.int - key: typing.Text = ... - input: typing.Text = ... - output: typing.Text = ... - - def __init__(self, - *, - key : typing.Text = ..., - input : typing.Text = ..., - output : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"input",b"input",u"key",b"key",u"output",b"output"]) -> None: ... -global___DominoOp = DominoOp - -class ProofOp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TYPE_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - type: typing.Text = ... - key: builtins.bytes = ... - data: builtins.bytes = ... - - def __init__(self, - *, - type : typing.Text = ..., - key : builtins.bytes = ..., - data : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"key",b"key",u"type",b"type"]) -> None: ... -global___ProofOp = ProofOp - -class ProofOps(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - OPS_FIELD_NUMBER: builtins.int - - @property - def ops(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProofOp]: ... - - def __init__(self, - *, - ops : typing.Optional[typing.Iterable[global___ProofOp]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"ops",b"ops"]) -> None: ... -global___ProofOps = ProofOps diff --git a/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi b/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi deleted file mode 100644 index abce8b9..0000000 --- a/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .proof_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/libs/bits/types_pb2.pyi b/pyband/proto/tendermint/libs/bits/types_pb2.pyi deleted file mode 100644 index 5d408a9..0000000 --- a/pyband/proto/tendermint/libs/bits/types_pb2.pyi +++ /dev/null @@ -1,29 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class BitArray(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BITS_FIELD_NUMBER: builtins.int - ELEMS_FIELD_NUMBER: builtins.int - bits: builtins.int = ... - - @property - def elems(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - - def __init__(self, - *, - bits : builtins.int = ..., - elems : typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"bits",b"bits",u"elems",b"elems"]) -> None: ... -global___BitArray = BitArray diff --git a/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi b/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi deleted file mode 100644 index 7bed339..0000000 --- a/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/p2p/types_pb2.pyi b/pyband/proto/tendermint/p2p/types_pb2.pyi deleted file mode 100644 index 84ca4af..0000000 --- a/pyband/proto/tendermint/p2p/types_pb2.pyi +++ /dev/null @@ -1,100 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class NetAddress(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ID_FIELD_NUMBER: builtins.int - IP_FIELD_NUMBER: builtins.int - PORT_FIELD_NUMBER: builtins.int - id: typing.Text = ... - ip: typing.Text = ... - port: builtins.int = ... - - def __init__(self, - *, - id : typing.Text = ..., - ip : typing.Text = ..., - port : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"id",b"id",u"ip",b"ip",u"port",b"port"]) -> None: ... -global___NetAddress = NetAddress - -class ProtocolVersion(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - P2P_FIELD_NUMBER: builtins.int - BLOCK_FIELD_NUMBER: builtins.int - APP_FIELD_NUMBER: builtins.int - p2p: builtins.int = ... - block: builtins.int = ... - app: builtins.int = ... - - def __init__(self, - *, - p2p : builtins.int = ..., - block : builtins.int = ..., - app : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app",b"app",u"block",b"block",u"p2p",b"p2p"]) -> None: ... -global___ProtocolVersion = ProtocolVersion - -class DefaultNodeInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROTOCOL_VERSION_FIELD_NUMBER: builtins.int - DEFAULT_NODE_ID_FIELD_NUMBER: builtins.int - LISTEN_ADDR_FIELD_NUMBER: builtins.int - NETWORK_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - CHANNELS_FIELD_NUMBER: builtins.int - MONIKER_FIELD_NUMBER: builtins.int - OTHER_FIELD_NUMBER: builtins.int - default_node_id: typing.Text = ... - listen_addr: typing.Text = ... - network: typing.Text = ... - version: typing.Text = ... - channels: builtins.bytes = ... - moniker: typing.Text = ... - - @property - def protocol_version(self) -> global___ProtocolVersion: ... - - @property - def other(self) -> global___DefaultNodeInfoOther: ... - - def __init__(self, - *, - protocol_version : typing.Optional[global___ProtocolVersion] = ..., - default_node_id : typing.Text = ..., - listen_addr : typing.Text = ..., - network : typing.Text = ..., - version : typing.Text = ..., - channels : builtins.bytes = ..., - moniker : typing.Text = ..., - other : typing.Optional[global___DefaultNodeInfoOther] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"other",b"other",u"protocol_version",b"protocol_version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"default_node_id",b"default_node_id",u"listen_addr",b"listen_addr",u"moniker",b"moniker",u"network",b"network",u"other",b"other",u"protocol_version",b"protocol_version",u"version",b"version"]) -> None: ... -global___DefaultNodeInfo = DefaultNodeInfo - -class DefaultNodeInfoOther(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TX_INDEX_FIELD_NUMBER: builtins.int - RPC_ADDRESS_FIELD_NUMBER: builtins.int - tx_index: typing.Text = ... - rpc_address: typing.Text = ... - - def __init__(self, - *, - tx_index : typing.Text = ..., - rpc_address : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"rpc_address",b"rpc_address",u"tx_index",b"tx_index"]) -> None: ... -global___DefaultNodeInfoOther = DefaultNodeInfoOther diff --git a/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi b/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi deleted file mode 100644 index 7bed339..0000000 --- a/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/block_pb2.pyi b/pyband/proto/tendermint/types/block_pb2.pyi deleted file mode 100644 index f4c07d0..0000000 --- a/pyband/proto/tendermint/types/block_pb2.pyi +++ /dev/null @@ -1,43 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import tendermint.types.evidence_pb2 -import tendermint.types.types_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Block(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEADER_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - EVIDENCE_FIELD_NUMBER: builtins.int - LAST_COMMIT_FIELD_NUMBER: builtins.int - - @property - def header(self) -> tendermint.types.types_pb2.Header: ... - - @property - def data(self) -> tendermint.types.types_pb2.Data: ... - - @property - def evidence(self) -> tendermint.types.evidence_pb2.EvidenceList: ... - - @property - def last_commit(self) -> tendermint.types.types_pb2.Commit: ... - - def __init__(self, - *, - header : typing.Optional[tendermint.types.types_pb2.Header] = ..., - data : typing.Optional[tendermint.types.types_pb2.Data] = ..., - evidence : typing.Optional[tendermint.types.evidence_pb2.EvidenceList] = ..., - last_commit : typing.Optional[tendermint.types.types_pb2.Commit] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"data",b"data",u"evidence",b"evidence",u"header",b"header",u"last_commit",b"last_commit"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"evidence",b"evidence",u"header",b"header",u"last_commit",b"last_commit"]) -> None: ... -global___Block = Block diff --git a/pyband/proto/tendermint/types/block_pb2_grpc.pyi b/pyband/proto/tendermint/types/block_pb2_grpc.pyi deleted file mode 100644 index 80740df..0000000 --- a/pyband/proto/tendermint/types/block_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .block_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/evidence_pb2.pyi b/pyband/proto/tendermint/types/evidence_pb2.pyi deleted file mode 100644 index 0c54081..0000000 --- a/pyband/proto/tendermint/types/evidence_pb2.pyi +++ /dev/null @@ -1,112 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import tendermint.types.types_pb2 -import tendermint.types.validator_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class Evidence(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - DUPLICATE_VOTE_EVIDENCE_FIELD_NUMBER: builtins.int - LIGHT_CLIENT_ATTACK_EVIDENCE_FIELD_NUMBER: builtins.int - - @property - def duplicate_vote_evidence(self) -> global___DuplicateVoteEvidence: ... - - @property - def light_client_attack_evidence(self) -> global___LightClientAttackEvidence: ... - - def __init__(self, - *, - duplicate_vote_evidence : typing.Optional[global___DuplicateVoteEvidence] = ..., - light_client_attack_evidence : typing.Optional[global___LightClientAttackEvidence] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"duplicate_vote_evidence",b"duplicate_vote_evidence",u"light_client_attack_evidence",b"light_client_attack_evidence",u"sum",b"sum"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"duplicate_vote_evidence",b"duplicate_vote_evidence",u"light_client_attack_evidence",b"light_client_attack_evidence",u"sum",b"sum"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["duplicate_vote_evidence","light_client_attack_evidence"]]: ... -global___Evidence = Evidence - -class DuplicateVoteEvidence(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VOTE_A_FIELD_NUMBER: builtins.int - VOTE_B_FIELD_NUMBER: builtins.int - TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int - VALIDATOR_POWER_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - total_voting_power: builtins.int = ... - validator_power: builtins.int = ... - - @property - def vote_a(self) -> tendermint.types.types_pb2.Vote: ... - - @property - def vote_b(self) -> tendermint.types.types_pb2.Vote: ... - - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - vote_a : typing.Optional[tendermint.types.types_pb2.Vote] = ..., - vote_b : typing.Optional[tendermint.types.types_pb2.Vote] = ..., - total_voting_power : builtins.int = ..., - validator_power : builtins.int = ..., - timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp",u"vote_a",b"vote_a",u"vote_b",b"vote_b"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp",u"total_voting_power",b"total_voting_power",u"validator_power",b"validator_power",u"vote_a",b"vote_a",u"vote_b",b"vote_b"]) -> None: ... -global___DuplicateVoteEvidence = DuplicateVoteEvidence - -class LightClientAttackEvidence(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - CONFLICTING_BLOCK_FIELD_NUMBER: builtins.int - COMMON_HEIGHT_FIELD_NUMBER: builtins.int - BYZANTINE_VALIDATORS_FIELD_NUMBER: builtins.int - TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - common_height: builtins.int = ... - total_voting_power: builtins.int = ... - - @property - def conflicting_block(self) -> tendermint.types.types_pb2.LightBlock: ... - - @property - def byzantine_validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.types.validator_pb2.Validator]: ... - - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - conflicting_block : typing.Optional[tendermint.types.types_pb2.LightBlock] = ..., - common_height : builtins.int = ..., - byzantine_validators : typing.Optional[typing.Iterable[tendermint.types.validator_pb2.Validator]] = ..., - total_voting_power : builtins.int = ..., - timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"conflicting_block",b"conflicting_block",u"timestamp",b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"byzantine_validators",b"byzantine_validators",u"common_height",b"common_height",u"conflicting_block",b"conflicting_block",u"timestamp",b"timestamp",u"total_voting_power",b"total_voting_power"]) -> None: ... -global___LightClientAttackEvidence = LightClientAttackEvidence - -class EvidenceList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - EVIDENCE_FIELD_NUMBER: builtins.int - - @property - def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Evidence]: ... - - def __init__(self, - *, - evidence : typing.Optional[typing.Iterable[global___Evidence]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... -global___EvidenceList = EvidenceList diff --git a/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi b/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi deleted file mode 100644 index f487a89..0000000 --- a/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .evidence_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/params_pb2.pyi b/pyband/proto/tendermint/types/params_pb2.pyi deleted file mode 100644 index 8aba874..0000000 --- a/pyband/proto/tendermint/types/params_pb2.pyi +++ /dev/null @@ -1,123 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class ConsensusParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_FIELD_NUMBER: builtins.int - EVIDENCE_FIELD_NUMBER: builtins.int - VALIDATOR_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - - @property - def block(self) -> global___BlockParams: ... - - @property - def evidence(self) -> global___EvidenceParams: ... - - @property - def validator(self) -> global___ValidatorParams: ... - - @property - def version(self) -> global___VersionParams: ... - - def __init__(self, - *, - block : typing.Optional[global___BlockParams] = ..., - evidence : typing.Optional[global___EvidenceParams] = ..., - validator : typing.Optional[global___ValidatorParams] = ..., - version : typing.Optional[global___VersionParams] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> None: ... -global___ConsensusParams = ConsensusParams - -class BlockParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MAX_BYTES_FIELD_NUMBER: builtins.int - MAX_GAS_FIELD_NUMBER: builtins.int - TIME_IOTA_MS_FIELD_NUMBER: builtins.int - max_bytes: builtins.int = ... - max_gas: builtins.int = ... - time_iota_ms: builtins.int = ... - - def __init__(self, - *, - max_bytes : builtins.int = ..., - max_gas : builtins.int = ..., - time_iota_ms : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max_bytes",b"max_bytes",u"max_gas",b"max_gas",u"time_iota_ms",b"time_iota_ms"]) -> None: ... -global___BlockParams = BlockParams - -class EvidenceParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - MAX_AGE_NUM_BLOCKS_FIELD_NUMBER: builtins.int - MAX_AGE_DURATION_FIELD_NUMBER: builtins.int - MAX_BYTES_FIELD_NUMBER: builtins.int - max_age_num_blocks: builtins.int = ... - max_bytes: builtins.int = ... - - @property - def max_age_duration(self) -> google.protobuf.duration_pb2.Duration: ... - - def __init__(self, - *, - max_age_num_blocks : builtins.int = ..., - max_age_duration : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - max_bytes : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"max_age_duration",b"max_age_duration"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"max_age_duration",b"max_age_duration",u"max_age_num_blocks",b"max_age_num_blocks",u"max_bytes",b"max_bytes"]) -> None: ... -global___EvidenceParams = EvidenceParams - -class ValidatorParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PUB_KEY_TYPES_FIELD_NUMBER: builtins.int - - @property - def pub_key_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - - def __init__(self, - *, - pub_key_types : typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pub_key_types",b"pub_key_types"]) -> None: ... -global___ValidatorParams = ValidatorParams - -class VersionParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - APP_VERSION_FIELD_NUMBER: builtins.int - app_version: builtins.int = ... - - def __init__(self, - *, - app_version : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app_version",b"app_version"]) -> None: ... -global___VersionParams = VersionParams - -class HashedParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_MAX_BYTES_FIELD_NUMBER: builtins.int - BLOCK_MAX_GAS_FIELD_NUMBER: builtins.int - block_max_bytes: builtins.int = ... - block_max_gas: builtins.int = ... - - def __init__(self, - *, - block_max_bytes : builtins.int = ..., - block_max_gas : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_max_bytes",b"block_max_bytes",u"block_max_gas",b"block_max_gas"]) -> None: ... -global___HashedParams = HashedParams diff --git a/pyband/proto/tendermint/types/params_pb2_grpc.pyi b/pyband/proto/tendermint/types/params_pb2_grpc.pyi deleted file mode 100644 index 72a5115..0000000 --- a/pyband/proto/tendermint/types/params_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .params_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/types_pb2.pyi b/pyband/proto/tendermint/types/types_pb2.pyi deleted file mode 100644 index c72c196..0000000 --- a/pyband/proto/tendermint/types/types_pb2.pyi +++ /dev/null @@ -1,387 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import tendermint.crypto.proof_pb2 -import tendermint.types.validator_pb2 -import tendermint.version.types_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class BlockIDFlag(metaclass=_BlockIDFlag): - V = typing.NewType('V', builtins.int) - -global___BlockIDFlag = BlockIDFlag - -BLOCK_ID_FLAG_UNKNOWN = BlockIDFlag.V(0) -BLOCK_ID_FLAG_ABSENT = BlockIDFlag.V(1) -BLOCK_ID_FLAG_COMMIT = BlockIDFlag.V(2) -BLOCK_ID_FLAG_NIL = BlockIDFlag.V(3) - -class _BlockIDFlag(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[BlockIDFlag.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - BLOCK_ID_FLAG_UNKNOWN = BlockIDFlag.V(0) - BLOCK_ID_FLAG_ABSENT = BlockIDFlag.V(1) - BLOCK_ID_FLAG_COMMIT = BlockIDFlag.V(2) - BLOCK_ID_FLAG_NIL = BlockIDFlag.V(3) - -class SignedMsgType(metaclass=_SignedMsgType): - V = typing.NewType('V', builtins.int) - -global___SignedMsgType = SignedMsgType - -SIGNED_MSG_TYPE_UNKNOWN = SignedMsgType.V(0) -SIGNED_MSG_TYPE_PREVOTE = SignedMsgType.V(1) -SIGNED_MSG_TYPE_PRECOMMIT = SignedMsgType.V(2) -SIGNED_MSG_TYPE_PROPOSAL = SignedMsgType.V(32) - -class _SignedMsgType(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SignedMsgType.V], builtins.type): # type: ignore - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... - SIGNED_MSG_TYPE_UNKNOWN = SignedMsgType.V(0) - SIGNED_MSG_TYPE_PREVOTE = SignedMsgType.V(1) - SIGNED_MSG_TYPE_PRECOMMIT = SignedMsgType.V(2) - SIGNED_MSG_TYPE_PROPOSAL = SignedMsgType.V(32) - -class PartSetHeader(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TOTAL_FIELD_NUMBER: builtins.int - HASH_FIELD_NUMBER: builtins.int - total: builtins.int = ... - hash: builtins.bytes = ... - - def __init__(self, - *, - total : builtins.int = ..., - hash : builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"total",b"total"]) -> None: ... -global___PartSetHeader = PartSetHeader - -class Part(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - INDEX_FIELD_NUMBER: builtins.int - BYTES_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - index: builtins.int = ... - bytes: builtins.bytes = ... - - @property - def proof(self) -> tendermint.crypto.proof_pb2.Proof: ... - - def __init__(self, - *, - index : builtins.int = ..., - bytes : builtins.bytes = ..., - proof : typing.Optional[tendermint.crypto.proof_pb2.Proof] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"bytes",b"bytes",u"index",b"index",u"proof",b"proof"]) -> None: ... -global___Part = Part - -class BlockID(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HASH_FIELD_NUMBER: builtins.int - PART_SET_HEADER_FIELD_NUMBER: builtins.int - hash: builtins.bytes = ... - - @property - def part_set_header(self) -> global___PartSetHeader: ... - - def __init__(self, - *, - hash : builtins.bytes = ..., - part_set_header : typing.Optional[global___PartSetHeader] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"part_set_header",b"part_set_header"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"part_set_header",b"part_set_header"]) -> None: ... -global___BlockID = BlockID - -class Header(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VERSION_FIELD_NUMBER: builtins.int - CHAIN_ID_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - TIME_FIELD_NUMBER: builtins.int - LAST_BLOCK_ID_FIELD_NUMBER: builtins.int - LAST_COMMIT_HASH_FIELD_NUMBER: builtins.int - DATA_HASH_FIELD_NUMBER: builtins.int - VALIDATORS_HASH_FIELD_NUMBER: builtins.int - NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int - CONSENSUS_HASH_FIELD_NUMBER: builtins.int - APP_HASH_FIELD_NUMBER: builtins.int - LAST_RESULTS_HASH_FIELD_NUMBER: builtins.int - EVIDENCE_HASH_FIELD_NUMBER: builtins.int - PROPOSER_ADDRESS_FIELD_NUMBER: builtins.int - chain_id: typing.Text = ... - height: builtins.int = ... - last_commit_hash: builtins.bytes = ... - data_hash: builtins.bytes = ... - validators_hash: builtins.bytes = ... - next_validators_hash: builtins.bytes = ... - consensus_hash: builtins.bytes = ... - app_hash: builtins.bytes = ... - last_results_hash: builtins.bytes = ... - evidence_hash: builtins.bytes = ... - proposer_address: builtins.bytes = ... - - @property - def version(self) -> tendermint.version.types_pb2.Consensus: ... - - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - @property - def last_block_id(self) -> global___BlockID: ... - - def __init__(self, - *, - version : typing.Optional[tendermint.version.types_pb2.Consensus] = ..., - chain_id : typing.Text = ..., - height : builtins.int = ..., - time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_block_id : typing.Optional[global___BlockID] = ..., - last_commit_hash : builtins.bytes = ..., - data_hash : builtins.bytes = ..., - validators_hash : builtins.bytes = ..., - next_validators_hash : builtins.bytes = ..., - consensus_hash : builtins.bytes = ..., - app_hash : builtins.bytes = ..., - last_results_hash : builtins.bytes = ..., - evidence_hash : builtins.bytes = ..., - proposer_address : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"last_block_id",b"last_block_id",u"time",b"time",u"version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"chain_id",b"chain_id",u"consensus_hash",b"consensus_hash",u"data_hash",b"data_hash",u"evidence_hash",b"evidence_hash",u"height",b"height",u"last_block_id",b"last_block_id",u"last_commit_hash",b"last_commit_hash",u"last_results_hash",b"last_results_hash",u"next_validators_hash",b"next_validators_hash",u"proposer_address",b"proposer_address",u"time",b"time",u"validators_hash",b"validators_hash",u"version",b"version"]) -> None: ... -global___Header = Header - -class Data(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TXS_FIELD_NUMBER: builtins.int - - @property - def txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - - def __init__(self, - *, - txs : typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"txs",b"txs"]) -> None: ... -global___Data = Data - -class Vote(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TYPE_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - ROUND_FIELD_NUMBER: builtins.int - BLOCK_ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - VALIDATOR_INDEX_FIELD_NUMBER: builtins.int - SIGNATURE_FIELD_NUMBER: builtins.int - type: global___SignedMsgType.V = ... - height: builtins.int = ... - round: builtins.int = ... - validator_address: builtins.bytes = ... - validator_index: builtins.int = ... - signature: builtins.bytes = ... - - @property - def block_id(self) -> global___BlockID: ... - - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - type : global___SignedMsgType.V = ..., - height : builtins.int = ..., - round : builtins.int = ..., - block_id : typing.Optional[global___BlockID] = ..., - timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - validator_address : builtins.bytes = ..., - validator_index : builtins.int = ..., - signature : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"timestamp",b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"round",b"round",u"signature",b"signature",u"timestamp",b"timestamp",u"type",b"type",u"validator_address",b"validator_address",u"validator_index",b"validator_index"]) -> None: ... -global___Vote = Vote - -class Commit(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEIGHT_FIELD_NUMBER: builtins.int - ROUND_FIELD_NUMBER: builtins.int - BLOCK_ID_FIELD_NUMBER: builtins.int - SIGNATURES_FIELD_NUMBER: builtins.int - height: builtins.int = ... - round: builtins.int = ... - - @property - def block_id(self) -> global___BlockID: ... - - @property - def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommitSig]: ... - - def __init__(self, - *, - height : builtins.int = ..., - round : builtins.int = ..., - block_id : typing.Optional[global___BlockID] = ..., - signatures : typing.Optional[typing.Iterable[global___CommitSig]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"round",b"round",u"signatures",b"signatures"]) -> None: ... -global___Commit = Commit - -class CommitSig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_ID_FLAG_FIELD_NUMBER: builtins.int - VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - SIGNATURE_FIELD_NUMBER: builtins.int - block_id_flag: global___BlockIDFlag.V = ... - validator_address: builtins.bytes = ... - signature: builtins.bytes = ... - - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - block_id_flag : global___BlockIDFlag.V = ..., - validator_address : builtins.bytes = ..., - timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - signature : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_id_flag",b"block_id_flag",u"signature",b"signature",u"timestamp",b"timestamp",u"validator_address",b"validator_address"]) -> None: ... -global___CommitSig = CommitSig - -class Proposal(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - TYPE_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - ROUND_FIELD_NUMBER: builtins.int - POL_ROUND_FIELD_NUMBER: builtins.int - BLOCK_ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - SIGNATURE_FIELD_NUMBER: builtins.int - type: global___SignedMsgType.V = ... - height: builtins.int = ... - round: builtins.int = ... - pol_round: builtins.int = ... - signature: builtins.bytes = ... - - @property - def block_id(self) -> global___BlockID: ... - - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - - def __init__(self, - *, - type : global___SignedMsgType.V = ..., - height : builtins.int = ..., - round : builtins.int = ..., - pol_round : builtins.int = ..., - block_id : typing.Optional[global___BlockID] = ..., - timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - signature : builtins.bytes = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"timestamp",b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"pol_round",b"pol_round",u"round",b"round",u"signature",b"signature",u"timestamp",b"timestamp",u"type",b"type"]) -> None: ... -global___Proposal = Proposal - -class SignedHeader(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - HEADER_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - - @property - def header(self) -> global___Header: ... - - @property - def commit(self) -> global___Commit: ... - - def __init__(self, - *, - header : typing.Optional[global___Header] = ..., - commit : typing.Optional[global___Commit] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"commit",b"commit",u"header",b"header"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"commit",b"commit",u"header",b"header"]) -> None: ... -global___SignedHeader = SignedHeader - -class LightBlock(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - SIGNED_HEADER_FIELD_NUMBER: builtins.int - VALIDATOR_SET_FIELD_NUMBER: builtins.int - - @property - def signed_header(self) -> global___SignedHeader: ... - - @property - def validator_set(self) -> tendermint.types.validator_pb2.ValidatorSet: ... - - def __init__(self, - *, - signed_header : typing.Optional[global___SignedHeader] = ..., - validator_set : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"validator_set",b"validator_set"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"validator_set",b"validator_set"]) -> None: ... -global___LightBlock = LightBlock - -class BlockMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_ID_FIELD_NUMBER: builtins.int - BLOCK_SIZE_FIELD_NUMBER: builtins.int - HEADER_FIELD_NUMBER: builtins.int - NUM_TXS_FIELD_NUMBER: builtins.int - block_size: builtins.int = ... - num_txs: builtins.int = ... - - @property - def block_id(self) -> global___BlockID: ... - - @property - def header(self) -> global___Header: ... - - def __init__(self, - *, - block_id : typing.Optional[global___BlockID] = ..., - block_size : builtins.int = ..., - header : typing.Optional[global___Header] = ..., - num_txs : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"header",b"header"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"block_size",b"block_size",u"header",b"header",u"num_txs",b"num_txs"]) -> None: ... -global___BlockMeta = BlockMeta - -class TxProof(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ROOT_HASH_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - PROOF_FIELD_NUMBER: builtins.int - root_hash: builtins.bytes = ... - data: builtins.bytes = ... - - @property - def proof(self) -> tendermint.crypto.proof_pb2.Proof: ... - - def __init__(self, - *, - root_hash : builtins.bytes = ..., - data : builtins.bytes = ..., - proof : typing.Optional[tendermint.crypto.proof_pb2.Proof] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"proof",b"proof",u"root_hash",b"root_hash"]) -> None: ... -global___TxProof = TxProof diff --git a/pyband/proto/tendermint/types/types_pb2_grpc.pyi b/pyband/proto/tendermint/types/types_pb2_grpc.pyi deleted file mode 100644 index 7bed339..0000000 --- a/pyband/proto/tendermint/types/types_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/validator_pb2.pyi b/pyband/proto/tendermint/types/validator_pb2.pyi deleted file mode 100644 index 2bb9a18..0000000 --- a/pyband/proto/tendermint/types/validator_pb2.pyi +++ /dev/null @@ -1,78 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import tendermint.crypto.keys_pb2 -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class ValidatorSet(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - VALIDATORS_FIELD_NUMBER: builtins.int - PROPOSER_FIELD_NUMBER: builtins.int - TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int - total_voting_power: builtins.int = ... - - @property - def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... - - @property - def proposer(self) -> global___Validator: ... - - def __init__(self, - *, - validators : typing.Optional[typing.Iterable[global___Validator]] = ..., - proposer : typing.Optional[global___Validator] = ..., - total_voting_power : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"proposer",b"proposer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"proposer",b"proposer",u"total_voting_power",b"total_voting_power",u"validators",b"validators"]) -> None: ... -global___ValidatorSet = ValidatorSet - -class Validator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - ADDRESS_FIELD_NUMBER: builtins.int - PUB_KEY_FIELD_NUMBER: builtins.int - VOTING_POWER_FIELD_NUMBER: builtins.int - PROPOSER_PRIORITY_FIELD_NUMBER: builtins.int - address: builtins.bytes = ... - voting_power: builtins.int = ... - proposer_priority: builtins.int = ... - - @property - def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... - - def __init__(self, - *, - address : builtins.bytes = ..., - pub_key : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., - voting_power : builtins.int = ..., - proposer_priority : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"proposer_priority",b"proposer_priority",u"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... -global___Validator = Validator - -class SimpleValidator(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PUB_KEY_FIELD_NUMBER: builtins.int - VOTING_POWER_FIELD_NUMBER: builtins.int - voting_power: builtins.int = ... - - @property - def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... - - def __init__(self, - *, - pub_key : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., - voting_power : builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... -global___SimpleValidator = SimpleValidator diff --git a/pyband/proto/tendermint/types/validator_pb2_grpc.pyi b/pyband/proto/tendermint/types/validator_pb2_grpc.pyi deleted file mode 100644 index 3dafcaa..0000000 --- a/pyband/proto/tendermint/types/validator_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .validator_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/version/types_pb2.pyi b/pyband/proto/tendermint/version/types_pb2.pyi deleted file mode 100644 index 4b5e869..0000000 --- a/pyband/proto/tendermint/version/types_pb2.pyi +++ /dev/null @@ -1,41 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import typing -import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... - -class App(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - PROTOCOL_FIELD_NUMBER: builtins.int - SOFTWARE_FIELD_NUMBER: builtins.int - protocol: builtins.int = ... - software: typing.Text = ... - - def __init__(self, - *, - protocol : builtins.int = ..., - software : typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"protocol",b"protocol",u"software",b"software"]) -> None: ... -global___App = App - -class Consensus(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... - BLOCK_FIELD_NUMBER: builtins.int - APP_FIELD_NUMBER: builtins.int - block: builtins.int = ... - app: builtins.int = ... - - def __init__(self, - *, - block : builtins.int = ..., - app : builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal[u"app",b"app",u"block",b"block"]) -> None: ... -global___Consensus = Consensus diff --git a/pyband/proto/tendermint/version/types_pb2_grpc.pyi b/pyband/proto/tendermint/version/types_pb2_grpc.pyi deleted file mode 100644 index 7bed339..0000000 --- a/pyband/proto/tendermint/version/types_pb2_grpc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -""" - -from .types_pb2 import * \ No newline at end of file From 8075b1579266cb77b81c3f13209307cfbe093c9e Mon Sep 17 00:00:00 2001 From: prial Date: Tue, 31 Aug 2021 18:01:12 +0700 Subject: [PATCH 2/9] Fix getting reporter --- pyband/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyband/client.py b/pyband/client.py index 9ced582..b89c480 100644 --- a/pyband/client.py +++ b/pyband/client.py @@ -45,7 +45,7 @@ def get_oracle_script(self, id: int) -> oracle_type.OracleScript: def get_request_by_id(self, id: int) -> oracle_query.QueryRequestResponse: return self.stubOracle.Request(oracle_query.QueryRequestRequest(request_id=id)) - def get_reporters(self, validator: str) -> oracle_type.ReportersPerValidator.reporters: + def get_reporters(self, validator: str) -> oracle_query.QueryReportersResponse.reporter: return self.stubOracle.Reporters(oracle_query.QueryReportersRequest(validator_address=validator)).reporter def get_latest_block(self) -> tendermint_query.GetLatestBlockResponse: From 821cb1e34664a33f1e73884bffaa522ccd9c58ab Mon Sep 17 00:00:00 2001 From: prial Date: Tue, 31 Aug 2021 18:05:37 +0700 Subject: [PATCH 3/9] Change error type --- tests/client/client_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/client/client_test.py b/tests/client/client_test.py index 8fb0b23..0e4d036 100644 --- a/tests/client/client_test.py +++ b/tests/client/client_test.py @@ -554,7 +554,7 @@ def test_get_data_source_success(pyband_client): def test_get_data_source_invalid(pyband_client): - with pytest.raises(grpc.RpcError): + with pytest.raises(ValueError): pyband_client.get_data_source(-1) @@ -577,7 +577,7 @@ def test_get_oracle_script_success(pyband_client): def test_get_oracle_script_invalid(pyband_client): - with pytest.raises(grpc.RpcError): + with pytest.raises(ValueError): pyband_client.get_oracle_script(-1) @@ -649,7 +649,7 @@ def test_get_request_by_id_not_found(pyband_client): def test_get_request_by_id_invalid(pyband_client): - with pytest.raises(grpc.RpcError): + with pytest.raises(ValueError): pyband_client.get_request_by_id(-1) From 965a471a3f83bb7e9c720b0f4a5a861d8866b17f Mon Sep 17 00:00:00 2001 From: prial Date: Wed, 1 Sep 2021 17:37:40 +0700 Subject: [PATCH 4/9] Add invalid input testcase and fix invalid testcase --- tests/client/client_test.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tests/client/client_test.py b/tests/client/client_test.py index 0e4d036..8afb121 100644 --- a/tests/client/client_test.py +++ b/tests/client/client_test.py @@ -554,14 +554,17 @@ def test_get_data_source_success(pyband_client): def test_get_data_source_invalid(pyband_client): - with pytest.raises(ValueError): - pyband_client.get_data_source(-1) + with pytest.raises(grpc.RpcError): + pyband_client.get_data_source(0) def test_get_data_source_invalid_input(pyband_client): with pytest.raises(TypeError): pyband_client.get_data_source("hi") + with pytest.raises(ValueError): + pyband_client.get_data_source(-1) + def test_get_oracle_script_success(pyband_client): oracle_script = pyband_client.get_oracle_script(1) @@ -577,14 +580,17 @@ def test_get_oracle_script_success(pyband_client): def test_get_oracle_script_invalid(pyband_client): - with pytest.raises(ValueError): - pyband_client.get_oracle_script(-1) + with pytest.raises(grpc.RpcError): + pyband_client.get_oracle_script(0) def test_get_oracle_script_invalid_input(pyband_client): with pytest.raises(TypeError): pyband_client.get_oracle_script("hi") + with pytest.raises(ValueError): + pyband_client.get_oracle_script(-1) + def test_get_request_by_id_success(pyband_client): response = pyband_client.get_request_by_id(1) @@ -642,6 +648,9 @@ def test_get_request_by_id_invalid_input(pyband_client): with pytest.raises(TypeError): pyband_client.get_request_by_id("hi") + with pytest.raises(ValueError): + pyband_client.get_request_by_id(-1) + def test_get_request_by_id_not_found(pyband_client): with pytest.raises(grpc.RpcError): @@ -649,8 +658,8 @@ def test_get_request_by_id_not_found(pyband_client): def test_get_request_by_id_invalid(pyband_client): - with pytest.raises(ValueError): - pyband_client.get_request_by_id(-1) + with pytest.raises(grpc.RpcError): + pyband_client.get_request_by_id(0) def test_get_reporters_success(pyband_client): From 2487bfe2f831b6b1a7955ad0366cb081fbc61d2e Mon Sep 17 00:00:00 2001 From: prial Date: Wed, 1 Sep 2021 17:40:07 +0700 Subject: [PATCH 5/9] Remove unused exception --- pyband/exceptions.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/pyband/exceptions.py b/pyband/exceptions.py index 535890b..ebc41e6 100644 --- a/pyband/exceptions.py +++ b/pyband/exceptions.py @@ -2,26 +2,10 @@ class PybandError(Exception): pass -class EmptyRequestMsgError(PybandError): - pass - - -class QueryError(PybandError): - pass - - -class NegativeIntegerError(PybandError): - pass - - class ValueTooLargeError(PybandError): pass -class InsufficientCoinError(PybandError): - pass - - class EmptyMsgError(PybandError): pass @@ -42,13 +26,5 @@ class ConvertError(PybandError): pass -class UnsuccessfulCallError(PybandError): - pass - - -class CreateError(PybandError): - pass - - class SchemaError(PybandError): pass From 7c1596f665a76c4341118c486e1acc2464cf0b47 Mon Sep 17 00:00:00 2001 From: prial Date: Wed, 1 Sep 2021 18:19:24 +0700 Subject: [PATCH 6/9] Remove .DS_Store --- pyband/proto/.DS_Store | Bin 10244 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 pyband/proto/.DS_Store diff --git a/pyband/proto/.DS_Store b/pyband/proto/.DS_Store deleted file mode 100644 index 903326a474b4aebb51120356e64fafad7f5277ed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10244 zcmeHM%WD%s7@z5LlU9tNwV=XY#2!kUw5FPh5Nj2R2tq^;TH3s914%X{sipQoJP97W zh=LEKC>}g19=#}d5}{ZB0MDMRSL<&cNoF?LS}8&(GhybN-T8ep-}n1wXLlxq5IV7t z3K3!xLM&t^1HCAkB-YMyLu!+E#vm#53CWN$nZa*}6dKUxhGD=kU>GnA7zPXjt-t`@ z*(_N-LYmSrU>GnA)EHpvgN@8&RLY8weCa^Jw*ZhGxXlyl*avVOTgs@E6(PAQ`V_kd zDpjf6Vo;%ucALQ=qf%Cc6zYTubwcIHRPInHA02u&hZ7nV(v*e)!$2bgZ13K~_v{&x z*Y@vAQ&}gO$T|ri*h6&=d1#9#)T&wqvP6<3jyzA&tRI)w+ns4;=R&chldGN@{PylY z=S)sYtE}i~J(=i3ZE^S-zP-|MK!!WOUFDhfc2!+RKrV z;GlhSbZm9iXB|EsIy*I+Te`Envby$!d5ra5z8A=Taa}8)q9#a{PHKTU;JfT@R|E62 z=b;`L*@rr>m$OffNzGa>JzC1U9S$&{MC) zf*Cp$4kLn*T?f$|won zv-ABA5Y!Z>26bxlarFuFz}DA-zhSi?cLy+h^YLB5W;l}!1BL;^K&vy*E)2BU`9HqH zy#D`hbvKNCh5^ICE*PL4ld;JObWlA*arec}+HK@nWR@7NA|zKq!H?r1`Efih*m3*- zGQ;vOWLb|&SrL+}1H;uJ#cBS3|1-c*zZ!S4pI5g9JHcyTk7obRPBYB@zoqv7e*iZP BnsopG From d1ac7146d9d7aead83db08e0def6aa9bfb535bb0 Mon Sep 17 00:00:00 2001 From: prial Date: Thu, 2 Sep 2021 12:26:00 +0700 Subject: [PATCH 7/9] Add interface file of each generated proto --- pyband/proto/confio/proofs_pb2.pyi | 453 +++++++ pyband/proto/confio/proofs_pb2_grpc.pyi | 6 + pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi | 83 ++ .../cosmos/auth/v1beta1/auth_pb2_grpc.pyi | 6 + .../proto/cosmos/auth/v1beta1/genesis_pb2.pyi | 34 + .../cosmos/auth/v1beta1/genesis_pb2_grpc.pyi | 6 + .../proto/cosmos/auth/v1beta1/query_pb2.pyi | 100 ++ .../cosmos/auth/v1beta1/query_pb2_grpc.pyi | 52 + .../proto/cosmos/authz/v1beta1/authz_pb2.pyi | 46 + .../cosmos/authz/v1beta1/authz_pb2_grpc.pyi | 6 + .../proto/cosmos/authz/v1beta1/event_pb2.pyi | 53 + .../cosmos/authz/v1beta1/event_pb2_grpc.pyi | 6 + .../cosmos/authz/v1beta1/genesis_pb2.pyi | 51 + .../cosmos/authz/v1beta1/genesis_pb2_grpc.pyi | 6 + .../proto/cosmos/authz/v1beta1/query_pb2.pyi | 59 + .../cosmos/authz/v1beta1/query_pb2_grpc.pyi | 28 + pyband/proto/cosmos/authz/v1beta1/tx_pb2.pyi | 102 ++ .../cosmos/authz/v1beta1/tx_pb2_grpc.pyi | 64 + .../proto/cosmos/bank/v1beta1/authz_pb2.pyi | 27 + .../cosmos/bank/v1beta1/authz_pb2_grpc.pyi | 6 + pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi | 155 +++ .../cosmos/bank/v1beta1/bank_pb2_grpc.pyi | 6 + .../proto/cosmos/bank/v1beta1/genesis_pb2.pyi | 64 + .../cosmos/bank/v1beta1/genesis_pb2_grpc.pyi | 6 + .../proto/cosmos/bank/v1beta1/query_pb2.pyi | 238 ++++ .../cosmos/bank/v1beta1/query_pb2_grpc.pyi | 100 ++ pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi | 64 + .../proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi | 40 + .../cosmos/base/abci/v1beta1/abci_pb2.pyi | 256 ++++ .../base/abci/v1beta1/abci_pb2_grpc.pyi | 6 + .../proto/cosmos/base/kv/v1beta1/kv_pb2.pyi | 40 + .../cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi | 6 + .../base/query/v1beta1/pagination_pb2.pyi | 78 ++ .../query/v1beta1/pagination_pb2_grpc.pyi | 6 + .../reflection/v1beta1/reflection_pb2.pyi | 61 + .../v1beta1/reflection_pb2_grpc.pyi | 44 + .../reflection/v2alpha1/reflection_pb2.pyi | 420 +++++++ .../v2alpha1/reflection_pb2_grpc.pyi | 92 ++ .../base/snapshots/v1beta1/snapshot_pb2.pyi | 52 + .../snapshots/v1beta1/snapshot_pb2_grpc.pyi | 6 + .../base/store/v1beta1/commit_info_pb2.pyi | 63 + .../store/v1beta1/commit_info_pb2_grpc.pyi | 6 + .../base/store/v1beta1/listening_pb2.pyi | 36 + .../base/store/v1beta1/listening_pb2_grpc.pyi | 6 + .../base/store/v1beta1/snapshot_pb2.pyi | 63 + .../base/store/v1beta1/snapshot_pb2_grpc.pyi | 6 + .../base/tendermint/v1beta1/query_pb2.pyi | 271 +++++ .../tendermint/v1beta1/query_pb2_grpc.pyi | 88 ++ pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi | 71 ++ .../cosmos/base/v1beta1/coin_pb2_grpc.pyi | 6 + .../capability/v1beta1/capability_pb2.pyi | 55 + .../v1beta1/capability_pb2_grpc.pyi | 6 + .../cosmos/capability/v1beta1/genesis_pb2.pyi | 51 + .../capability/v1beta1/genesis_pb2_grpc.pyi | 6 + .../cosmos/crisis/v1beta1/genesis_pb2.pyi | 28 + .../crisis/v1beta1/genesis_pb2_grpc.pyi | 6 + pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi | 36 + .../cosmos/crisis/v1beta1/tx_pb2_grpc.pyi | 28 + .../proto/cosmos/crypto/ed25519/keys_pb2.pyi | 39 + .../cosmos/crypto/ed25519/keys_pb2_grpc.pyi | 6 + .../proto/cosmos/crypto/multisig/keys_pb2.pyi | 31 + .../cosmos/crypto/multisig/keys_pb2_grpc.pyi | 6 + .../crypto/multisig/v1beta1/multisig_pb2.pyi | 45 + .../multisig/v1beta1/multisig_pb2_grpc.pyi | 6 + .../cosmos/crypto/secp256k1/keys_pb2.pyi | 38 + .../cosmos/crypto/secp256k1/keys_pb2_grpc.pyi | 6 + .../cosmos/crypto/secp256r1/keys_pb2.pyi | 37 + .../cosmos/crypto/secp256r1/keys_pb2_grpc.pyi | 6 + .../distribution/v1beta1/distribution_pb2.pyi | 240 ++++ .../v1beta1/distribution_pb2_grpc.pyi | 6 + .../distribution/v1beta1/genesis_pb2.pyi | 223 ++++ .../distribution/v1beta1/genesis_pb2_grpc.pyi | 6 + .../cosmos/distribution/v1beta1/query_pb2.pyi | 292 +++++ .../distribution/v1beta1/query_pb2_grpc.pyi | 126 ++ .../cosmos/distribution/v1beta1/tx_pb2.pyi | 103 ++ .../distribution/v1beta1/tx_pb2_grpc.pyi | 72 ++ .../cosmos/evidence/v1beta1/evidence_pb2.pyi | 36 + .../evidence/v1beta1/evidence_pb2_grpc.pyi | 6 + .../cosmos/evidence/v1beta1/genesis_pb2.pyi | 27 + .../evidence/v1beta1/genesis_pb2_grpc.pyi | 6 + .../cosmos/evidence/v1beta1/query_pb2.pyi | 79 ++ .../evidence/v1beta1/query_pb2_grpc.pyi | 40 + .../proto/cosmos/evidence/v1beta1/tx_pb2.pyi | 43 + .../cosmos/evidence/v1beta1/tx_pb2_grpc.pyi | 30 + .../cosmos/feegrant/v1beta1/feegrant_pb2.pyi | 122 ++ .../feegrant/v1beta1/feegrant_pb2_grpc.pyi | 6 + .../cosmos/feegrant/v1beta1/genesis_pb2.pyi | 26 + .../feegrant/v1beta1/genesis_pb2_grpc.pyi | 6 + .../cosmos/feegrant/v1beta1/query_pb2.pyi | 84 ++ .../feegrant/v1beta1/query_pb2_grpc.pyi | 40 + .../proto/cosmos/feegrant/v1beta1/tx_pb2.pyi | 67 ++ .../cosmos/feegrant/v1beta1/tx_pb2_grpc.pyi | 44 + .../cosmos/genutil/v1beta1/genesis_pb2.pyi | 26 + .../genutil/v1beta1/genesis_pb2_grpc.pyi | 6 + .../proto/cosmos/gov/v1beta1/genesis_pb2.pyi | 57 + .../cosmos/gov/v1beta1/genesis_pb2_grpc.pyi | 6 + pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi | 294 +++++ .../proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi | 6 + pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi | 296 +++++ .../cosmos/gov/v1beta1/query_pb2_grpc.pyi | 112 ++ pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi | 126 ++ .../proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi | 64 + .../proto/cosmos/mint/v1beta1/genesis_pb2.pyi | 32 + .../cosmos/mint/v1beta1/genesis_pb2_grpc.pyi | 6 + pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi | 61 + .../cosmos/mint/v1beta1/mint_pb2_grpc.pyi | 6 + .../proto/cosmos/mint/v1beta1/query_pb2.pyi | 77 ++ .../cosmos/mint/v1beta1/query_pb2_grpc.pyi | 52 + .../cosmos/params/v1beta1/params_pb2.pyi | 50 + .../cosmos/params/v1beta1/params_pb2_grpc.pyi | 6 + .../proto/cosmos/params/v1beta1/query_pb2.pyi | 44 + .../cosmos/params/v1beta1/query_pb2_grpc.pyi | 30 + .../cosmos/slashing/v1beta1/genesis_pb2.pyi | 95 ++ .../slashing/v1beta1/genesis_pb2_grpc.pyi | 6 + .../cosmos/slashing/v1beta1/query_pb2.pyi | 100 ++ .../slashing/v1beta1/query_pb2_grpc.pyi | 52 + .../cosmos/slashing/v1beta1/slashing_pb2.pyi | 78 ++ .../slashing/v1beta1/slashing_pb2_grpc.pyi | 6 + .../proto/cosmos/slashing/v1beta1/tx_pb2.pyi | 30 + .../cosmos/slashing/v1beta1/tx_pb2_grpc.pyi | 32 + .../cosmos/staking/v1beta1/authz_pb2.pyi | 85 ++ .../cosmos/staking/v1beta1/authz_pb2_grpc.pyi | 6 + .../cosmos/staking/v1beta1/genesis_pb2.pyi | 79 ++ .../staking/v1beta1/genesis_pb2_grpc.pyi | 6 + .../cosmos/staking/v1beta1/query_pb2.pyi | 505 ++++++++ .../cosmos/staking/v1beta1/query_pb2_grpc.pyi | 192 +++ .../cosmos/staking/v1beta1/staking_pb2.pyi | 513 ++++++++ .../staking/v1beta1/staking_pb2_grpc.pyi | 6 + .../proto/cosmos/staking/v1beta1/tx_pb2.pyi | 192 +++ .../cosmos/staking/v1beta1/tx_pb2_grpc.pyi | 82 ++ .../cosmos/tx/signing/v1beta1/signing_pb2.pyi | 149 +++ .../tx/signing/v1beta1/signing_pb2_grpc.pyi | 6 + .../proto/cosmos/tx/v1beta1/service_pb2.pyi | 231 ++++ .../cosmos/tx/v1beta1/service_pb2_grpc.pyi | 64 + pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi | 293 +++++ .../proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi | 6 + .../cosmos/upgrade/v1beta1/query_pb2.pyi | 124 ++ .../cosmos/upgrade/v1beta1/query_pb2_grpc.pyi | 70 ++ .../cosmos/upgrade/v1beta1/upgrade_pb2.pyi | 111 ++ .../upgrade/v1beta1/upgrade_pb2_grpc.pyi | 6 + .../proto/cosmos/vesting/v1beta1/tx_pb2.pyi | 46 + .../cosmos/vesting/v1beta1/tx_pb2_grpc.pyi | 30 + .../cosmos/vesting/v1beta1/vesting_pb2.pyi | 132 +++ .../vesting/v1beta1/vesting_pb2_grpc.pyi | 6 + pyband/proto/cosmos_proto/cosmos_pb2.pyi | 16 + pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi | 6 + pyband/proto/gogoproto/gogo_pb2.pyi | 165 +++ pyband/proto/gogoproto/gogo_pb2_grpc.pyi | 6 + pyband/proto/google/api/annotations_pb2.pyi | 13 + .../proto/google/api/annotations_pb2_grpc.pyi | 6 + pyband/proto/google/api/http_pb2.pyi | 337 ++++++ pyband/proto/google/api/http_pb2_grpc.pyi | 6 + pyband/proto/google/api/httpbody_pb2.pyi | 74 ++ pyband/proto/google/api/httpbody_pb2_grpc.pyi | 6 + pyband/proto/google/protobuf/any_pb2.pyi | 133 +++ pyband/proto/google/protobuf/any_pb2_grpc.pyi | 6 + .../applications/transfer/v1/genesis_pb2.pyi | 34 + .../transfer/v1/genesis_pb2_grpc.pyi | 6 + .../applications/transfer/v1/query_pb2.pyi | 103 ++ .../transfer/v1/query_pb2_grpc.pyi | 52 + .../applications/transfer/v1/transfer_pb2.pyi | 79 ++ .../transfer/v1/transfer_pb2_grpc.pyi | 6 + .../ibc/applications/transfer/v1/tx_pb2.pyi | 64 + .../applications/transfer/v1/tx_pb2_grpc.pyi | 28 + .../proto/ibc/core/channel/v1/channel_pb2.pyi | 265 +++++ .../ibc/core/channel/v1/channel_pb2_grpc.pyi | 6 + .../proto/ibc/core/channel/v1/genesis_pb2.pyi | 73 ++ .../ibc/core/channel/v1/genesis_pb2_grpc.pyi | 6 + .../proto/ibc/core/channel/v1/query_pb2.pyi | 612 ++++++++++ .../ibc/core/channel/v1/query_pb2_grpc.pyi | 188 +++ pyband/proto/ibc/core/channel/v1/tx_pb2.pyi | 356 ++++++ .../proto/ibc/core/channel/v1/tx_pb2_grpc.pyi | 138 +++ .../proto/ibc/core/client/v1/client_pb2.pyi | 174 +++ .../ibc/core/client/v1/client_pb2_grpc.pyi | 6 + .../proto/ibc/core/client/v1/genesis_pb2.pyi | 85 ++ .../ibc/core/client/v1/genesis_pb2_grpc.pyi | 6 + pyband/proto/ibc/core/client/v1/query_pb2.pyi | 285 +++++ .../ibc/core/client/v1/query_pb2_grpc.pyi | 116 ++ pyband/proto/ibc/core/client/v1/tx_pb2.pyi | 152 +++ .../proto/ibc/core/client/v1/tx_pb2_grpc.pyi | 64 + .../ibc/core/commitment/v1/commitment_pb2.pyi | 72 ++ .../commitment/v1/commitment_pb2_grpc.pyi | 6 + .../ibc/core/connection/v1/connection_pb2.pyi | 214 ++++ .../connection/v1/connection_pb2_grpc.pyi | 6 + .../ibc/core/connection/v1/genesis_pb2.pyi | 39 + .../core/connection/v1/genesis_pb2_grpc.pyi | 6 + .../ibc/core/connection/v1/query_pb2.pyi | 224 ++++ .../ibc/core/connection/v1/query_pb2_grpc.pyi | 82 ++ .../proto/ibc/core/connection/v1/tx_pb2.pyi | 205 ++++ .../ibc/core/connection/v1/tx_pb2_grpc.pyi | 66 ++ .../proto/ibc/core/types/v1/genesis_pb2.pyi | 39 + .../ibc/core/types/v1/genesis_pb2_grpc.pyi | 6 + .../localhost/v1/localhost_pb2.pyi | 32 + .../localhost/v1/localhost_pb2_grpc.pyi | 6 + .../solomachine/v1/solomachine_pb2.pyi | 388 ++++++ .../solomachine/v1/solomachine_pb2_grpc.pyi | 6 + .../solomachine/v2/solomachine_pb2.pyi | 388 ++++++ .../solomachine/v2/solomachine_pb2_grpc.pyi | 6 + .../tendermint/v1/tendermint_pb2.pyi | 188 +++ .../tendermint/v1/tendermint_pb2_grpc.pyi | 6 + pyband/proto/oracle/v1/genesis_pb2.pyi | 39 + pyband/proto/oracle/v1/genesis_pb2_grpc.pyi | 6 + pyband/proto/oracle/v1/oracle_pb2.pyi | 614 ++++++++++ pyband/proto/oracle/v1/oracle_pb2_grpc.pyi | 6 + pyband/proto/oracle/v1/query_pb2.pyi | 473 ++++++++ pyband/proto/oracle/v1/query_pb2_grpc.pyi | 194 +++ pyband/proto/oracle/v1/tx_pb2.pyi | 323 +++++ pyband/proto/oracle/v1/tx_pb2_grpc.pyi | 100 ++ pyband/proto/tendermint/abci/types_pb2.pyi | 1039 +++++++++++++++++ .../proto/tendermint/abci/types_pb2_grpc.pyi | 170 +++ pyband/proto/tendermint/crypto/keys_pb2.pyi | 28 + .../proto/tendermint/crypto/keys_pb2_grpc.pyi | 6 + pyband/proto/tendermint/crypto/proof_pb2.pyi | 101 ++ .../tendermint/crypto/proof_pb2_grpc.pyi | 6 + .../proto/tendermint/libs/bits/types_pb2.pyi | 27 + .../tendermint/libs/bits/types_pb2_grpc.pyi | 6 + pyband/proto/tendermint/p2p/types_pb2.pyi | 94 ++ .../proto/tendermint/p2p/types_pb2_grpc.pyi | 6 + pyband/proto/tendermint/types/block_pb2.pyi | 38 + .../proto/tendermint/types/block_pb2_grpc.pyi | 6 + .../proto/tendermint/types/evidence_pb2.pyi | 101 ++ .../tendermint/types/evidence_pb2_grpc.pyi | 6 + pyband/proto/tendermint/types/params_pb2.pyi | 141 +++ .../tendermint/types/params_pb2_grpc.pyi | 6 + pyband/proto/tendermint/types/types_pb2.pyi | 391 +++++++ .../proto/tendermint/types/types_pb2_grpc.pyi | 6 + .../proto/tendermint/types/validator_pb2.pyi | 71 ++ .../tendermint/types/validator_pb2_grpc.pyi | 6 + pyband/proto/tendermint/version/types_pb2.pyi | 45 + .../tendermint/version/types_pb2_grpc.pyi | 6 + 230 files changed, 20136 insertions(+) create mode 100644 pyband/proto/confio/proofs_pb2.pyi create mode 100644 pyband/proto/confio/proofs_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi create mode 100644 pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/authz_pb2.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/event_pb2.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/authz_pb2.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi create mode 100644 pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi create mode 100644 pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi create mode 100644 pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi create mode 100644 pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.pyi create mode 100644 pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi create mode 100644 pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi create mode 100644 pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/store/v1beta1/listening_pb2.pyi create mode 100644 pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi create mode 100644 pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi create mode 100644 pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi create mode 100644 pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi create mode 100644 pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi create mode 100644 pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi create mode 100644 pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi create mode 100644 pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/crypto/secp256r1/keys_pb2.pyi create mode 100644 pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi create mode 100644 pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi create mode 100644 pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi create mode 100644 pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi create mode 100644 pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/params/v1beta1/params_pb2.pyi create mode 100644 pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/params/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi create mode 100644 pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/authz_pb2.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi create mode 100644 pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi create mode 100644 pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi create mode 100644 pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi create mode 100644 pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi create mode 100644 pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi create mode 100644 pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi create mode 100644 pyband/proto/cosmos_proto/cosmos_pb2.pyi create mode 100644 pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi create mode 100644 pyband/proto/gogoproto/gogo_pb2.pyi create mode 100644 pyband/proto/gogoproto/gogo_pb2_grpc.pyi create mode 100644 pyband/proto/google/api/annotations_pb2.pyi create mode 100644 pyband/proto/google/api/annotations_pb2_grpc.pyi create mode 100644 pyband/proto/google/api/http_pb2.pyi create mode 100644 pyband/proto/google/api/http_pb2_grpc.pyi create mode 100644 pyband/proto/google/api/httpbody_pb2.pyi create mode 100644 pyband/proto/google/api/httpbody_pb2_grpc.pyi create mode 100644 pyband/proto/google/protobuf/any_pb2.pyi create mode 100644 pyband/proto/google/protobuf/any_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi create mode 100644 pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi create mode 100644 pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi create mode 100644 pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi create mode 100644 pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/channel/v1/channel_pb2.pyi create mode 100644 pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi create mode 100644 pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/channel/v1/query_pb2.pyi create mode 100644 pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/channel/v1/tx_pb2.pyi create mode 100644 pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/client/v1/client_pb2.pyi create mode 100644 pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/client/v1/genesis_pb2.pyi create mode 100644 pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/client/v1/query_pb2.pyi create mode 100644 pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/client/v1/tx_pb2.pyi create mode 100644 pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi create mode 100644 pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/connection/v1/connection_pb2.pyi create mode 100644 pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi create mode 100644 pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/connection/v1/query_pb2.pyi create mode 100644 pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/connection/v1/tx_pb2.pyi create mode 100644 pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/core/types/v1/genesis_pb2.pyi create mode 100644 pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi create mode 100644 pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi create mode 100644 pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.pyi create mode 100644 pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.pyi create mode 100644 pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi create mode 100644 pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi create mode 100644 pyband/proto/oracle/v1/genesis_pb2.pyi create mode 100644 pyband/proto/oracle/v1/genesis_pb2_grpc.pyi create mode 100644 pyband/proto/oracle/v1/oracle_pb2.pyi create mode 100644 pyband/proto/oracle/v1/oracle_pb2_grpc.pyi create mode 100644 pyband/proto/oracle/v1/query_pb2.pyi create mode 100644 pyband/proto/oracle/v1/query_pb2_grpc.pyi create mode 100644 pyband/proto/oracle/v1/tx_pb2.pyi create mode 100644 pyband/proto/oracle/v1/tx_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/abci/types_pb2.pyi create mode 100644 pyband/proto/tendermint/abci/types_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/crypto/keys_pb2.pyi create mode 100644 pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/crypto/proof_pb2.pyi create mode 100644 pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/libs/bits/types_pb2.pyi create mode 100644 pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/p2p/types_pb2.pyi create mode 100644 pyband/proto/tendermint/p2p/types_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/types/block_pb2.pyi create mode 100644 pyband/proto/tendermint/types/block_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/types/evidence_pb2.pyi create mode 100644 pyband/proto/tendermint/types/evidence_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/types/params_pb2.pyi create mode 100644 pyband/proto/tendermint/types/params_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/types/types_pb2.pyi create mode 100644 pyband/proto/tendermint/types/types_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/types/validator_pb2.pyi create mode 100644 pyband/proto/tendermint/types/validator_pb2_grpc.pyi create mode 100644 pyband/proto/tendermint/version/types_pb2.pyi create mode 100644 pyband/proto/tendermint/version/types_pb2_grpc.pyi diff --git a/pyband/proto/confio/proofs_pb2.pyi b/pyband/proto/confio/proofs_pb2.pyi new file mode 100644 index 0000000..aa858e0 --- /dev/null +++ b/pyband/proto/confio/proofs_pb2.pyi @@ -0,0 +1,453 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class HashOp(_HashOp, metaclass=_HashOpEnumTypeWrapper): + pass +class _HashOp: + V = typing.NewType('V', builtins.int) +class _HashOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_HashOp.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # NO_HASH is the default if no data passed. Note this is an illegal argument some places. + NO_HASH = HashOp.V(0) + SHA256 = HashOp.V(1) + SHA512 = HashOp.V(2) + KECCAK = HashOp.V(3) + RIPEMD160 = HashOp.V(4) + # ripemd160(sha256(x)) + BITCOIN = HashOp.V(5) + +# NO_HASH is the default if no data passed. Note this is an illegal argument some places. +NO_HASH = HashOp.V(0) +SHA256 = HashOp.V(1) +SHA512 = HashOp.V(2) +KECCAK = HashOp.V(3) +RIPEMD160 = HashOp.V(4) +# ripemd160(sha256(x)) +BITCOIN = HashOp.V(5) +global___HashOp = HashOp + + +#* +#LengthOp defines how to process the key and value of the LeafOp +#to include length information. After encoding the length with the given +#algorithm, the length will be prepended to the key and value bytes. +#(Each one with it's own encoded length) +class LengthOp(_LengthOp, metaclass=_LengthOpEnumTypeWrapper): + pass +class _LengthOp: + V = typing.NewType('V', builtins.int) +class _LengthOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LengthOp.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # NO_PREFIX don't include any length info + NO_PREFIX = LengthOp.V(0) + # VAR_PROTO uses protobuf (and go-amino) varint encoding of the length + VAR_PROTO = LengthOp.V(1) + # VAR_RLP uses rlp int encoding of the length + VAR_RLP = LengthOp.V(2) + # FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer + FIXED32_BIG = LengthOp.V(3) + # FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer + FIXED32_LITTLE = LengthOp.V(4) + # FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer + FIXED64_BIG = LengthOp.V(5) + # FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer + FIXED64_LITTLE = LengthOp.V(6) + # REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) + REQUIRE_32_BYTES = LengthOp.V(7) + # REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) + REQUIRE_64_BYTES = LengthOp.V(8) + +# NO_PREFIX don't include any length info +NO_PREFIX = LengthOp.V(0) +# VAR_PROTO uses protobuf (and go-amino) varint encoding of the length +VAR_PROTO = LengthOp.V(1) +# VAR_RLP uses rlp int encoding of the length +VAR_RLP = LengthOp.V(2) +# FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer +FIXED32_BIG = LengthOp.V(3) +# FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer +FIXED32_LITTLE = LengthOp.V(4) +# FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer +FIXED64_BIG = LengthOp.V(5) +# FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer +FIXED64_LITTLE = LengthOp.V(6) +# REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) +REQUIRE_32_BYTES = LengthOp.V(7) +# REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) +REQUIRE_64_BYTES = LengthOp.V(8) +global___LengthOp = LengthOp + + +#* +#ExistenceProof takes a key and a value and a set of steps to perform on it. +#The result of peforming all these steps will provide a "root hash", which can +#be compared to the value in a header. +# +#Since it is computationally infeasible to produce a hash collission for any of the used +#cryptographic hash functions, if someone can provide a series of operations to transform +#a given key and value into a root hash that matches some trusted root, these key and values +#must be in the referenced merkle tree. +# +#The only possible issue is maliablity in LeafOp, such as providing extra prefix data, +#which should be controlled by a spec. Eg. with lengthOp as NONE, +#prefix = FOO, key = BAR, value = CHOICE +#and +#prefix = F, key = OOBAR, value = CHOICE +#would produce the same value. +# +#With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field +#in the ProofSpec is valuable to prevent this mutability. And why all trees should +#length-prefix the data before hashing it. +class ExistenceProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + LEAF_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + value: builtins.bytes = ... + @property + def leaf(self) -> global___LeafOp: ... + @property + def path(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InnerOp]: ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + leaf : typing.Optional[global___LeafOp] = ..., + path : typing.Optional[typing.Iterable[global___InnerOp]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"leaf",b"leaf"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"leaf",b"leaf",u"path",b"path",u"value",b"value"]) -> None: ... +global___ExistenceProof = ExistenceProof + +# +#NonExistenceProof takes a proof of two neighbors, one left of the desired key, +#one right of the desired key. If both proofs are valid AND they are neighbors, +#then there is no valid proof for the given key. +class NonExistenceProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + LEFT_FIELD_NUMBER: builtins.int + RIGHT_FIELD_NUMBER: builtins.int + # TODO: remove this as unnecessary??? we prove a range + key: builtins.bytes = ... + @property + def left(self) -> global___ExistenceProof: ... + @property + def right(self) -> global___ExistenceProof: ... + def __init__(self, + *, + key : builtins.bytes = ..., + left : typing.Optional[global___ExistenceProof] = ..., + right : typing.Optional[global___ExistenceProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"left",b"left",u"right",b"right"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"left",b"left",u"right",b"right"]) -> None: ... +global___NonExistenceProof = NonExistenceProof + +# +#CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages +class CommitmentProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXIST_FIELD_NUMBER: builtins.int + NONEXIST_FIELD_NUMBER: builtins.int + BATCH_FIELD_NUMBER: builtins.int + COMPRESSED_FIELD_NUMBER: builtins.int + @property + def exist(self) -> global___ExistenceProof: ... + @property + def nonexist(self) -> global___NonExistenceProof: ... + @property + def batch(self) -> global___BatchProof: ... + @property + def compressed(self) -> global___CompressedBatchProof: ... + def __init__(self, + *, + exist : typing.Optional[global___ExistenceProof] = ..., + nonexist : typing.Optional[global___NonExistenceProof] = ..., + batch : typing.Optional[global___BatchProof] = ..., + compressed : typing.Optional[global___CompressedBatchProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"batch",b"batch",u"compressed",b"compressed",u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"batch",b"batch",u"compressed",b"compressed",u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist","batch","compressed"]]: ... +global___CommitmentProof = CommitmentProof + +#* +#LeafOp represents the raw key-value data we wish to prove, and +#must be flexible to represent the internal transformation from +#the original key-value pairs into the basis hash, for many existing +#merkle trees. +# +#key and value are passed in. So that the signature of this operation is: +#leafOp(key, value) -> output +# +#To process this, first prehash the keys and values if needed (ANY means no hash in this case): +#hkey = prehashKey(key) +#hvalue = prehashValue(value) +# +#Then combine the bytes, and hash it +#output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) +class LeafOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + PREHASH_KEY_FIELD_NUMBER: builtins.int + PREHASH_VALUE_FIELD_NUMBER: builtins.int + LENGTH_FIELD_NUMBER: builtins.int + PREFIX_FIELD_NUMBER: builtins.int + hash: global___HashOp.V = ... + prehash_key: global___HashOp.V = ... + prehash_value: global___HashOp.V = ... + length: global___LengthOp.V = ... + # prefix is a fixed bytes that may optionally be included at the beginning to differentiate + # a leaf node from an inner node. + prefix: builtins.bytes = ... + def __init__(self, + *, + hash : global___HashOp.V = ..., + prehash_key : global___HashOp.V = ..., + prehash_value : global___HashOp.V = ..., + length : global___LengthOp.V = ..., + prefix : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"length",b"length",u"prefix",b"prefix",u"prehash_key",b"prehash_key",u"prehash_value",b"prehash_value"]) -> None: ... +global___LeafOp = LeafOp + +#* +#InnerOp represents a merkle-proof step that is not a leaf. +#It represents concatenating two children and hashing them to provide the next result. +# +#The result of the previous step is passed in, so the signature of this op is: +#innerOp(child) -> output +# +#The result of applying InnerOp should be: +#output = op.hash(op.prefix || child || op.suffix) +# +#where the || operator is concatenation of binary data, +#and child is the result of hashing all the tree below this step. +# +#Any special data, like prepending child with the length, or prepending the entire operation with +#some value to differentiate from leaf nodes, should be included in prefix and suffix. +#If either of prefix or suffix is empty, we just treat it as an empty string +class InnerOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + PREFIX_FIELD_NUMBER: builtins.int + SUFFIX_FIELD_NUMBER: builtins.int + hash: global___HashOp.V = ... + prefix: builtins.bytes = ... + suffix: builtins.bytes = ... + def __init__(self, + *, + hash : global___HashOp.V = ..., + prefix : builtins.bytes = ..., + suffix : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"prefix",b"prefix",u"suffix",b"suffix"]) -> None: ... +global___InnerOp = InnerOp + +#* +#ProofSpec defines what the expected parameters are for a given proof type. +#This can be stored in the client and used to validate any incoming proofs. +# +#verify(ProofSpec, Proof) -> Proof | Error +# +#As demonstrated in tests, if we don't fix the algorithm used to calculate the +#LeafHash for a given tree, there are many possible key-value pairs that can +#generate a given hash (by interpretting the preimage differently). +#We need this for proper security, requires client knows a priori what +#tree format server uses. But not in code, rather a configuration object. +class ProofSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LEAF_SPEC_FIELD_NUMBER: builtins.int + INNER_SPEC_FIELD_NUMBER: builtins.int + MAX_DEPTH_FIELD_NUMBER: builtins.int + MIN_DEPTH_FIELD_NUMBER: builtins.int + # any field in the ExistenceProof must be the same as in this spec. + # except Prefix, which is just the first bytes of prefix (spec can be longer) + @property + def leaf_spec(self) -> global___LeafOp: ... + @property + def inner_spec(self) -> global___InnerSpec: ... + # max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) + max_depth: builtins.int = ... + # min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) + min_depth: builtins.int = ... + def __init__(self, + *, + leaf_spec : typing.Optional[global___LeafOp] = ..., + inner_spec : typing.Optional[global___InnerSpec] = ..., + max_depth : builtins.int = ..., + min_depth : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"inner_spec",b"inner_spec",u"leaf_spec",b"leaf_spec"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"inner_spec",b"inner_spec",u"leaf_spec",b"leaf_spec",u"max_depth",b"max_depth",u"min_depth",b"min_depth"]) -> None: ... +global___ProofSpec = ProofSpec + +# +#InnerSpec contains all store-specific structure info to determine if two proofs from a +#given store are neighbors. +# +#This enables: +# +#isLeftMost(spec: InnerSpec, op: InnerOp) +#isRightMost(spec: InnerSpec, op: InnerOp) +#isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) +class InnerSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHILD_ORDER_FIELD_NUMBER: builtins.int + CHILD_SIZE_FIELD_NUMBER: builtins.int + MIN_PREFIX_LENGTH_FIELD_NUMBER: builtins.int + MAX_PREFIX_LENGTH_FIELD_NUMBER: builtins.int + EMPTY_CHILD_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + # Child order is the ordering of the children node, must count from 0 + # iavl tree is [0, 1] (left then right) + # merk is [0, 2, 1] (left, right, here) + @property + def child_order(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + child_size: builtins.int = ... + min_prefix_length: builtins.int = ... + max_prefix_length: builtins.int = ... + # empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) + empty_child: builtins.bytes = ... + # hash is the algorithm that must be used for each InnerOp + hash: global___HashOp.V = ... + def __init__(self, + *, + child_order : typing.Optional[typing.Iterable[builtins.int]] = ..., + child_size : builtins.int = ..., + min_prefix_length : builtins.int = ..., + max_prefix_length : builtins.int = ..., + empty_child : builtins.bytes = ..., + hash : global___HashOp.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"child_order",b"child_order",u"child_size",b"child_size",u"empty_child",b"empty_child",u"hash",b"hash",u"max_prefix_length",b"max_prefix_length",u"min_prefix_length",b"min_prefix_length"]) -> None: ... +global___InnerSpec = InnerSpec + +# +#BatchProof is a group of multiple proof types than can be compressed +class BatchProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ENTRIES_FIELD_NUMBER: builtins.int + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchEntry]: ... + def __init__(self, + *, + entries : typing.Optional[typing.Iterable[global___BatchEntry]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries"]) -> None: ... +global___BatchProof = BatchProof + +# Use BatchEntry not CommitmentProof, to avoid recursion +class BatchEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXIST_FIELD_NUMBER: builtins.int + NONEXIST_FIELD_NUMBER: builtins.int + @property + def exist(self) -> global___ExistenceProof: ... + @property + def nonexist(self) -> global___NonExistenceProof: ... + def __init__(self, + *, + exist : typing.Optional[global___ExistenceProof] = ..., + nonexist : typing.Optional[global___NonExistenceProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist"]]: ... +global___BatchEntry = BatchEntry + +#***** all items here are compressed forms ****** + +class CompressedBatchProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ENTRIES_FIELD_NUMBER: builtins.int + LOOKUP_INNERS_FIELD_NUMBER: builtins.int + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CompressedBatchEntry]: ... + @property + def lookup_inners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InnerOp]: ... + def __init__(self, + *, + entries : typing.Optional[typing.Iterable[global___CompressedBatchEntry]] = ..., + lookup_inners : typing.Optional[typing.Iterable[global___InnerOp]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries",u"lookup_inners",b"lookup_inners"]) -> None: ... +global___CompressedBatchProof = CompressedBatchProof + +# Use BatchEntry not CommitmentProof, to avoid recursion +class CompressedBatchEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXIST_FIELD_NUMBER: builtins.int + NONEXIST_FIELD_NUMBER: builtins.int + @property + def exist(self) -> global___CompressedExistenceProof: ... + @property + def nonexist(self) -> global___CompressedNonExistenceProof: ... + def __init__(self, + *, + exist : typing.Optional[global___CompressedExistenceProof] = ..., + nonexist : typing.Optional[global___CompressedNonExistenceProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist"]]: ... +global___CompressedBatchEntry = CompressedBatchEntry + +class CompressedExistenceProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + LEAF_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + value: builtins.bytes = ... + @property + def leaf(self) -> global___LeafOp: ... + # these are indexes into the lookup_inners table in CompressedBatchProof + @property + def path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + leaf : typing.Optional[global___LeafOp] = ..., + path : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"leaf",b"leaf"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"leaf",b"leaf",u"path",b"path",u"value",b"value"]) -> None: ... +global___CompressedExistenceProof = CompressedExistenceProof + +class CompressedNonExistenceProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + LEFT_FIELD_NUMBER: builtins.int + RIGHT_FIELD_NUMBER: builtins.int + # TODO: remove this as unnecessary??? we prove a range + key: builtins.bytes = ... + @property + def left(self) -> global___CompressedExistenceProof: ... + @property + def right(self) -> global___CompressedExistenceProof: ... + def __init__(self, + *, + key : builtins.bytes = ..., + left : typing.Optional[global___CompressedExistenceProof] = ..., + right : typing.Optional[global___CompressedExistenceProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"left",b"left",u"right",b"right"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"left",b"left",u"right",b"right"]) -> None: ... +global___CompressedNonExistenceProof = CompressedNonExistenceProof diff --git a/pyband/proto/confio/proofs_pb2_grpc.pyi b/pyband/proto/confio/proofs_pb2_grpc.pyi new file mode 100644 index 0000000..2941a34 --- /dev/null +++ b/pyband/proto/confio/proofs_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .proofs_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi new file mode 100644 index 0000000..acfb389 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi @@ -0,0 +1,83 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BaseAccount defines a base account type. It contains all the necessary fields +# for basic account functionality. Any custom account type should extend this +# type for additional functionality (e.g. vesting). +class BaseAccount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + PUB_KEY_FIELD_NUMBER: builtins.int + ACCOUNT_NUMBER_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + address: typing.Text = ... + @property + def pub_key(self) -> google.protobuf.any_pb2.Any: ... + account_number: builtins.int = ... + sequence: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + account_number : builtins.int = ..., + sequence : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"account_number",b"account_number",u"address",b"address",u"pub_key",b"pub_key",u"sequence",b"sequence"]) -> None: ... +global___BaseAccount = BaseAccount + +# ModuleAccount defines an account for modules that holds coins on a pool. +class ModuleAccount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BASE_ACCOUNT_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + PERMISSIONS_FIELD_NUMBER: builtins.int + @property + def base_account(self) -> global___BaseAccount: ... + name: typing.Text = ... + @property + def permissions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + base_account : typing.Optional[global___BaseAccount] = ..., + name : typing.Text = ..., + permissions : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account",u"name",b"name",u"permissions",b"permissions"]) -> None: ... +global___ModuleAccount = ModuleAccount + +# Params defines the parameters for the auth module. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_MEMO_CHARACTERS_FIELD_NUMBER: builtins.int + TX_SIG_LIMIT_FIELD_NUMBER: builtins.int + TX_SIZE_COST_PER_BYTE_FIELD_NUMBER: builtins.int + SIG_VERIFY_COST_ED25519_FIELD_NUMBER: builtins.int + SIG_VERIFY_COST_SECP256K1_FIELD_NUMBER: builtins.int + max_memo_characters: builtins.int = ... + tx_sig_limit: builtins.int = ... + tx_size_cost_per_byte: builtins.int = ... + sig_verify_cost_ed25519: builtins.int = ... + sig_verify_cost_secp256k1: builtins.int = ... + def __init__(self, + *, + max_memo_characters : builtins.int = ..., + tx_sig_limit : builtins.int = ..., + tx_size_cost_per_byte : builtins.int = ..., + sig_verify_cost_ed25519 : builtins.int = ..., + sig_verify_cost_secp256k1 : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_memo_characters",b"max_memo_characters",u"sig_verify_cost_ed25519",b"sig_verify_cost_ed25519",u"sig_verify_cost_secp256k1",b"sig_verify_cost_secp256k1",u"tx_sig_limit",b"tx_sig_limit",u"tx_size_cost_per_byte",b"tx_size_cost_per_byte"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi new file mode 100644 index 0000000..2ff2af3 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .auth_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..b0bbaeb --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi @@ -0,0 +1,34 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.auth.v1beta1.auth_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the auth module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + ACCOUNTS_FIELD_NUMBER: builtins.int + # params defines all the paramaters of the module. + @property + def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: ... + # accounts are the accounts present at genesis. + @property + def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + params : typing.Optional[cosmos.auth.v1beta1.auth_pb2.Params] = ..., + accounts : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"accounts",b"accounts",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..cdd1697 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi @@ -0,0 +1,100 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.auth.v1beta1.auth_pb2 +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryAccountsRequest is the request type for the Query/Accounts RPC method. +class QueryAccountsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QueryAccountsRequest = QueryAccountsRequest + +# QueryAccountsResponse is the response type for the Query/Accounts RPC method. +class QueryAccountsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ACCOUNTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # accounts are the existing accounts + @property + def accounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + accounts : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"accounts",b"accounts",u"pagination",b"pagination"]) -> None: ... +global___QueryAccountsResponse = QueryAccountsResponse + +# QueryAccountRequest is the request type for the Query/Account RPC method. +class QueryAccountRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + # address defines the address to query for. + address: typing.Text = ... + def __init__(self, + *, + address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address"]) -> None: ... +global___QueryAccountRequest = QueryAccountRequest + +# QueryAccountResponse is the response type for the Query/Account RPC method. +class QueryAccountResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ACCOUNT_FIELD_NUMBER: builtins.int + # account defines the account of the corresponding address. + @property + def account(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + account : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"account",b"account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"account",b"account"]) -> None: ... +global___QueryAccountResponse = QueryAccountResponse + +# QueryParamsRequest is the request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is the response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + # params defines the parameters of the module. + @property + def params(self) -> cosmos.auth.v1beta1.auth_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.auth.v1beta1.auth_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..a6e6600 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Accounts returns all the existing accounts + Accounts:grpc.UnaryUnaryMultiCallable[ + global___QueryAccountsRequest, + global___QueryAccountsResponse] = ... + + # Account returns account details based on address. + Account:grpc.UnaryUnaryMultiCallable[ + global___QueryAccountRequest, + global___QueryAccountResponse] = ... + + # Params queries all parameters. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Accounts returns all the existing accounts + @abc.abstractmethod + def Accounts(self, + request: global___QueryAccountsRequest, + context: grpc.ServicerContext, + ) -> global___QueryAccountsResponse: ... + + # Account returns account details based on address. + @abc.abstractmethod + def Account(self, + request: global___QueryAccountRequest, + context: grpc.ServicerContext, + ) -> global___QueryAccountResponse: ... + + # Params queries all parameters. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/authz/v1beta1/authz_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/authz_pb2.pyi new file mode 100644 index 0000000..f083666 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/authz_pb2.pyi @@ -0,0 +1,46 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenericAuthorization gives the grantee unrestricted permissions to execute +# the provided method on behalf of the granter's account. +class GenericAuthorization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MSG_FIELD_NUMBER: builtins.int + # Msg, identified by it's type URL, to grant unrestricted permissions to execute + msg: typing.Text = ... + def __init__(self, + *, + msg : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"msg",b"msg"]) -> None: ... +global___GenericAuthorization = GenericAuthorization + +# Grant gives permissions to execute +# the provide method with expiration time. +class Grant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AUTHORIZATION_FIELD_NUMBER: builtins.int + EXPIRATION_FIELD_NUMBER: builtins.int + @property + def authorization(self) -> google.protobuf.any_pb2.Any: ... + @property + def expiration(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + authorization : typing.Optional[google.protobuf.any_pb2.Any] = ..., + expiration : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"authorization",b"authorization",u"expiration",b"expiration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authorization",b"authorization",u"expiration",b"expiration"]) -> None: ... +global___Grant = Grant diff --git a/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.pyi new file mode 100644 index 0000000..9e33667 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .authz_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/authz/v1beta1/event_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/event_pb2.pyi new file mode 100644 index 0000000..5ff589b --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/event_pb2.pyi @@ -0,0 +1,53 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# EventGrant is emitted on Msg/Grant +class EventGrant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + # Msg type URL for which an autorization is granted + msg_type_url: typing.Text = ... + # Granter account address + granter: typing.Text = ... + # Grantee account address + grantee: typing.Text = ... + def __init__(self, + *, + msg_type_url : typing.Text = ..., + granter : typing.Text = ..., + grantee : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter",u"msg_type_url",b"msg_type_url"]) -> None: ... +global___EventGrant = EventGrant + +# EventRevoke is emitted on Msg/Revoke +class EventRevoke(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + # Msg type URL for which an autorization is revoked + msg_type_url: typing.Text = ... + # Granter account address + granter: typing.Text = ... + # Grantee account address + grantee: typing.Text = ... + def __init__(self, + *, + msg_type_url : typing.Text = ..., + granter : typing.Text = ..., + grantee : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter",u"msg_type_url",b"msg_type_url"]) -> None: ... +global___EventRevoke = EventRevoke diff --git a/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.pyi new file mode 100644 index 0000000..2e3aadb --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .event_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..09c3fb9 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.pyi @@ -0,0 +1,51 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the authz module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AUTHORIZATION_FIELD_NUMBER: builtins.int + @property + def authorization(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GrantAuthorization]: ... + def __init__(self, + *, + authorization : typing.Optional[typing.Iterable[global___GrantAuthorization]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authorization",b"authorization"]) -> None: ... +global___GenesisState = GenesisState + +# GrantAuthorization defines the GenesisState/GrantAuthorization type. +class GrantAuthorization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + AUTHORIZATION_FIELD_NUMBER: builtins.int + EXPIRATION_FIELD_NUMBER: builtins.int + granter: typing.Text = ... + grantee: typing.Text = ... + @property + def authorization(self) -> google.protobuf.any_pb2.Any: ... + @property + def expiration(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + authorization : typing.Optional[google.protobuf.any_pb2.Any] = ..., + expiration : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"authorization",b"authorization",u"expiration",b"expiration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authorization",b"authorization",u"expiration",b"expiration",u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___GrantAuthorization = GrantAuthorization diff --git a/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/authz/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..03b4ffa --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/query_pb2.pyi @@ -0,0 +1,59 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.authz.v1beta1.authz_pb2 +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryGrantsRequest is the request type for the Query/Grants RPC method. +class QueryGrantsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + granter: typing.Text = ... + grantee: typing.Text = ... + # Optional, msg_type_url, when set, will query only grants matching given msg type. + msg_type_url: typing.Text = ... + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + msg_type_url : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter",u"msg_type_url",b"msg_type_url",u"pagination",b"pagination"]) -> None: ... +global___QueryGrantsRequest = QueryGrantsRequest + +# QueryGrantsResponse is the response type for the Query/Authorizations RPC method. +class QueryGrantsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # authorizations is a list of grants granted for grantee by granter. + @property + def grants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.authz.v1beta1.authz_pb2.Grant]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + grants : typing.Optional[typing.Iterable[cosmos.authz.v1beta1.authz_pb2.Grant]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grants",b"grants",u"pagination",b"pagination"]) -> None: ... +global___QueryGrantsResponse = QueryGrantsResponse diff --git a/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..7655ec2 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Returns list of `Authorization`, granted to the grantee by the granter. + Grants:grpc.UnaryUnaryMultiCallable[ + global___QueryGrantsRequest, + global___QueryGrantsResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Returns list of `Authorization`, granted to the grantee by the granter. + @abc.abstractmethod + def Grants(self, + request: global___QueryGrantsRequest, + context: grpc.ServicerContext, + ) -> global___QueryGrantsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/authz/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..8dd9184 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/tx_pb2.pyi @@ -0,0 +1,102 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.authz.v1beta1.authz_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgGrant is a request type for Grant method. It declares authorization to the grantee +# on behalf of the granter with the provided expiration time. +class MsgGrant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + GRANT_FIELD_NUMBER: builtins.int + granter: typing.Text = ... + grantee: typing.Text = ... + @property + def grant(self) -> cosmos.authz.v1beta1.authz_pb2.Grant: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + grant : typing.Optional[cosmos.authz.v1beta1.authz_pb2.Grant] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"grant",b"grant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grant",b"grant",u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___MsgGrant = MsgGrant + +# MsgExecResponse defines the Msg/MsgExecResponse response type. +class MsgExecResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESULTS_FIELD_NUMBER: builtins.int + @property + def results(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + results : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"results",b"results"]) -> None: ... +global___MsgExecResponse = MsgExecResponse + +# MsgExec attempts to execute the provided messages using +# authorizations granted to the grantee. Each message should have only +# one signer corresponding to the granter of the authorization. +class MsgExec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTEE_FIELD_NUMBER: builtins.int + MSGS_FIELD_NUMBER: builtins.int + grantee: typing.Text = ... + # Authorization Msg requests to execute. Each msg must implement Authorization interface + # The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + # triple and validate it. + @property + def msgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + grantee : typing.Text = ..., + msgs : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"msgs",b"msgs"]) -> None: ... +global___MsgExec = MsgExec + +# MsgGrantResponse defines the Msg/MsgGrant response type. +class MsgGrantResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgGrantResponse = MsgGrantResponse + +# MsgRevoke revokes any authorization with the provided sdk.Msg type on the +# granter's account with that has been granted to the grantee. +class MsgRevoke(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + granter: typing.Text = ... + grantee: typing.Text = ... + msg_type_url: typing.Text = ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + msg_type_url : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter",u"msg_type_url",b"msg_type_url"]) -> None: ... +global___MsgRevoke = MsgRevoke + +# MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. +class MsgRevokeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgRevokeResponse = MsgRevokeResponse diff --git a/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..1dab825 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the authz Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Grant grants the provided authorization to the grantee on the granter's + # account with the provided expiration time. If there is already a grant + # for the given (granter, grantee, Authorization) triple, then the grant + # will be overwritten. + Grant:grpc.UnaryUnaryMultiCallable[ + global___MsgGrant, + global___MsgGrantResponse] = ... + + # Exec attempts to execute the provided messages using + # authorizations granted to the grantee. Each message should have only + # one signer corresponding to the granter of the authorization. + Exec:grpc.UnaryUnaryMultiCallable[ + global___MsgExec, + global___MsgExecResponse] = ... + + # Revoke revokes any authorization corresponding to the provided method name on the + # granter's account that has been granted to the grantee. + Revoke:grpc.UnaryUnaryMultiCallable[ + global___MsgRevoke, + global___MsgRevokeResponse] = ... + + +# Msg defines the authz Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # Grant grants the provided authorization to the grantee on the granter's + # account with the provided expiration time. If there is already a grant + # for the given (granter, grantee, Authorization) triple, then the grant + # will be overwritten. + @abc.abstractmethod + def Grant(self, + request: global___MsgGrant, + context: grpc.ServicerContext, + ) -> global___MsgGrantResponse: ... + + # Exec attempts to execute the provided messages using + # authorizations granted to the grantee. Each message should have only + # one signer corresponding to the granter of the authorization. + @abc.abstractmethod + def Exec(self, + request: global___MsgExec, + context: grpc.ServicerContext, + ) -> global___MsgExecResponse: ... + + # Revoke revokes any authorization corresponding to the provided method name on the + # granter's account that has been granted to the grantee. + @abc.abstractmethod + def Revoke(self, + request: global___MsgRevoke, + context: grpc.ServicerContext, + ) -> global___MsgRevokeResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/bank/v1beta1/authz_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/authz_pb2.pyi new file mode 100644 index 0000000..2c0ac50 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/authz_pb2.pyi @@ -0,0 +1,27 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# SendAuthorization allows the grantee to spend up to spend_limit coins from +# the granter's account. +class SendAuthorization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SPEND_LIMIT_FIELD_NUMBER: builtins.int + @property + def spend_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + spend_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"spend_limit",b"spend_limit"]) -> None: ... +global___SendAuthorization = SendAuthorization diff --git a/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.pyi new file mode 100644 index 0000000..9e33667 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .authz_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi new file mode 100644 index 0000000..c0cb422 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi @@ -0,0 +1,155 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Params defines the parameters for the bank module. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEND_ENABLED_FIELD_NUMBER: builtins.int + DEFAULT_SEND_ENABLED_FIELD_NUMBER: builtins.int + @property + def send_enabled(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SendEnabled]: ... + default_send_enabled: builtins.bool = ... + def __init__(self, + *, + send_enabled : typing.Optional[typing.Iterable[global___SendEnabled]] = ..., + default_send_enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"default_send_enabled",b"default_send_enabled",u"send_enabled",b"send_enabled"]) -> None: ... +global___Params = Params + +# SendEnabled maps coin denom to a send_enabled status (whether a denom is +# sendable). +class SendEnabled(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + ENABLED_FIELD_NUMBER: builtins.int + denom: typing.Text = ... + enabled: builtins.bool = ... + def __init__(self, + *, + denom : typing.Text = ..., + enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom",u"enabled",b"enabled"]) -> None: ... +global___SendEnabled = SendEnabled + +# Input models transaction input. +class Input(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + address: typing.Text = ... + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + address : typing.Text = ..., + coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... +global___Input = Input + +# Output models transaction outputs. +class Output(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + address: typing.Text = ... + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + address : typing.Text = ..., + coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... +global___Output = Output + +# Supply represents a struct that passively keeps track of the total supply +# amounts in the network. +# This message is deprecated now that supply is indexed by denom. +class Supply(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TOTAL_FIELD_NUMBER: builtins.int + @property + def total(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + total : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"total",b"total"]) -> None: ... +global___Supply = Supply + +# DenomUnit represents a struct that describes a given +# denomination unit of the basic token. +class DenomUnit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + EXPONENT_FIELD_NUMBER: builtins.int + ALIASES_FIELD_NUMBER: builtins.int + # denom represents the string name of the given denom unit (e.g uatom). + denom: typing.Text = ... + # exponent represents power of 10 exponent that one must + # raise the base_denom to in order to equal the given DenomUnit's denom + # 1 denom = 1^exponent base_denom + # (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + # exponent = 6, thus: 1 atom = 10^6 uatom). + exponent: builtins.int = ... + # aliases is a list of string aliases for the given denom + @property + def aliases(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + denom : typing.Text = ..., + exponent : builtins.int = ..., + aliases : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"aliases",b"aliases",u"denom",b"denom",u"exponent",b"exponent"]) -> None: ... +global___DenomUnit = DenomUnit + +# Metadata represents a struct that describes +# a basic token. +class Metadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTION_FIELD_NUMBER: builtins.int + DENOM_UNITS_FIELD_NUMBER: builtins.int + BASE_FIELD_NUMBER: builtins.int + DISPLAY_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + SYMBOL_FIELD_NUMBER: builtins.int + description: typing.Text = ... + # denom_units represents the list of DenomUnit's for a given coin + @property + def denom_units(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DenomUnit]: ... + # base represents the base denom (should be the DenomUnit with exponent = 0). + base: typing.Text = ... + # display indicates the suggested denom that should be + # displayed in clients. + display: typing.Text = ... + # name defines the name of the token (eg: Cosmos Atom) + name: typing.Text = ... + # symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + # be the same as the display. + symbol: typing.Text = ... + def __init__(self, + *, + description : typing.Text = ..., + denom_units : typing.Optional[typing.Iterable[global___DenomUnit]] = ..., + base : typing.Text = ..., + display : typing.Text = ..., + name : typing.Text = ..., + symbol : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base",b"base",u"denom_units",b"denom_units",u"description",b"description",u"display",b"display",u"name",b"name",u"symbol",b"symbol"]) -> None: ... +global___Metadata = Metadata diff --git a/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi new file mode 100644 index 0000000..fe241e2 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .bank_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..c0a96c3 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.bank.v1beta1.bank_pb2 +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the bank module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + BALANCES_FIELD_NUMBER: builtins.int + SUPPLY_FIELD_NUMBER: builtins.int + DENOM_METADATA_FIELD_NUMBER: builtins.int + # params defines all the paramaters of the module. + @property + def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: ... + # balances is an array containing the balances of all the accounts. + @property + def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Balance]: ... + # supply represents the total supply. If it is left empty, then supply will be calculated based on the provided + # balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. + @property + def supply(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # denom_metadata defines the metadata of the differents coins. + @property + def denom_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Metadata]: ... + def __init__(self, + *, + params : typing.Optional[cosmos.bank.v1beta1.bank_pb2.Params] = ..., + balances : typing.Optional[typing.Iterable[global___Balance]] = ..., + supply : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + denom_metadata : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Metadata]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balances",b"balances",u"denom_metadata",b"denom_metadata",u"params",b"params",u"supply",b"supply"]) -> None: ... +global___GenesisState = GenesisState + +# Balance defines an account address and balance pair used in the bank module's +# genesis state. +class Balance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + # address is the address of the balance holder. + address: typing.Text = ... + # coins defines the different coins this balance holds. + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + address : typing.Text = ..., + coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... +global___Balance = Balance diff --git a/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..95a5ca7 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi @@ -0,0 +1,238 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.bank.v1beta1.bank_pb2 +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryBalanceRequest is the request type for the Query/Balance RPC method. +class QueryBalanceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + DENOM_FIELD_NUMBER: builtins.int + # address is the address to query balances for. + address: typing.Text = ... + # denom is the coin denom to query balances for. + denom: typing.Text = ... + def __init__(self, + *, + address : typing.Text = ..., + denom : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"denom",b"denom"]) -> None: ... +global___QueryBalanceRequest = QueryBalanceRequest + +# QueryBalanceResponse is the response type for the Query/Balance RPC method. +class QueryBalanceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BALANCE_FIELD_NUMBER: builtins.int + # balance is the balance of the coin. + @property + def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + balance : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"balance",b"balance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance"]) -> None: ... +global___QueryBalanceResponse = QueryBalanceResponse + +# QueryBalanceRequest is the request type for the Query/AllBalances RPC method. +class QueryAllBalancesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # address is the address to query balances for. + address: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + address : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"pagination",b"pagination"]) -> None: ... +global___QueryAllBalancesRequest = QueryAllBalancesRequest + +# QueryAllBalancesResponse is the response type for the Query/AllBalances RPC +# method. +class QueryAllBalancesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BALANCES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # balances is the balances of all the coins. + @property + def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + balances : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balances",b"balances",u"pagination",b"pagination"]) -> None: ... +global___QueryAllBalancesResponse = QueryAllBalancesResponse + +# QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC +# method. +class QueryTotalSupplyRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QueryTotalSupplyRequest = QueryTotalSupplyRequest + +# QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC +# method +class QueryTotalSupplyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SUPPLY_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # supply is the supply of the coins + @property + def supply(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + supply : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"supply",b"supply"]) -> None: ... +global___QueryTotalSupplyResponse = QueryTotalSupplyResponse + +# QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. +class QuerySupplyOfRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + # denom is the coin denom to query balances for. + denom: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom"]) -> None: ... +global___QuerySupplyOfRequest = QuerySupplyOfRequest + +# QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. +class QuerySupplyOfResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AMOUNT_FIELD_NUMBER: builtins.int + # amount is the supply of the coin. + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> None: ... +global___QuerySupplyOfResponse = QuerySupplyOfResponse + +# QueryParamsRequest defines the request type for querying x/bank parameters. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse defines the response type for querying x/bank parameters. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.bank.v1beta1.bank_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse + +# QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. +class QueryDenomsMetadataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QueryDenomsMetadataRequest = QueryDenomsMetadataRequest + +# QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC +# method. +class QueryDenomsMetadataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + METADATAS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # metadata provides the client information for all the registered tokens. + @property + def metadatas(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Metadata]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + metadatas : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Metadata]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"metadatas",b"metadatas",u"pagination",b"pagination"]) -> None: ... +global___QueryDenomsMetadataResponse = QueryDenomsMetadataResponse + +# QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. +class QueryDenomMetadataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + # denom is the coin denom to query the metadata for. + denom: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom"]) -> None: ... +global___QueryDenomMetadataRequest = QueryDenomMetadataRequest + +# QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC +# method. +class QueryDenomMetadataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + METADATA_FIELD_NUMBER: builtins.int + # metadata describes and provides all the client information for the requested token. + @property + def metadata(self) -> cosmos.bank.v1beta1.bank_pb2.Metadata: ... + def __init__(self, + *, + metadata : typing.Optional[cosmos.bank.v1beta1.bank_pb2.Metadata] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> None: ... +global___QueryDenomMetadataResponse = QueryDenomMetadataResponse diff --git a/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..ff20b6d --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,100 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Balance queries the balance of a single coin for a single account. + Balance:grpc.UnaryUnaryMultiCallable[ + global___QueryBalanceRequest, + global___QueryBalanceResponse] = ... + + # AllBalances queries the balance of all coins for a single account. + AllBalances:grpc.UnaryUnaryMultiCallable[ + global___QueryAllBalancesRequest, + global___QueryAllBalancesResponse] = ... + + # TotalSupply queries the total supply of all coins. + TotalSupply:grpc.UnaryUnaryMultiCallable[ + global___QueryTotalSupplyRequest, + global___QueryTotalSupplyResponse] = ... + + # SupplyOf queries the supply of a single coin. + SupplyOf:grpc.UnaryUnaryMultiCallable[ + global___QuerySupplyOfRequest, + global___QuerySupplyOfResponse] = ... + + # Params queries the parameters of x/bank module. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # DenomsMetadata queries the client metadata of a given coin denomination. + DenomMetadata:grpc.UnaryUnaryMultiCallable[ + global___QueryDenomMetadataRequest, + global___QueryDenomMetadataResponse] = ... + + # DenomsMetadata queries the client metadata for all registered coin denominations. + DenomsMetadata:grpc.UnaryUnaryMultiCallable[ + global___QueryDenomsMetadataRequest, + global___QueryDenomsMetadataResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Balance queries the balance of a single coin for a single account. + @abc.abstractmethod + def Balance(self, + request: global___QueryBalanceRequest, + context: grpc.ServicerContext, + ) -> global___QueryBalanceResponse: ... + + # AllBalances queries the balance of all coins for a single account. + @abc.abstractmethod + def AllBalances(self, + request: global___QueryAllBalancesRequest, + context: grpc.ServicerContext, + ) -> global___QueryAllBalancesResponse: ... + + # TotalSupply queries the total supply of all coins. + @abc.abstractmethod + def TotalSupply(self, + request: global___QueryTotalSupplyRequest, + context: grpc.ServicerContext, + ) -> global___QueryTotalSupplyResponse: ... + + # SupplyOf queries the supply of a single coin. + @abc.abstractmethod + def SupplyOf(self, + request: global___QuerySupplyOfRequest, + context: grpc.ServicerContext, + ) -> global___QuerySupplyOfResponse: ... + + # Params queries the parameters of x/bank module. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # DenomsMetadata queries the client metadata of a given coin denomination. + @abc.abstractmethod + def DenomMetadata(self, + request: global___QueryDenomMetadataRequest, + context: grpc.ServicerContext, + ) -> global___QueryDenomMetadataResponse: ... + + # DenomsMetadata queries the client metadata for all registered coin denominations. + @abc.abstractmethod + def DenomsMetadata(self, + request: global___QueryDenomsMetadataRequest, + context: grpc.ServicerContext, + ) -> global___QueryDenomsMetadataResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..934b30c --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.bank.v1beta1.bank_pb2 +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgSend represents a message to send coins from one account to another. +class MsgSend(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FROM_ADDRESS_FIELD_NUMBER: builtins.int + TO_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + from_address: typing.Text = ... + to_address: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + from_address : typing.Text = ..., + to_address : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"from_address",b"from_address",u"to_address",b"to_address"]) -> None: ... +global___MsgSend = MsgSend + +# MsgSendResponse defines the Msg/Send response type. +class MsgSendResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgSendResponse = MsgSendResponse + +# MsgMultiSend represents an arbitrary multi-in, multi-out send message. +class MsgMultiSend(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INPUTS_FIELD_NUMBER: builtins.int + OUTPUTS_FIELD_NUMBER: builtins.int + @property + def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Input]: ... + @property + def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Output]: ... + def __init__(self, + *, + inputs : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Input]] = ..., + outputs : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Output]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"inputs",b"inputs",u"outputs",b"outputs"]) -> None: ... +global___MsgMultiSend = MsgMultiSend + +# MsgMultiSendResponse defines the Msg/MultiSend response type. +class MsgMultiSendResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgMultiSendResponse = MsgMultiSendResponse diff --git a/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..13379be --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,40 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the bank Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Send defines a method for sending coins from one account to another account. + Send:grpc.UnaryUnaryMultiCallable[ + global___MsgSend, + global___MsgSendResponse] = ... + + # MultiSend defines a method for sending coins from some accounts to other accounts. + MultiSend:grpc.UnaryUnaryMultiCallable[ + global___MsgMultiSend, + global___MsgMultiSendResponse] = ... + + +# Msg defines the bank Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # Send defines a method for sending coins from one account to another account. + @abc.abstractmethod + def Send(self, + request: global___MsgSend, + context: grpc.ServicerContext, + ) -> global___MsgSendResponse: ... + + # MultiSend defines a method for sending coins from some accounts to other accounts. + @abc.abstractmethod + def MultiSend(self, + request: global___MsgMultiSend, + context: grpc.ServicerContext, + ) -> global___MsgMultiSendResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi new file mode 100644 index 0000000..7a9a68a --- /dev/null +++ b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi @@ -0,0 +1,256 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import tendermint.abci.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# TxResponse defines a structure containing relevant tx data and metadata. The +# tags are stringified and the log is JSON decoded. +class TxResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + TXHASH_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + CODE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + RAW_LOG_FIELD_NUMBER: builtins.int + LOGS_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + TX_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + # The block height + height: builtins.int = ... + # The transaction hash. + txhash: typing.Text = ... + # Namespace for the Code + codespace: typing.Text = ... + # Response code. + code: builtins.int = ... + # Result bytes, if any. + data: typing.Text = ... + # The output of the application's logger (raw string). May be + # non-deterministic. + raw_log: typing.Text = ... + # The output of the application's logger (typed). May be non-deterministic. + @property + def logs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ABCIMessageLog]: ... + # Additional information. May be non-deterministic. + info: typing.Text = ... + # Amount of gas requested for transaction. + gas_wanted: builtins.int = ... + # Amount of gas consumed by transaction. + gas_used: builtins.int = ... + # The request transaction bytes. + @property + def tx(self) -> google.protobuf.any_pb2.Any: ... + # Time of the previous block. For heights > 1, it's the weighted median of + # the timestamps of the valid votes in the block.LastCommit. For height == 1, + # it's genesis time. + timestamp: typing.Text = ... + def __init__(self, + *, + height : builtins.int = ..., + txhash : typing.Text = ..., + codespace : typing.Text = ..., + code : builtins.int = ..., + data : typing.Text = ..., + raw_log : typing.Text = ..., + logs : typing.Optional[typing.Iterable[global___ABCIMessageLog]] = ..., + info : typing.Text = ..., + gas_wanted : builtins.int = ..., + gas_used : builtins.int = ..., + tx : typing.Optional[google.protobuf.any_pb2.Any] = ..., + timestamp : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"height",b"height",u"info",b"info",u"logs",b"logs",u"raw_log",b"raw_log",u"timestamp",b"timestamp",u"tx",b"tx",u"txhash",b"txhash"]) -> None: ... +global___TxResponse = TxResponse + +# ABCIMessageLog defines a structure containing an indexed tx ABCI message log. +class ABCIMessageLog(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MSG_INDEX_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + msg_index: builtins.int = ... + log: typing.Text = ... + # Events contains a slice of Event objects that were emitted during some + # execution. + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringEvent]: ... + def __init__(self, + *, + msg_index : builtins.int = ..., + log : typing.Text = ..., + events : typing.Optional[typing.Iterable[global___StringEvent]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events",u"log",b"log",u"msg_index",b"msg_index"]) -> None: ... +global___ABCIMessageLog = ABCIMessageLog + +# StringEvent defines en Event object wrapper where all the attributes +# contain key/value pairs that are strings instead of raw bytes. +class StringEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + type: typing.Text = ... + @property + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Attribute]: ... + def __init__(self, + *, + type : typing.Text = ..., + attributes : typing.Optional[typing.Iterable[global___Attribute]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"type",b"type"]) -> None: ... +global___StringEvent = StringEvent + +# Attribute defines an attribute wrapper where the key and value are +# strings instead of raw bytes. +class Attribute(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... + value: typing.Text = ... + def __init__(self, + *, + key : typing.Text = ..., + value : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___Attribute = Attribute + +# GasInfo defines tx execution gas context. +class GasInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + # GasWanted is the maximum units of work we allow this tx to perform. + gas_wanted: builtins.int = ... + # GasUsed is the amount of gas actually consumed. + gas_used: builtins.int = ... + def __init__(self, + *, + gas_wanted : builtins.int = ..., + gas_used : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted"]) -> None: ... +global___GasInfo = GasInfo + +# Result is the union of ResponseFormat and ResponseCheckTx. +class Result(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + # Data is any data returned from message or handler execution. It MUST be + # length prefixed in order to separate data from multiple message executions. + data: builtins.bytes = ... + # Log contains the log information from message or handler execution. + log: typing.Text = ... + # Events contains a slice of Event objects that were emitted during message + # or handler execution. + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.abci.types_pb2.Event]: ... + def __init__(self, + *, + data : builtins.bytes = ..., + log : typing.Text = ..., + events : typing.Optional[typing.Iterable[tendermint.abci.types_pb2.Event]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"events",b"events",u"log",b"log"]) -> None: ... +global___Result = Result + +# SimulationResponse defines the response generated when a transaction is +# successfully simulated. +class SimulationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GAS_INFO_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + @property + def gas_info(self) -> global___GasInfo: ... + @property + def result(self) -> global___Result: ... + def __init__(self, + *, + gas_info : typing.Optional[global___GasInfo] = ..., + result : typing.Optional[global___Result] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> None: ... +global___SimulationResponse = SimulationResponse + +# MsgData defines the data returned in a Result object during message +# execution. +class MsgData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MSG_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + msg_type: typing.Text = ... + data: builtins.bytes = ... + def __init__(self, + *, + msg_type : typing.Text = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"msg_type",b"msg_type"]) -> None: ... +global___MsgData = MsgData + +# TxMsgData defines a list of MsgData. A transaction will have a MsgData object +# for each message. +class TxMsgData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + @property + def data(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgData]: ... + def __init__(self, + *, + data : typing.Optional[typing.Iterable[global___MsgData]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data"]) -> None: ... +global___TxMsgData = TxMsgData + +# SearchTxsResult defines a structure for querying txs pageable +class SearchTxsResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TOTAL_COUNT_FIELD_NUMBER: builtins.int + COUNT_FIELD_NUMBER: builtins.int + PAGE_NUMBER_FIELD_NUMBER: builtins.int + PAGE_TOTAL_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + TXS_FIELD_NUMBER: builtins.int + # Count of all txs + total_count: builtins.int = ... + # Count of txs in current page + count: builtins.int = ... + # Index of current page, start from 1 + page_number: builtins.int = ... + # Count of total pages + page_total: builtins.int = ... + # Max count txs per page + limit: builtins.int = ... + # List of txs in current page + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TxResponse]: ... + def __init__(self, + *, + total_count : builtins.int = ..., + count : builtins.int = ..., + page_number : builtins.int = ..., + page_total : builtins.int = ..., + limit : builtins.int = ..., + txs : typing.Optional[typing.Iterable[global___TxResponse]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"count",b"count",u"limit",b"limit",u"page_number",b"page_number",u"page_total",b"page_total",u"total_count",b"total_count",u"txs",b"txs"]) -> None: ... +global___SearchTxsResult = SearchTxsResult diff --git a/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi new file mode 100644 index 0000000..a1bde76 --- /dev/null +++ b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .abci_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi new file mode 100644 index 0000000..3badfee --- /dev/null +++ b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi @@ -0,0 +1,40 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Pairs defines a repeated slice of Pair objects. +class Pairs(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAIRS_FIELD_NUMBER: builtins.int + @property + def pairs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Pair]: ... + def __init__(self, + *, + pairs : typing.Optional[typing.Iterable[global___Pair]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pairs",b"pairs"]) -> None: ... +global___Pairs = Pairs + +# Pair defines a key/value bytes tuple. +class Pair(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + value: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___Pair = Pair diff --git a/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi new file mode 100644 index 0000000..7b68bcf --- /dev/null +++ b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .kv_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi new file mode 100644 index 0000000..5d685b5 --- /dev/null +++ b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi @@ -0,0 +1,78 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# PageRequest is to be embedded in gRPC request messages for efficient +# pagination. Ex: +# +# message SomeRequest { +# Foo some_parameter = 1; +# PageRequest pagination = 2; +# } +class PageRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + OFFSET_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + COUNT_TOTAL_FIELD_NUMBER: builtins.int + REVERSE_FIELD_NUMBER: builtins.int + # key is a value returned in PageResponse.next_key to begin + # querying the next page most efficiently. Only one of offset or key + # should be set. + key: builtins.bytes = ... + # offset is a numeric offset that can be used when key is unavailable. + # It is less efficient than using key. Only one of offset or key should + # be set. + offset: builtins.int = ... + # limit is the total number of results to be returned in the result page. + # If left empty it will default to a value to be set by each app. + limit: builtins.int = ... + # count_total is set to true to indicate that the result set should include + # a count of the total number of items available for pagination in UIs. + # count_total is only respected when offset is used. It is ignored when key + # is set. + count_total: builtins.bool = ... + # reverse is set to true if results are to be returned in the descending order. + reverse: builtins.bool = ... + def __init__(self, + *, + key : builtins.bytes = ..., + offset : builtins.int = ..., + limit : builtins.int = ..., + count_total : builtins.bool = ..., + reverse : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"count_total",b"count_total",u"key",b"key",u"limit",b"limit",u"offset",b"offset",u"reverse",b"reverse"]) -> None: ... +global___PageRequest = PageRequest + +# PageResponse is to be embedded in gRPC response messages where the +# corresponding request message has used PageRequest. +# +# message SomeResponse { +# repeated Bar results = 1; +# PageResponse page = 2; +# } +class PageResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NEXT_KEY_FIELD_NUMBER: builtins.int + TOTAL_FIELD_NUMBER: builtins.int + # next_key is the key to be passed to PageRequest.key to + # query the next page most efficiently + next_key: builtins.bytes = ... + # total is total number of results available if PageRequest.count_total + # was set, its value is undefined otherwise + total: builtins.int = ... + def __init__(self, + *, + next_key : builtins.bytes = ..., + total : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_key",b"next_key",u"total",b"total"]) -> None: ... +global___PageResponse = PageResponse diff --git a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi new file mode 100644 index 0000000..fd9e1b9 --- /dev/null +++ b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .pagination_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi new file mode 100644 index 0000000..c829d73 --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi @@ -0,0 +1,61 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. +class ListAllInterfacesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___ListAllInterfacesRequest = ListAllInterfacesRequest + +# ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. +class ListAllInterfacesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INTERFACE_NAMES_FIELD_NUMBER: builtins.int + # interface_names is an array of all the registered interfaces. + @property + def interface_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + interface_names : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"interface_names",b"interface_names"]) -> None: ... +global___ListAllInterfacesResponse = ListAllInterfacesResponse + +# ListImplementationsRequest is the request type of the ListImplementations +# RPC. +class ListImplementationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INTERFACE_NAME_FIELD_NUMBER: builtins.int + # interface_name defines the interface to query the implementations for. + interface_name: typing.Text = ... + def __init__(self, + *, + interface_name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"interface_name",b"interface_name"]) -> None: ... +global___ListImplementationsRequest = ListImplementationsRequest + +# ListImplementationsResponse is the response type of the ListImplementations +# RPC. +class ListImplementationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IMPLEMENTATION_MESSAGE_NAMES_FIELD_NUMBER: builtins.int + @property + def implementation_message_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + implementation_message_names : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"implementation_message_names",b"implementation_message_names"]) -> None: ... +global___ListImplementationsResponse = ListImplementationsResponse diff --git a/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi new file mode 100644 index 0000000..2d2be0f --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .reflection_pb2 import * +# ReflectionService defines a service for interface reflection. +class ReflectionServiceStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # ListAllInterfaces lists all the interfaces registered in the interface + # registry. + ListAllInterfaces:grpc.UnaryUnaryMultiCallable[ + global___ListAllInterfacesRequest, + global___ListAllInterfacesResponse] = ... + + # ListImplementations list all the concrete types that implement a given + # interface. + ListImplementations:grpc.UnaryUnaryMultiCallable[ + global___ListImplementationsRequest, + global___ListImplementationsResponse] = ... + + +# ReflectionService defines a service for interface reflection. +class ReflectionServiceServicer(metaclass=abc.ABCMeta): + # ListAllInterfaces lists all the interfaces registered in the interface + # registry. + @abc.abstractmethod + def ListAllInterfaces(self, + request: global___ListAllInterfacesRequest, + context: grpc.ServicerContext, + ) -> global___ListAllInterfacesResponse: ... + + # ListImplementations list all the concrete types that implement a given + # interface. + @abc.abstractmethod + def ListImplementations(self, + request: global___ListImplementationsRequest, + context: grpc.ServicerContext, + ) -> global___ListImplementationsResponse: ... + + +def add_ReflectionServiceServicer_to_server(servicer: ReflectionServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.pyi b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.pyi new file mode 100644 index 0000000..769ae30 --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.pyi @@ -0,0 +1,420 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# AppDescriptor describes a cosmos-sdk based application +class AppDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AUTHN_FIELD_NUMBER: builtins.int + CHAIN_FIELD_NUMBER: builtins.int + CODEC_FIELD_NUMBER: builtins.int + CONFIGURATION_FIELD_NUMBER: builtins.int + QUERY_SERVICES_FIELD_NUMBER: builtins.int + TX_FIELD_NUMBER: builtins.int + # AuthnDescriptor provides information on how to authenticate transactions on the application + # NOTE: experimental and subject to change in future releases. + @property + def authn(self) -> global___AuthnDescriptor: ... + # chain provides the chain descriptor + @property + def chain(self) -> global___ChainDescriptor: ... + # codec provides metadata information regarding codec related types + @property + def codec(self) -> global___CodecDescriptor: ... + # configuration provides metadata information regarding the sdk.Config type + @property + def configuration(self) -> global___ConfigurationDescriptor: ... + # query_services provides metadata information regarding the available queriable endpoints + @property + def query_services(self) -> global___QueryServicesDescriptor: ... + # tx provides metadata information regarding how to send transactions to the given application + @property + def tx(self) -> global___TxDescriptor: ... + def __init__(self, + *, + authn : typing.Optional[global___AuthnDescriptor] = ..., + chain : typing.Optional[global___ChainDescriptor] = ..., + codec : typing.Optional[global___CodecDescriptor] = ..., + configuration : typing.Optional[global___ConfigurationDescriptor] = ..., + query_services : typing.Optional[global___QueryServicesDescriptor] = ..., + tx : typing.Optional[global___TxDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"authn",b"authn",u"chain",b"chain",u"codec",b"codec",u"configuration",b"configuration",u"query_services",b"query_services",u"tx",b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authn",b"authn",u"chain",b"chain",u"codec",b"codec",u"configuration",b"configuration",u"query_services",b"query_services",u"tx",b"tx"]) -> None: ... +global___AppDescriptor = AppDescriptor + +# TxDescriptor describes the accepted transaction type +class TxDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + MSGS_FIELD_NUMBER: builtins.int + # fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) + # it is not meant to support polymorphism of transaction types, it is supposed to be used by + # reflection clients to understand if they can handle a specific transaction type in an application. + fullname: typing.Text = ... + # msgs lists the accepted application messages (sdk.Msg) + @property + def msgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgDescriptor]: ... + def __init__(self, + *, + fullname : typing.Text = ..., + msgs : typing.Optional[typing.Iterable[global___MsgDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fullname",b"fullname",u"msgs",b"msgs"]) -> None: ... +global___TxDescriptor = TxDescriptor + +# AuthnDescriptor provides information on how to sign transactions without relying +# on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures +class AuthnDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGN_MODES_FIELD_NUMBER: builtins.int + # sign_modes defines the supported signature algorithm + @property + def sign_modes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SigningModeDescriptor]: ... + def __init__(self, + *, + sign_modes : typing.Optional[typing.Iterable[global___SigningModeDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"sign_modes",b"sign_modes"]) -> None: ... +global___AuthnDescriptor = AuthnDescriptor + +# SigningModeDescriptor provides information on a signing flow of the application +# NOTE(fdymylja): here we could go as far as providing an entire flow on how +# to sign a message given a SigningModeDescriptor, but it's better to think about +# this another time +class SigningModeDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + NUMBER_FIELD_NUMBER: builtins.int + AUTHN_INFO_PROVIDER_METHOD_FULLNAME_FIELD_NUMBER: builtins.int + # name defines the unique name of the signing mode + name: typing.Text = ... + # number is the unique int32 identifier for the sign_mode enum + number: builtins.int = ... + # authn_info_provider_method_fullname defines the fullname of the method to call to get + # the metadata required to authenticate using the provided sign_modes + authn_info_provider_method_fullname: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + number : builtins.int = ..., + authn_info_provider_method_fullname : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authn_info_provider_method_fullname",b"authn_info_provider_method_fullname",u"name",b"name",u"number",b"number"]) -> None: ... +global___SigningModeDescriptor = SigningModeDescriptor + +# ChainDescriptor describes chain information of the application +class ChainDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ID_FIELD_NUMBER: builtins.int + # id is the chain id + id: typing.Text = ... + def __init__(self, + *, + id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"id",b"id"]) -> None: ... +global___ChainDescriptor = ChainDescriptor + +# CodecDescriptor describes the registered interfaces and provides metadata information on the types +class CodecDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INTERFACES_FIELD_NUMBER: builtins.int + # interfaces is a list of the registerted interfaces descriptors + @property + def interfaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceDescriptor]: ... + def __init__(self, + *, + interfaces : typing.Optional[typing.Iterable[global___InterfaceDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"interfaces",b"interfaces"]) -> None: ... +global___CodecDescriptor = CodecDescriptor + +# InterfaceDescriptor describes the implementation of an interface +class InterfaceDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + INTERFACE_ACCEPTING_MESSAGES_FIELD_NUMBER: builtins.int + INTERFACE_IMPLEMENTERS_FIELD_NUMBER: builtins.int + # fullname is the name of the interface + fullname: typing.Text = ... + # interface_accepting_messages contains information regarding the proto messages which contain the interface as + # google.protobuf.Any field + @property + def interface_accepting_messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceAcceptingMessageDescriptor]: ... + # interface_implementers is a list of the descriptors of the interface implementers + @property + def interface_implementers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceImplementerDescriptor]: ... + def __init__(self, + *, + fullname : typing.Text = ..., + interface_accepting_messages : typing.Optional[typing.Iterable[global___InterfaceAcceptingMessageDescriptor]] = ..., + interface_implementers : typing.Optional[typing.Iterable[global___InterfaceImplementerDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fullname",b"fullname",u"interface_accepting_messages",b"interface_accepting_messages",u"interface_implementers",b"interface_implementers"]) -> None: ... +global___InterfaceDescriptor = InterfaceDescriptor + +# InterfaceImplementerDescriptor describes an interface implementer +class InterfaceImplementerDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + TYPE_URL_FIELD_NUMBER: builtins.int + # fullname is the protobuf queryable name of the interface implementer + fullname: typing.Text = ... + # type_url defines the type URL used when marshalling the type as any + # this is required so we can provide type safe google.protobuf.Any marshalling and + # unmarshalling, making sure that we don't accept just 'any' type + # in our interface fields + type_url: typing.Text = ... + def __init__(self, + *, + fullname : typing.Text = ..., + type_url : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fullname",b"fullname",u"type_url",b"type_url"]) -> None: ... +global___InterfaceImplementerDescriptor = InterfaceImplementerDescriptor + +# InterfaceAcceptingMessageDescriptor describes a protobuf message which contains +# an interface represented as a google.protobuf.Any +class InterfaceAcceptingMessageDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + FIELD_DESCRIPTOR_NAMES_FIELD_NUMBER: builtins.int + # fullname is the protobuf fullname of the type containing the interface + fullname: typing.Text = ... + # field_descriptor_names is a list of the protobuf name (not fullname) of the field + # which contains the interface as google.protobuf.Any (the interface is the same, but + # it can be in multiple fields of the same proto message) + @property + def field_descriptor_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + fullname : typing.Text = ..., + field_descriptor_names : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"field_descriptor_names",b"field_descriptor_names",u"fullname",b"fullname"]) -> None: ... +global___InterfaceAcceptingMessageDescriptor = InterfaceAcceptingMessageDescriptor + +# ConfigurationDescriptor contains metadata information on the sdk.Config +class ConfigurationDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BECH32_ACCOUNT_ADDRESS_PREFIX_FIELD_NUMBER: builtins.int + # bech32_account_address_prefix is the account address prefix + bech32_account_address_prefix: typing.Text = ... + def __init__(self, + *, + bech32_account_address_prefix : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bech32_account_address_prefix",b"bech32_account_address_prefix"]) -> None: ... +global___ConfigurationDescriptor = ConfigurationDescriptor + +# MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction +class MsgDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + # msg_type_url contains the TypeURL of a sdk.Msg. + msg_type_url: typing.Text = ... + def __init__(self, + *, + msg_type_url : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"msg_type_url",b"msg_type_url"]) -> None: ... +global___MsgDescriptor = MsgDescriptor + +# GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC +class GetAuthnDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetAuthnDescriptorRequest = GetAuthnDescriptorRequest + +# GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC +class GetAuthnDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AUTHN_FIELD_NUMBER: builtins.int + # authn describes how to authenticate to the application when sending transactions + @property + def authn(self) -> global___AuthnDescriptor: ... + def __init__(self, + *, + authn : typing.Optional[global___AuthnDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"authn",b"authn"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authn",b"authn"]) -> None: ... +global___GetAuthnDescriptorResponse = GetAuthnDescriptorResponse + +# GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC +class GetChainDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetChainDescriptorRequest = GetChainDescriptorRequest + +# GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC +class GetChainDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_FIELD_NUMBER: builtins.int + # chain describes application chain information + @property + def chain(self) -> global___ChainDescriptor: ... + def __init__(self, + *, + chain : typing.Optional[global___ChainDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"chain",b"chain"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain",b"chain"]) -> None: ... +global___GetChainDescriptorResponse = GetChainDescriptorResponse + +# GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC +class GetCodecDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetCodecDescriptorRequest = GetCodecDescriptorRequest + +# GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC +class GetCodecDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CODEC_FIELD_NUMBER: builtins.int + # codec describes the application codec such as registered interfaces and implementations + @property + def codec(self) -> global___CodecDescriptor: ... + def __init__(self, + *, + codec : typing.Optional[global___CodecDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"codec",b"codec"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"codec",b"codec"]) -> None: ... +global___GetCodecDescriptorResponse = GetCodecDescriptorResponse + +# GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC +class GetConfigurationDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetConfigurationDescriptorRequest = GetConfigurationDescriptorRequest + +# GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC +class GetConfigurationDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONFIG_FIELD_NUMBER: builtins.int + # config describes the application's sdk.Config + @property + def config(self) -> global___ConfigurationDescriptor: ... + def __init__(self, + *, + config : typing.Optional[global___ConfigurationDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"config",b"config"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"config",b"config"]) -> None: ... +global___GetConfigurationDescriptorResponse = GetConfigurationDescriptorResponse + +# GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC +class GetQueryServicesDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetQueryServicesDescriptorRequest = GetQueryServicesDescriptorRequest + +# GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC +class GetQueryServicesDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + QUERIES_FIELD_NUMBER: builtins.int + # queries provides information on the available queryable services + @property + def queries(self) -> global___QueryServicesDescriptor: ... + def __init__(self, + *, + queries : typing.Optional[global___QueryServicesDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"queries",b"queries"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"queries",b"queries"]) -> None: ... +global___GetQueryServicesDescriptorResponse = GetQueryServicesDescriptorResponse + +# GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC +class GetTxDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetTxDescriptorRequest = GetTxDescriptorRequest + +# GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC +class GetTxDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_FIELD_NUMBER: builtins.int + # tx provides information on msgs that can be forwarded to the application + # alongside the accepted transaction protobuf type + @property + def tx(self) -> global___TxDescriptor: ... + def __init__(self, + *, + tx : typing.Optional[global___TxDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> None: ... +global___GetTxDescriptorResponse = GetTxDescriptorResponse + +# QueryServicesDescriptor contains the list of cosmos-sdk queriable services +class QueryServicesDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + QUERY_SERVICES_FIELD_NUMBER: builtins.int + # query_services is a list of cosmos-sdk QueryServiceDescriptor + @property + def query_services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryServiceDescriptor]: ... + def __init__(self, + *, + query_services : typing.Optional[typing.Iterable[global___QueryServiceDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"query_services",b"query_services"]) -> None: ... +global___QueryServicesDescriptor = QueryServicesDescriptor + +# QueryServiceDescriptor describes a cosmos-sdk queryable service +class QueryServiceDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + IS_MODULE_FIELD_NUMBER: builtins.int + METHODS_FIELD_NUMBER: builtins.int + # fullname is the protobuf fullname of the service descriptor + fullname: typing.Text = ... + # is_module describes if this service is actually exposed by an application's module + is_module: builtins.bool = ... + # methods provides a list of query service methods + @property + def methods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryMethodDescriptor]: ... + def __init__(self, + *, + fullname : typing.Text = ..., + is_module : builtins.bool = ..., + methods : typing.Optional[typing.Iterable[global___QueryMethodDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fullname",b"fullname",u"is_module",b"is_module",u"methods",b"methods"]) -> None: ... +global___QueryServiceDescriptor = QueryServiceDescriptor + +# QueryMethodDescriptor describes a queryable method of a query service +# no other info is provided beside method name and tendermint queryable path +# because it would be redundant with the grpc reflection service +class QueryMethodDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + FULL_QUERY_PATH_FIELD_NUMBER: builtins.int + # name is the protobuf name (not fullname) of the method + name: typing.Text = ... + # full_query_path is the path that can be used to query + # this method via tendermint abci.Query + full_query_path: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + full_query_path : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"full_query_path",b"full_query_path",u"name",b"name"]) -> None: ... +global___QueryMethodDescriptor = QueryMethodDescriptor diff --git a/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.pyi b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.pyi new file mode 100644 index 0000000..3e3ac8b --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.pyi @@ -0,0 +1,92 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .reflection_pb2 import * +# ReflectionService defines a service for application reflection. +class ReflectionServiceStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # GetAuthnDescriptor returns information on how to authenticate transactions in the application + # NOTE: this RPC is still experimental and might be subject to breaking changes or removal in + # future releases of the cosmos-sdk. + GetAuthnDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetAuthnDescriptorRequest, + global___GetAuthnDescriptorResponse] = ... + + # GetChainDescriptor returns the description of the chain + GetChainDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetChainDescriptorRequest, + global___GetChainDescriptorResponse] = ... + + # GetCodecDescriptor returns the descriptor of the codec of the application + GetCodecDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetCodecDescriptorRequest, + global___GetCodecDescriptorResponse] = ... + + # GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application + GetConfigurationDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetConfigurationDescriptorRequest, + global___GetConfigurationDescriptorResponse] = ... + + # GetQueryServicesDescriptor returns the available gRPC queryable services of the application + GetQueryServicesDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetQueryServicesDescriptorRequest, + global___GetQueryServicesDescriptorResponse] = ... + + # GetTxDescriptor returns information on the used transaction object and available msgs that can be used + GetTxDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetTxDescriptorRequest, + global___GetTxDescriptorResponse] = ... + + +# ReflectionService defines a service for application reflection. +class ReflectionServiceServicer(metaclass=abc.ABCMeta): + # GetAuthnDescriptor returns information on how to authenticate transactions in the application + # NOTE: this RPC is still experimental and might be subject to breaking changes or removal in + # future releases of the cosmos-sdk. + @abc.abstractmethod + def GetAuthnDescriptor(self, + request: global___GetAuthnDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetAuthnDescriptorResponse: ... + + # GetChainDescriptor returns the description of the chain + @abc.abstractmethod + def GetChainDescriptor(self, + request: global___GetChainDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetChainDescriptorResponse: ... + + # GetCodecDescriptor returns the descriptor of the codec of the application + @abc.abstractmethod + def GetCodecDescriptor(self, + request: global___GetCodecDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetCodecDescriptorResponse: ... + + # GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application + @abc.abstractmethod + def GetConfigurationDescriptor(self, + request: global___GetConfigurationDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetConfigurationDescriptorResponse: ... + + # GetQueryServicesDescriptor returns the available gRPC queryable services of the application + @abc.abstractmethod + def GetQueryServicesDescriptor(self, + request: global___GetQueryServicesDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetQueryServicesDescriptorResponse: ... + + # GetTxDescriptor returns information on the used transaction object and available msgs that can be used + @abc.abstractmethod + def GetTxDescriptor(self, + request: global___GetTxDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetTxDescriptorResponse: ... + + +def add_ReflectionServiceServicer_to_server(servicer: ReflectionServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi new file mode 100644 index 0000000..ccee03f --- /dev/null +++ b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Snapshot contains Tendermint state sync snapshot info. +class Snapshot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + CHUNKS_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + height: builtins.int = ... + format: builtins.int = ... + chunks: builtins.int = ... + hash: builtins.bytes = ... + @property + def metadata(self) -> global___Metadata: ... + def __init__(self, + *, + height : builtins.int = ..., + format : builtins.int = ..., + chunks : builtins.int = ..., + hash : builtins.bytes = ..., + metadata : typing.Optional[global___Metadata] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunks",b"chunks",u"format",b"format",u"hash",b"hash",u"height",b"height",u"metadata",b"metadata"]) -> None: ... +global___Snapshot = Snapshot + +# Metadata contains SDK-specific snapshot metadata. +class Metadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHUNK_HASHES_FIELD_NUMBER: builtins.int + # SHA-256 chunk hashes + @property + def chunk_hashes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + chunk_hashes : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunk_hashes",b"chunk_hashes"]) -> None: ... +global___Metadata = Metadata diff --git a/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi new file mode 100644 index 0000000..5ccfeb9 --- /dev/null +++ b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .snapshot_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi new file mode 100644 index 0000000..279dd79 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi @@ -0,0 +1,63 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# CommitInfo defines commit information used by the multi-store when committing +# a version/height. +class CommitInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VERSION_FIELD_NUMBER: builtins.int + STORE_INFOS_FIELD_NUMBER: builtins.int + version: builtins.int = ... + @property + def store_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StoreInfo]: ... + def __init__(self, + *, + version : builtins.int = ..., + store_infos : typing.Optional[typing.Iterable[global___StoreInfo]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"store_infos",b"store_infos",u"version",b"version"]) -> None: ... +global___CommitInfo = CommitInfo + +# StoreInfo defines store-specific commit information. It contains a reference +# between a store name and the commit ID. +class StoreInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + COMMIT_ID_FIELD_NUMBER: builtins.int + name: typing.Text = ... + @property + def commit_id(self) -> global___CommitID: ... + def __init__(self, + *, + name : typing.Text = ..., + commit_id : typing.Optional[global___CommitID] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commit_id",b"commit_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commit_id",b"commit_id",u"name",b"name"]) -> None: ... +global___StoreInfo = StoreInfo + +# CommitID defines the committment information when a specific store is +# committed. +class CommitID(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VERSION_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + version: builtins.int = ... + hash: builtins.bytes = ... + def __init__(self, + *, + version : builtins.int = ..., + hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"version",b"version"]) -> None: ... +global___CommitID = CommitID diff --git a/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi new file mode 100644 index 0000000..a0687ed --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .commit_info_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/store/v1beta1/listening_pb2.pyi b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2.pyi new file mode 100644 index 0000000..015448f --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2.pyi @@ -0,0 +1,36 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) +# It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and +# Deletes +class StoreKVPair(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STORE_KEY_FIELD_NUMBER: builtins.int + DELETE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + # the store key for the KVStore this pair originates from + store_key: typing.Text = ... + # true indicates a delete operation, false indicates a set operation + delete: builtins.bool = ... + key: builtins.bytes = ... + value: builtins.bytes = ... + def __init__(self, + *, + store_key : typing.Text = ..., + delete : builtins.bool = ..., + key : builtins.bytes = ..., + value : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delete",b"delete",u"key",b"key",u"store_key",b"store_key",u"value",b"value"]) -> None: ... +global___StoreKVPair = StoreKVPair diff --git a/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.pyi b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.pyi new file mode 100644 index 0000000..43cd2f9 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .listening_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi new file mode 100644 index 0000000..38520f8 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi @@ -0,0 +1,63 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# SnapshotItem is an item contained in a rootmulti.Store snapshot. +class SnapshotItem(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STORE_FIELD_NUMBER: builtins.int + IAVL_FIELD_NUMBER: builtins.int + @property + def store(self) -> global___SnapshotStoreItem: ... + @property + def iavl(self) -> global___SnapshotIAVLItem: ... + def __init__(self, + *, + store : typing.Optional[global___SnapshotStoreItem] = ..., + iavl : typing.Optional[global___SnapshotIAVLItem] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"iavl",b"iavl",u"item",b"item",u"store",b"store"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"iavl",b"iavl",u"item",b"item",u"store",b"store"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"item",b"item"]) -> typing.Optional[typing_extensions.Literal["store","iavl"]]: ... +global___SnapshotItem = SnapshotItem + +# SnapshotStoreItem contains metadata about a snapshotted store. +class SnapshotStoreItem(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + name: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... +global___SnapshotStoreItem = SnapshotStoreItem + +# SnapshotIAVLItem is an exported IAVL node. +class SnapshotIAVLItem(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + value: builtins.bytes = ... + version: builtins.int = ... + height: builtins.int = ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + version : builtins.int = ..., + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"key",b"key",u"value",b"value",u"version",b"version"]) -> None: ... +global___SnapshotIAVLItem = SnapshotIAVLItem diff --git a/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi new file mode 100644 index 0000000..5ccfeb9 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .snapshot_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..8329206 --- /dev/null +++ b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi @@ -0,0 +1,271 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import tendermint.p2p.types_pb2 +import tendermint.types.block_pb2 +import tendermint.types.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. +class GetValidatorSetByHeightRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + height: builtins.int = ... + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + height : builtins.int = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___GetValidatorSetByHeightRequest = GetValidatorSetByHeightRequest + +# GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. +class GetValidatorSetByHeightResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_HEIGHT_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + block_height: builtins.int = ... + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + block_height : builtins.int = ..., + validators : typing.Optional[typing.Iterable[global___Validator]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_height",b"block_height",u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... +global___GetValidatorSetByHeightResponse = GetValidatorSetByHeightResponse + +# GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. +class GetLatestValidatorSetRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___GetLatestValidatorSetRequest = GetLatestValidatorSetRequest + +# GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. +class GetLatestValidatorSetResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_HEIGHT_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + block_height: builtins.int = ... + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + block_height : builtins.int = ..., + validators : typing.Optional[typing.Iterable[global___Validator]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_height",b"block_height",u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... +global___GetLatestValidatorSetResponse = GetLatestValidatorSetResponse + +# Validator is the type for the validator-set. +class Validator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + PUB_KEY_FIELD_NUMBER: builtins.int + VOTING_POWER_FIELD_NUMBER: builtins.int + PROPOSER_PRIORITY_FIELD_NUMBER: builtins.int + address: typing.Text = ... + @property + def pub_key(self) -> google.protobuf.any_pb2.Any: ... + voting_power: builtins.int = ... + proposer_priority: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + voting_power : builtins.int = ..., + proposer_priority : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"proposer_priority",b"proposer_priority",u"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... +global___Validator = Validator + +# GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. +class GetBlockByHeightRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + height: builtins.int = ... + def __init__(self, + *, + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... +global___GetBlockByHeightRequest = GetBlockByHeightRequest + +# GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. +class GetBlockByHeightResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + @property + def block_id(self) -> tendermint.types.types_pb2.BlockID: ... + @property + def block(self) -> tendermint.types.block_pb2.Block: ... + def __init__(self, + *, + block_id : typing.Optional[tendermint.types.types_pb2.BlockID] = ..., + block : typing.Optional[tendermint.types.block_pb2.Block] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> None: ... +global___GetBlockByHeightResponse = GetBlockByHeightResponse + +# GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. +class GetLatestBlockRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetLatestBlockRequest = GetLatestBlockRequest + +# GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. +class GetLatestBlockResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + @property + def block_id(self) -> tendermint.types.types_pb2.BlockID: ... + @property + def block(self) -> tendermint.types.block_pb2.Block: ... + def __init__(self, + *, + block_id : typing.Optional[tendermint.types.types_pb2.BlockID] = ..., + block : typing.Optional[tendermint.types.block_pb2.Block] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> None: ... +global___GetLatestBlockResponse = GetLatestBlockResponse + +# GetSyncingRequest is the request type for the Query/GetSyncing RPC method. +class GetSyncingRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetSyncingRequest = GetSyncingRequest + +# GetSyncingResponse is the response type for the Query/GetSyncing RPC method. +class GetSyncingResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SYNCING_FIELD_NUMBER: builtins.int + syncing: builtins.bool = ... + def __init__(self, + *, + syncing : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"syncing",b"syncing"]) -> None: ... +global___GetSyncingResponse = GetSyncingResponse + +# GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. +class GetNodeInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetNodeInfoRequest = GetNodeInfoRequest + +# GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method. +class GetNodeInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DEFAULT_NODE_INFO_FIELD_NUMBER: builtins.int + APPLICATION_VERSION_FIELD_NUMBER: builtins.int + @property + def default_node_info(self) -> tendermint.p2p.types_pb2.DefaultNodeInfo: ... + @property + def application_version(self) -> global___VersionInfo: ... + def __init__(self, + *, + default_node_info : typing.Optional[tendermint.p2p.types_pb2.DefaultNodeInfo] = ..., + application_version : typing.Optional[global___VersionInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"application_version",b"application_version",u"default_node_info",b"default_node_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"application_version",b"application_version",u"default_node_info",b"default_node_info"]) -> None: ... +global___GetNodeInfoResponse = GetNodeInfoResponse + +# VersionInfo is the type for the GetNodeInfoResponse message. +class VersionInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + APP_NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + GIT_COMMIT_FIELD_NUMBER: builtins.int + BUILD_TAGS_FIELD_NUMBER: builtins.int + GO_VERSION_FIELD_NUMBER: builtins.int + BUILD_DEPS_FIELD_NUMBER: builtins.int + COSMOS_SDK_VERSION_FIELD_NUMBER: builtins.int + name: typing.Text = ... + app_name: typing.Text = ... + version: typing.Text = ... + git_commit: typing.Text = ... + build_tags: typing.Text = ... + go_version: typing.Text = ... + @property + def build_deps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Module]: ... + cosmos_sdk_version: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + app_name : typing.Text = ..., + version : typing.Text = ..., + git_commit : typing.Text = ..., + build_tags : typing.Text = ..., + go_version : typing.Text = ..., + build_deps : typing.Optional[typing.Iterable[global___Module]] = ..., + cosmos_sdk_version : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_name",b"app_name",u"build_deps",b"build_deps",u"build_tags",b"build_tags",u"cosmos_sdk_version",b"cosmos_sdk_version",u"git_commit",b"git_commit",u"go_version",b"go_version",u"name",b"name",u"version",b"version"]) -> None: ... +global___VersionInfo = VersionInfo + +# Module is the type for VersionInfo +class Module(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + SUM_FIELD_NUMBER: builtins.int + # module path + path: typing.Text = ... + # module version + version: typing.Text = ... + # checksum + sum: typing.Text = ... + def __init__(self, + *, + path : typing.Text = ..., + version : typing.Text = ..., + sum : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"path",b"path",u"sum",b"sum",u"version",b"version"]) -> None: ... +global___Module = Module diff --git a/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..902ec91 --- /dev/null +++ b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,88 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Service defines the gRPC querier service for tendermint queries. +class ServiceStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # GetNodeInfo queries the current node info. + GetNodeInfo:grpc.UnaryUnaryMultiCallable[ + global___GetNodeInfoRequest, + global___GetNodeInfoResponse] = ... + + # GetSyncing queries node syncing. + GetSyncing:grpc.UnaryUnaryMultiCallable[ + global___GetSyncingRequest, + global___GetSyncingResponse] = ... + + # GetLatestBlock returns the latest block. + GetLatestBlock:grpc.UnaryUnaryMultiCallable[ + global___GetLatestBlockRequest, + global___GetLatestBlockResponse] = ... + + # GetBlockByHeight queries block for given height. + GetBlockByHeight:grpc.UnaryUnaryMultiCallable[ + global___GetBlockByHeightRequest, + global___GetBlockByHeightResponse] = ... + + # GetLatestValidatorSet queries latest validator-set. + GetLatestValidatorSet:grpc.UnaryUnaryMultiCallable[ + global___GetLatestValidatorSetRequest, + global___GetLatestValidatorSetResponse] = ... + + # GetValidatorSetByHeight queries validator-set at a given height. + GetValidatorSetByHeight:grpc.UnaryUnaryMultiCallable[ + global___GetValidatorSetByHeightRequest, + global___GetValidatorSetByHeightResponse] = ... + + +# Service defines the gRPC querier service for tendermint queries. +class ServiceServicer(metaclass=abc.ABCMeta): + # GetNodeInfo queries the current node info. + @abc.abstractmethod + def GetNodeInfo(self, + request: global___GetNodeInfoRequest, + context: grpc.ServicerContext, + ) -> global___GetNodeInfoResponse: ... + + # GetSyncing queries node syncing. + @abc.abstractmethod + def GetSyncing(self, + request: global___GetSyncingRequest, + context: grpc.ServicerContext, + ) -> global___GetSyncingResponse: ... + + # GetLatestBlock returns the latest block. + @abc.abstractmethod + def GetLatestBlock(self, + request: global___GetLatestBlockRequest, + context: grpc.ServicerContext, + ) -> global___GetLatestBlockResponse: ... + + # GetBlockByHeight queries block for given height. + @abc.abstractmethod + def GetBlockByHeight(self, + request: global___GetBlockByHeightRequest, + context: grpc.ServicerContext, + ) -> global___GetBlockByHeightResponse: ... + + # GetLatestValidatorSet queries latest validator-set. + @abc.abstractmethod + def GetLatestValidatorSet(self, + request: global___GetLatestValidatorSetRequest, + context: grpc.ServicerContext, + ) -> global___GetLatestValidatorSetResponse: ... + + # GetValidatorSetByHeight queries validator-set at a given height. + @abc.abstractmethod + def GetValidatorSetByHeight(self, + request: global___GetValidatorSetByHeightRequest, + context: grpc.ServicerContext, + ) -> global___GetValidatorSetByHeightResponse: ... + + +def add_ServiceServicer_to_server(servicer: ServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi b/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi new file mode 100644 index 0000000..2aca66d --- /dev/null +++ b/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi @@ -0,0 +1,71 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Coin defines a token with a denomination and an amount. +# +# NOTE: The amount field is an Int which implements the custom method +# signatures required by gogoproto. +class Coin(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + denom: typing.Text = ... + amount: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + amount : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom"]) -> None: ... +global___Coin = Coin + +# DecCoin defines a token with a denomination and a decimal amount. +# +# NOTE: The amount field is an Dec which implements the custom method +# signatures required by gogoproto. +class DecCoin(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + denom: typing.Text = ... + amount: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + amount : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom"]) -> None: ... +global___DecCoin = DecCoin + +# IntProto defines a Protobuf wrapper around an Int object. +class IntProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INT_FIELD_NUMBER: builtins.int + int: typing.Text = ... + def __init__(self, + *, + int : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"int",b"int"]) -> None: ... +global___IntProto = IntProto + +# DecProto defines a Protobuf wrapper around a Dec object. +class DecProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DEC_FIELD_NUMBER: builtins.int + dec: typing.Text = ... + def __init__(self, + *, + dec : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"dec",b"dec"]) -> None: ... +global___DecProto = DecProto diff --git a/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi b/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi new file mode 100644 index 0000000..31aa72f --- /dev/null +++ b/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .coin_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi b/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi new file mode 100644 index 0000000..f9db203 --- /dev/null +++ b/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi @@ -0,0 +1,55 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Capability defines an implementation of an object capability. The index +# provided to a Capability must be globally unique. +class Capability(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + index: builtins.int = ... + def __init__(self, + *, + index : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index"]) -> None: ... +global___Capability = Capability + +# Owner defines a single capability owner. An owner is defined by the name of +# capability and the module name. +class Owner(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODULE_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + module: typing.Text = ... + name: typing.Text = ... + def __init__(self, + *, + module : typing.Text = ..., + name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"module",b"module",u"name",b"name"]) -> None: ... +global___Owner = Owner + +# CapabilityOwners defines a set of owners of a single Capability. The set of +# owners must be unique. +class CapabilityOwners(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OWNERS_FIELD_NUMBER: builtins.int + @property + def owners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Owner]: ... + def __init__(self, + *, + owners : typing.Optional[typing.Iterable[global___Owner]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"owners",b"owners"]) -> None: ... +global___CapabilityOwners = CapabilityOwners diff --git a/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi b/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi new file mode 100644 index 0000000..8fa6a5d --- /dev/null +++ b/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .capability_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..7183e2b --- /dev/null +++ b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi @@ -0,0 +1,51 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.capability.v1beta1.capability_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisOwners defines the capability owners with their corresponding index. +class GenesisOwners(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + INDEX_OWNERS_FIELD_NUMBER: builtins.int + # index is the index of the capability owner. + index: builtins.int = ... + # index_owners are the owners at the given index. + @property + def index_owners(self) -> cosmos.capability.v1beta1.capability_pb2.CapabilityOwners: ... + def __init__(self, + *, + index : builtins.int = ..., + index_owners : typing.Optional[cosmos.capability.v1beta1.capability_pb2.CapabilityOwners] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"index_owners",b"index_owners"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"index_owners",b"index_owners"]) -> None: ... +global___GenesisOwners = GenesisOwners + +# GenesisState defines the capability module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + OWNERS_FIELD_NUMBER: builtins.int + # index is the capability global index. + index: builtins.int = ... + # owners represents a map from index to owners of the capability index + # index key is string to allow amino marshalling. + @property + def owners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GenesisOwners]: ... + def __init__(self, + *, + index : builtins.int = ..., + owners : typing.Optional[typing.Iterable[global___GenesisOwners]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"owners",b"owners"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..6921487 --- /dev/null +++ b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the crisis module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSTANT_FEE_FIELD_NUMBER: builtins.int + # constant_fee is the fee used to verify the invariant in the crisis + # module. + @property + def constant_fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + constant_fee : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"constant_fee",b"constant_fee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"constant_fee",b"constant_fee"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..ff074f8 --- /dev/null +++ b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi @@ -0,0 +1,36 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgVerifyInvariant represents a message to verify a particular invariance. +class MsgVerifyInvariant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SENDER_FIELD_NUMBER: builtins.int + INVARIANT_MODULE_NAME_FIELD_NUMBER: builtins.int + INVARIANT_ROUTE_FIELD_NUMBER: builtins.int + sender: typing.Text = ... + invariant_module_name: typing.Text = ... + invariant_route: typing.Text = ... + def __init__(self, + *, + sender : typing.Text = ..., + invariant_module_name : typing.Text = ..., + invariant_route : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"invariant_module_name",b"invariant_module_name",u"invariant_route",b"invariant_route",u"sender",b"sender"]) -> None: ... +global___MsgVerifyInvariant = MsgVerifyInvariant + +# MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. +class MsgVerifyInvariantResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgVerifyInvariantResponse = MsgVerifyInvariantResponse diff --git a/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..87c35bc --- /dev/null +++ b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the bank Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # VerifyInvariant defines a method to verify a particular invariance. + VerifyInvariant:grpc.UnaryUnaryMultiCallable[ + global___MsgVerifyInvariant, + global___MsgVerifyInvariantResponse] = ... + + +# Msg defines the bank Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # VerifyInvariant defines a method to verify a particular invariance. + @abc.abstractmethod + def VerifyInvariant(self, + request: global___MsgVerifyInvariant, + context: grpc.ServicerContext, + ) -> global___MsgVerifyInvariantResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi b/pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi new file mode 100644 index 0000000..1e3152c --- /dev/null +++ b/pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi @@ -0,0 +1,39 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# PubKey is an ed25519 public key for handling Tendermint keys in SDK. +# It's needed for Any serialization and SDK compatibility. +# It must not be used in a non Tendermint key context because it doesn't implement +# ADR-28. Nevertheless, you will like to use ed25519 in app user level +# then you must create a new proto message and follow ADR-28 for Address construction. +class PubKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... +global___PubKey = PubKey + +# Deprecated: PrivKey defines a ed25519 private key. +# NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. +class PrivKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... +global___PrivKey = PrivKey diff --git a/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi b/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi new file mode 100644 index 0000000..36a6ff9 --- /dev/null +++ b/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi @@ -0,0 +1,31 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# LegacyAminoPubKey specifies a public key type +# which nests multiple public keys and a threshold, +# it uses legacy amino address rules. +class LegacyAminoPubKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + THRESHOLD_FIELD_NUMBER: builtins.int + PUBLIC_KEYS_FIELD_NUMBER: builtins.int + threshold: builtins.int = ... + @property + def public_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + threshold : builtins.int = ..., + public_keys : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"public_keys",b"public_keys",u"threshold",b"threshold"]) -> None: ... +global___LegacyAminoPubKey = LegacyAminoPubKey diff --git a/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi new file mode 100644 index 0000000..e4db3ce --- /dev/null +++ b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi @@ -0,0 +1,45 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. +# See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers +# signed and with which modes. +class MultiSignature(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURES_FIELD_NUMBER: builtins.int + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + signatures : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signatures",b"signatures"]) -> None: ... +global___MultiSignature = MultiSignature + +# CompactBitArray is an implementation of a space efficient bit array. +# This is used to ensure that the encoded data takes up a minimal amount of +# space after proto encoding. +# This is not thread safe, and is not intended for concurrent usage. +class CompactBitArray(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXTRA_BITS_STORED_FIELD_NUMBER: builtins.int + ELEMS_FIELD_NUMBER: builtins.int + extra_bits_stored: builtins.int = ... + elems: builtins.bytes = ... + def __init__(self, + *, + extra_bits_stored : builtins.int = ..., + elems : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"elems",b"elems",u"extra_bits_stored",b"extra_bits_stored"]) -> None: ... +global___CompactBitArray = CompactBitArray diff --git a/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi new file mode 100644 index 0000000..ff338b4 --- /dev/null +++ b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .multisig_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi new file mode 100644 index 0000000..fd36261 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi @@ -0,0 +1,38 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# PubKey defines a secp256k1 public key +# Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte +# if the y-coordinate is the lexicographically largest of the two associated with +# the x-coordinate. Otherwise the first byte is a 0x03. +# This prefix is followed with the x-coordinate. +class PubKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... +global___PubKey = PubKey + +# PrivKey defines a secp256k1 private key. +class PrivKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... +global___PrivKey = PrivKey diff --git a/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/secp256r1/keys_pb2.pyi b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2.pyi new file mode 100644 index 0000000..1a4f8c7 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2.pyi @@ -0,0 +1,37 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# PubKey defines a secp256r1 ECDSA public key. +class PubKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + # Point on secp256r1 curve in a compressed representation as specified in section + # 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 + key: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... +global___PubKey = PubKey + +# PrivKey defines a secp256r1 ECDSA private key. +class PrivKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SECRET_FIELD_NUMBER: builtins.int + # secret number serialized using big-endian encoding + secret: builtins.bytes = ... + def __init__(self, + *, + secret : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"secret",b"secret"]) -> None: ... +global___PrivKey = PrivKey diff --git a/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi new file mode 100644 index 0000000..bbc8f5f --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi @@ -0,0 +1,240 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Params defines the set of params for the distribution module. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMUNITY_TAX_FIELD_NUMBER: builtins.int + BASE_PROPOSER_REWARD_FIELD_NUMBER: builtins.int + BONUS_PROPOSER_REWARD_FIELD_NUMBER: builtins.int + WITHDRAW_ADDR_ENABLED_FIELD_NUMBER: builtins.int + community_tax: typing.Text = ... + base_proposer_reward: typing.Text = ... + bonus_proposer_reward: typing.Text = ... + withdraw_addr_enabled: builtins.bool = ... + def __init__(self, + *, + community_tax : typing.Text = ..., + base_proposer_reward : typing.Text = ..., + bonus_proposer_reward : typing.Text = ..., + withdraw_addr_enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_proposer_reward",b"base_proposer_reward",u"bonus_proposer_reward",b"bonus_proposer_reward",u"community_tax",b"community_tax",u"withdraw_addr_enabled",b"withdraw_addr_enabled"]) -> None: ... +global___Params = Params + +# ValidatorHistoricalRewards represents historical rewards for a validator. +# Height is implicit within the store key. +# Cumulative reward ratio is the sum from the zeroeth period +# until this period of rewards / tokens, per the spec. +# The reference count indicates the number of objects +# which might need to reference this historical entry at any point. +# ReferenceCount = +# number of outstanding delegations which ended the associated period (and +# might need to read that record) +# + number of slashes which ended the associated period (and might need to +# read that record) +# + one per validator for the zeroeth period, set on initialization +class ValidatorHistoricalRewards(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CUMULATIVE_REWARD_RATIO_FIELD_NUMBER: builtins.int + REFERENCE_COUNT_FIELD_NUMBER: builtins.int + @property + def cumulative_reward_ratio(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + reference_count: builtins.int = ... + def __init__(self, + *, + cumulative_reward_ratio : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + reference_count : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"cumulative_reward_ratio",b"cumulative_reward_ratio",u"reference_count",b"reference_count"]) -> None: ... +global___ValidatorHistoricalRewards = ValidatorHistoricalRewards + +# ValidatorCurrentRewards represents current rewards and current +# period for a validator kept as a running counter and incremented +# each block as long as the validator's tokens remain constant. +class ValidatorCurrentRewards(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REWARDS_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + period: builtins.int = ... + def __init__(self, + *, + rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + period : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"period",b"period",u"rewards",b"rewards"]) -> None: ... +global___ValidatorCurrentRewards = ValidatorCurrentRewards + +# ValidatorAccumulatedCommission represents accumulated commission +# for a validator kept as a running counter, can be withdrawn at any time. +class ValidatorAccumulatedCommission(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMISSION_FIELD_NUMBER: builtins.int + @property + def commission(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + commission : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> None: ... +global___ValidatorAccumulatedCommission = ValidatorAccumulatedCommission + +# ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards +# for a validator inexpensive to track, allows simple sanity checks. +class ValidatorOutstandingRewards(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REWARDS_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... +global___ValidatorOutstandingRewards = ValidatorOutstandingRewards + +# ValidatorSlashEvent represents a validator slash event. +# Height is implicit within the store key. +# This is needed to calculate appropriate amount of staking tokens +# for delegations which are withdrawn after a slash has occurred. +class ValidatorSlashEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_PERIOD_FIELD_NUMBER: builtins.int + FRACTION_FIELD_NUMBER: builtins.int + validator_period: builtins.int = ... + fraction: typing.Text = ... + def __init__(self, + *, + validator_period : builtins.int = ..., + fraction : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fraction",b"fraction",u"validator_period",b"validator_period"]) -> None: ... +global___ValidatorSlashEvent = ValidatorSlashEvent + +# ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. +class ValidatorSlashEvents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_SLASH_EVENTS_FIELD_NUMBER: builtins.int + @property + def validator_slash_events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorSlashEvent]: ... + def __init__(self, + *, + validator_slash_events : typing.Optional[typing.Iterable[global___ValidatorSlashEvent]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_slash_events",b"validator_slash_events"]) -> None: ... +global___ValidatorSlashEvents = ValidatorSlashEvents + +# FeePool is the global fee pool for distribution. +class FeePool(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMUNITY_POOL_FIELD_NUMBER: builtins.int + @property + def community_pool(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + community_pool : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"community_pool",b"community_pool"]) -> None: ... +global___FeePool = FeePool + +# CommunityPoolSpendProposal details a proposal for use of community funds, +# together with how many coins are proposed to be spent, and to which +# recipient account. +class CommunityPoolSpendProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + RECIPIENT_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + recipient: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + recipient : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"description",b"description",u"recipient",b"recipient",u"title",b"title"]) -> None: ... +global___CommunityPoolSpendProposal = CommunityPoolSpendProposal + +# DelegatorStartingInfo represents the starting info for a delegator reward +# period. It tracks the previous validator period, the delegation's amount of +# staking token, and the creation height (to check later on if any slashes have +# occurred). NOTE: Even though validators are slashed to whole staking tokens, +# the delegators within the validator may be left with less than a full token, +# thus sdk.Dec is used. +class DelegatorStartingInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PREVIOUS_PERIOD_FIELD_NUMBER: builtins.int + STAKE_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + previous_period: builtins.int = ... + stake: typing.Text = ... + height: builtins.int = ... + def __init__(self, + *, + previous_period : builtins.int = ..., + stake : typing.Text = ..., + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"previous_period",b"previous_period",u"stake",b"stake"]) -> None: ... +global___DelegatorStartingInfo = DelegatorStartingInfo + +# DelegationDelegatorReward represents the properties +# of a delegator's delegation reward. +class DelegationDelegatorReward(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + REWARD_FIELD_NUMBER: builtins.int + validator_address: typing.Text = ... + @property + def reward(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + reward : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"reward",b"reward",u"validator_address",b"validator_address"]) -> None: ... +global___DelegationDelegatorReward = DelegationDelegatorReward + +# CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal +# with a deposit +class CommunityPoolSpendProposalWithDeposit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + RECIPIENT_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + DEPOSIT_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + recipient: typing.Text = ... + amount: typing.Text = ... + deposit: typing.Text = ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + recipient : typing.Text = ..., + amount : typing.Text = ..., + deposit : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"deposit",b"deposit",u"description",b"description",u"recipient",b"recipient",u"title",b"title"]) -> None: ... +global___CommunityPoolSpendProposalWithDeposit = CommunityPoolSpendProposalWithDeposit diff --git a/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi new file mode 100644 index 0000000..2e709e7 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .distribution_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..81b4c3c --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi @@ -0,0 +1,223 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import cosmos.distribution.v1beta1.distribution_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# DelegatorWithdrawInfo is the address for where distributions rewards are +# withdrawn to by default this struct is only used at genesis to feed in +# default withdraw addresses. +class DelegatorWithdrawInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address is the address of the delegator. + delegator_address: typing.Text = ... + # withdraw_address is the address to withdraw the delegation rewards to. + withdraw_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + withdraw_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"withdraw_address",b"withdraw_address"]) -> None: ... +global___DelegatorWithdrawInfo = DelegatorWithdrawInfo + +# ValidatorOutstandingRewardsRecord is used for import/export via genesis json. +class ValidatorOutstandingRewardsRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + OUTSTANDING_REWARDS_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # outstanding_rewards represents the oustanding rewards of a validator. + @property + def outstanding_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + outstanding_rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"outstanding_rewards",b"outstanding_rewards",u"validator_address",b"validator_address"]) -> None: ... +global___ValidatorOutstandingRewardsRecord = ValidatorOutstandingRewardsRecord + +# ValidatorAccumulatedCommissionRecord is used for import / export via genesis +# json. +class ValidatorAccumulatedCommissionRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + ACCUMULATED_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # accumulated is the accumulated commission of a validator. + @property + def accumulated(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + accumulated : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"accumulated",b"accumulated"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"accumulated",b"accumulated",u"validator_address",b"validator_address"]) -> None: ... +global___ValidatorAccumulatedCommissionRecord = ValidatorAccumulatedCommissionRecord + +# ValidatorHistoricalRewardsRecord is used for import / export via genesis +# json. +class ValidatorHistoricalRewardsRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + REWARDS_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # period defines the period the historical rewards apply to. + period: builtins.int = ... + # rewards defines the historical rewards of a validator. + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorHistoricalRewards: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + period : builtins.int = ..., + rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorHistoricalRewards] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"period",b"period",u"rewards",b"rewards",u"validator_address",b"validator_address"]) -> None: ... +global___ValidatorHistoricalRewardsRecord = ValidatorHistoricalRewardsRecord + +# ValidatorCurrentRewardsRecord is used for import / export via genesis json. +class ValidatorCurrentRewardsRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + REWARDS_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # rewards defines the current rewards of a validator. + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorCurrentRewards: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorCurrentRewards] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards",u"validator_address",b"validator_address"]) -> None: ... +global___ValidatorCurrentRewardsRecord = ValidatorCurrentRewardsRecord + +# DelegatorStartingInfoRecord used for import / export via genesis json. +class DelegatorStartingInfoRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + STARTING_INFO_FIELD_NUMBER: builtins.int + # delegator_address is the address of the delegator. + delegator_address: typing.Text = ... + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # starting_info defines the starting info of a delegator. + @property + def starting_info(self) -> cosmos.distribution.v1beta1.distribution_pb2.DelegatorStartingInfo: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + starting_info : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.DelegatorStartingInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"starting_info",b"starting_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"starting_info",b"starting_info",u"validator_address",b"validator_address"]) -> None: ... +global___DelegatorStartingInfoRecord = DelegatorStartingInfoRecord + +# ValidatorSlashEventRecord is used for import / export via genesis json. +class ValidatorSlashEventRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + VALIDATOR_SLASH_EVENT_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # height defines the block height at which the slash event occured. + height: builtins.int = ... + # period is the period of the slash event. + period: builtins.int = ... + # validator_slash_event describes the slash event. + @property + def validator_slash_event(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + height : builtins.int = ..., + period : builtins.int = ..., + validator_slash_event : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator_slash_event",b"validator_slash_event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"period",b"period",u"validator_address",b"validator_address",u"validator_slash_event",b"validator_slash_event"]) -> None: ... +global___ValidatorSlashEventRecord = ValidatorSlashEventRecord + +# GenesisState defines the distribution module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + FEE_POOL_FIELD_NUMBER: builtins.int + DELEGATOR_WITHDRAW_INFOS_FIELD_NUMBER: builtins.int + PREVIOUS_PROPOSER_FIELD_NUMBER: builtins.int + OUTSTANDING_REWARDS_FIELD_NUMBER: builtins.int + VALIDATOR_ACCUMULATED_COMMISSIONS_FIELD_NUMBER: builtins.int + VALIDATOR_HISTORICAL_REWARDS_FIELD_NUMBER: builtins.int + VALIDATOR_CURRENT_REWARDS_FIELD_NUMBER: builtins.int + DELEGATOR_STARTING_INFOS_FIELD_NUMBER: builtins.int + VALIDATOR_SLASH_EVENTS_FIELD_NUMBER: builtins.int + # params defines all the paramaters of the module. + @property + def params(self) -> cosmos.distribution.v1beta1.distribution_pb2.Params: ... + # fee_pool defines the fee pool at genesis. + @property + def fee_pool(self) -> cosmos.distribution.v1beta1.distribution_pb2.FeePool: ... + # fee_pool defines the delegator withdraw infos at genesis. + @property + def delegator_withdraw_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DelegatorWithdrawInfo]: ... + # fee_pool defines the previous proposer at genesis. + previous_proposer: typing.Text = ... + # fee_pool defines the outstanding rewards of all validators at genesis. + @property + def outstanding_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorOutstandingRewardsRecord]: ... + # fee_pool defines the accumulated commisions of all validators at genesis. + @property + def validator_accumulated_commissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorAccumulatedCommissionRecord]: ... + # fee_pool defines the historical rewards of all validators at genesis. + @property + def validator_historical_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorHistoricalRewardsRecord]: ... + # fee_pool defines the current rewards of all validators at genesis. + @property + def validator_current_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorCurrentRewardsRecord]: ... + # fee_pool defines the delegator starting infos at genesis. + @property + def delegator_starting_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DelegatorStartingInfoRecord]: ... + # fee_pool defines the validator slash events at genesis. + @property + def validator_slash_events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorSlashEventRecord]: ... + def __init__(self, + *, + params : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.Params] = ..., + fee_pool : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.FeePool] = ..., + delegator_withdraw_infos : typing.Optional[typing.Iterable[global___DelegatorWithdrawInfo]] = ..., + previous_proposer : typing.Text = ..., + outstanding_rewards : typing.Optional[typing.Iterable[global___ValidatorOutstandingRewardsRecord]] = ..., + validator_accumulated_commissions : typing.Optional[typing.Iterable[global___ValidatorAccumulatedCommissionRecord]] = ..., + validator_historical_rewards : typing.Optional[typing.Iterable[global___ValidatorHistoricalRewardsRecord]] = ..., + validator_current_rewards : typing.Optional[typing.Iterable[global___ValidatorCurrentRewardsRecord]] = ..., + delegator_starting_infos : typing.Optional[typing.Iterable[global___DelegatorStartingInfoRecord]] = ..., + validator_slash_events : typing.Optional[typing.Iterable[global___ValidatorSlashEventRecord]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"fee_pool",b"fee_pool",u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_starting_infos",b"delegator_starting_infos",u"delegator_withdraw_infos",b"delegator_withdraw_infos",u"fee_pool",b"fee_pool",u"outstanding_rewards",b"outstanding_rewards",u"params",b"params",u"previous_proposer",b"previous_proposer",u"validator_accumulated_commissions",b"validator_accumulated_commissions",u"validator_current_rewards",b"validator_current_rewards",u"validator_historical_rewards",b"validator_historical_rewards",u"validator_slash_events",b"validator_slash_events"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..964d1f5 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi @@ -0,0 +1,292 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.base.v1beta1.coin_pb2 +import cosmos.distribution.v1beta1.distribution_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryParamsRequest is the request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is the response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + # params defines the parameters of the module. + @property + def params(self) -> cosmos.distribution.v1beta1.distribution_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse + +# QueryValidatorOutstandingRewardsRequest is the request type for the +# Query/ValidatorOutstandingRewards RPC method. +class QueryValidatorOutstandingRewardsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # validator_address defines the validator address to query for. + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryValidatorOutstandingRewardsRequest = QueryValidatorOutstandingRewardsRequest + +# QueryValidatorOutstandingRewardsResponse is the response type for the +# Query/ValidatorOutstandingRewards RPC method. +class QueryValidatorOutstandingRewardsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REWARDS_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorOutstandingRewards: ... + def __init__(self, + *, + rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorOutstandingRewards] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... +global___QueryValidatorOutstandingRewardsResponse = QueryValidatorOutstandingRewardsResponse + +# QueryValidatorCommissionRequest is the request type for the +# Query/ValidatorCommission RPC method +class QueryValidatorCommissionRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # validator_address defines the validator address to query for. + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryValidatorCommissionRequest = QueryValidatorCommissionRequest + +# QueryValidatorCommissionResponse is the response type for the +# Query/ValidatorCommission RPC method +class QueryValidatorCommissionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMISSION_FIELD_NUMBER: builtins.int + # commission defines the commision the validator received. + @property + def commission(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission: ... + def __init__(self, + *, + commission : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> None: ... +global___QueryValidatorCommissionResponse = QueryValidatorCommissionResponse + +# QueryValidatorSlashesRequest is the request type for the +# Query/ValidatorSlashes RPC method +class QueryValidatorSlashesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + STARTING_HEIGHT_FIELD_NUMBER: builtins.int + ENDING_HEIGHT_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validator_address defines the validator address to query for. + validator_address: typing.Text = ... + # starting_height defines the optional starting height to query the slashes. + starting_height: builtins.int = ... + # starting_height defines the optional ending height to query the slashes. + ending_height: builtins.int = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + starting_height : builtins.int = ..., + ending_height : builtins.int = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ending_height",b"ending_height",u"pagination",b"pagination",u"starting_height",b"starting_height",u"validator_address",b"validator_address"]) -> None: ... +global___QueryValidatorSlashesRequest = QueryValidatorSlashesRequest + +# QueryValidatorSlashesResponse is the response type for the +# Query/ValidatorSlashes RPC method. +class QueryValidatorSlashesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SLASHES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # slashes defines the slashes the validator received. + @property + def slashes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + slashes : typing.Optional[typing.Iterable[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"slashes",b"slashes"]) -> None: ... +global___QueryValidatorSlashesResponse = QueryValidatorSlashesResponse + +# QueryDelegationRewardsRequest is the request type for the +# Query/DelegationRewards RPC method. +class QueryDelegationRewardsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address defines the delegator address to query for. + delegator_address: typing.Text = ... + # validator_address defines the validator address to query for. + validator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___QueryDelegationRewardsRequest = QueryDelegationRewardsRequest + +# QueryDelegationRewardsResponse is the response type for the +# Query/DelegationRewards RPC method. +class QueryDelegationRewardsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REWARDS_FIELD_NUMBER: builtins.int + # rewards defines the rewards accrued by a delegation. + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... +global___QueryDelegationRewardsResponse = QueryDelegationRewardsResponse + +# QueryDelegationTotalRewardsRequest is the request type for the +# Query/DelegationTotalRewards RPC method. +class QueryDelegationTotalRewardsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address defines the delegator address to query for. + delegator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... +global___QueryDelegationTotalRewardsRequest = QueryDelegationTotalRewardsRequest + +# QueryDelegationTotalRewardsResponse is the response type for the +# Query/DelegationTotalRewards RPC method. +class QueryDelegationTotalRewardsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REWARDS_FIELD_NUMBER: builtins.int + TOTAL_FIELD_NUMBER: builtins.int + # rewards defines all the rewards accrued by a delegator. + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.distribution.v1beta1.distribution_pb2.DelegationDelegatorReward]: ... + # total defines the sum of all the rewards. + @property + def total(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + rewards : typing.Optional[typing.Iterable[cosmos.distribution.v1beta1.distribution_pb2.DelegationDelegatorReward]] = ..., + total : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards",u"total",b"total"]) -> None: ... +global___QueryDelegationTotalRewardsResponse = QueryDelegationTotalRewardsResponse + +# QueryDelegatorValidatorsRequest is the request type for the +# Query/DelegatorValidators RPC method. +class QueryDelegatorValidatorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address defines the delegator address to query for. + delegator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... +global___QueryDelegatorValidatorsRequest = QueryDelegatorValidatorsRequest + +# QueryDelegatorValidatorsResponse is the response type for the +# Query/DelegatorValidators RPC method. +class QueryDelegatorValidatorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + # validators defines the validators a delegator is delegating for. + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validators",b"validators"]) -> None: ... +global___QueryDelegatorValidatorsResponse = QueryDelegatorValidatorsResponse + +# QueryDelegatorWithdrawAddressRequest is the request type for the +# Query/DelegatorWithdrawAddress RPC method. +class QueryDelegatorWithdrawAddressRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address defines the delegator address to query for. + delegator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... +global___QueryDelegatorWithdrawAddressRequest = QueryDelegatorWithdrawAddressRequest + +# QueryDelegatorWithdrawAddressResponse is the response type for the +# Query/DelegatorWithdrawAddress RPC method. +class QueryDelegatorWithdrawAddressResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + # withdraw_address defines the delegator address to query for. + withdraw_address: typing.Text = ... + def __init__(self, + *, + withdraw_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"withdraw_address",b"withdraw_address"]) -> None: ... +global___QueryDelegatorWithdrawAddressResponse = QueryDelegatorWithdrawAddressResponse + +# QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC +# method. +class QueryCommunityPoolRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryCommunityPoolRequest = QueryCommunityPoolRequest + +# QueryCommunityPoolResponse is the response type for the Query/CommunityPool +# RPC method. +class QueryCommunityPoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + POOL_FIELD_NUMBER: builtins.int + # pool defines community pool's coins. + @property + def pool(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + pool : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> None: ... +global___QueryCommunityPoolResponse = QueryCommunityPoolResponse diff --git a/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..a4230bb --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,126 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service for distribution module. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Params queries params of the distribution module. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # ValidatorOutstandingRewards queries rewards of a validator address. + ValidatorOutstandingRewards:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorOutstandingRewardsRequest, + global___QueryValidatorOutstandingRewardsResponse] = ... + + # ValidatorCommission queries accumulated commission for a validator. + ValidatorCommission:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorCommissionRequest, + global___QueryValidatorCommissionResponse] = ... + + # ValidatorSlashes queries slash events of a validator. + ValidatorSlashes:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorSlashesRequest, + global___QueryValidatorSlashesResponse] = ... + + # DelegationRewards queries the total rewards accrued by a delegation. + DelegationRewards:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegationRewardsRequest, + global___QueryDelegationRewardsResponse] = ... + + # DelegationTotalRewards queries the total rewards accrued by a each + # validator. + DelegationTotalRewards:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegationTotalRewardsRequest, + global___QueryDelegationTotalRewardsResponse] = ... + + # DelegatorValidators queries the validators of a delegator. + DelegatorValidators:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorValidatorsRequest, + global___QueryDelegatorValidatorsResponse] = ... + + # DelegatorWithdrawAddress queries withdraw address of a delegator. + DelegatorWithdrawAddress:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorWithdrawAddressRequest, + global___QueryDelegatorWithdrawAddressResponse] = ... + + # CommunityPool queries the community pool coins. + CommunityPool:grpc.UnaryUnaryMultiCallable[ + global___QueryCommunityPoolRequest, + global___QueryCommunityPoolResponse] = ... + + +# Query defines the gRPC querier service for distribution module. +class QueryServicer(metaclass=abc.ABCMeta): + # Params queries params of the distribution module. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # ValidatorOutstandingRewards queries rewards of a validator address. + @abc.abstractmethod + def ValidatorOutstandingRewards(self, + request: global___QueryValidatorOutstandingRewardsRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorOutstandingRewardsResponse: ... + + # ValidatorCommission queries accumulated commission for a validator. + @abc.abstractmethod + def ValidatorCommission(self, + request: global___QueryValidatorCommissionRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorCommissionResponse: ... + + # ValidatorSlashes queries slash events of a validator. + @abc.abstractmethod + def ValidatorSlashes(self, + request: global___QueryValidatorSlashesRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorSlashesResponse: ... + + # DelegationRewards queries the total rewards accrued by a delegation. + @abc.abstractmethod + def DelegationRewards(self, + request: global___QueryDelegationRewardsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegationRewardsResponse: ... + + # DelegationTotalRewards queries the total rewards accrued by a each + # validator. + @abc.abstractmethod + def DelegationTotalRewards(self, + request: global___QueryDelegationTotalRewardsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegationTotalRewardsResponse: ... + + # DelegatorValidators queries the validators of a delegator. + @abc.abstractmethod + def DelegatorValidators(self, + request: global___QueryDelegatorValidatorsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorValidatorsResponse: ... + + # DelegatorWithdrawAddress queries withdraw address of a delegator. + @abc.abstractmethod + def DelegatorWithdrawAddress(self, + request: global___QueryDelegatorWithdrawAddressRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorWithdrawAddressResponse: ... + + # CommunityPool queries the community pool coins. + @abc.abstractmethod + def CommunityPool(self, + request: global___QueryCommunityPoolRequest, + context: grpc.ServicerContext, + ) -> global___QueryCommunityPoolResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..ba8c0f8 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi @@ -0,0 +1,103 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgSetWithdrawAddress sets the withdraw address for +# a delegator (or validator self-delegation). +class MsgSetWithdrawAddress(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + withdraw_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + withdraw_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"withdraw_address",b"withdraw_address"]) -> None: ... +global___MsgSetWithdrawAddress = MsgSetWithdrawAddress + +# MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. +class MsgSetWithdrawAddressResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgSetWithdrawAddressResponse = MsgSetWithdrawAddressResponse + +# MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator +# from a single validator. +class MsgWithdrawDelegatorReward(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___MsgWithdrawDelegatorReward = MsgWithdrawDelegatorReward + +# MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. +class MsgWithdrawDelegatorRewardResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgWithdrawDelegatorRewardResponse = MsgWithdrawDelegatorRewardResponse + +# MsgWithdrawValidatorCommission withdraws the full commission to the validator +# address. +class MsgWithdrawValidatorCommission(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___MsgWithdrawValidatorCommission = MsgWithdrawValidatorCommission + +# MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. +class MsgWithdrawValidatorCommissionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgWithdrawValidatorCommissionResponse = MsgWithdrawValidatorCommissionResponse + +# MsgFundCommunityPool allows an account to directly +# fund the community pool. +class MsgFundCommunityPool(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AMOUNT_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + depositor: typing.Text = ... + def __init__(self, + *, + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + depositor : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor"]) -> None: ... +global___MsgFundCommunityPool = MsgFundCommunityPool + +# MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. +class MsgFundCommunityPoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgFundCommunityPoolResponse = MsgFundCommunityPoolResponse diff --git a/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..ae27a80 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,72 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the distribution Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # SetWithdrawAddress defines a method to change the withdraw address + # for a delegator (or validator self-delegation). + SetWithdrawAddress:grpc.UnaryUnaryMultiCallable[ + global___MsgSetWithdrawAddress, + global___MsgSetWithdrawAddressResponse] = ... + + # WithdrawDelegatorReward defines a method to withdraw rewards of delegator + # from a single validator. + WithdrawDelegatorReward:grpc.UnaryUnaryMultiCallable[ + global___MsgWithdrawDelegatorReward, + global___MsgWithdrawDelegatorRewardResponse] = ... + + # WithdrawValidatorCommission defines a method to withdraw the + # full commission to the validator address. + WithdrawValidatorCommission:grpc.UnaryUnaryMultiCallable[ + global___MsgWithdrawValidatorCommission, + global___MsgWithdrawValidatorCommissionResponse] = ... + + # FundCommunityPool defines a method to allow an account to directly + # fund the community pool. + FundCommunityPool:grpc.UnaryUnaryMultiCallable[ + global___MsgFundCommunityPool, + global___MsgFundCommunityPoolResponse] = ... + + +# Msg defines the distribution Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # SetWithdrawAddress defines a method to change the withdraw address + # for a delegator (or validator self-delegation). + @abc.abstractmethod + def SetWithdrawAddress(self, + request: global___MsgSetWithdrawAddress, + context: grpc.ServicerContext, + ) -> global___MsgSetWithdrawAddressResponse: ... + + # WithdrawDelegatorReward defines a method to withdraw rewards of delegator + # from a single validator. + @abc.abstractmethod + def WithdrawDelegatorReward(self, + request: global___MsgWithdrawDelegatorReward, + context: grpc.ServicerContext, + ) -> global___MsgWithdrawDelegatorRewardResponse: ... + + # WithdrawValidatorCommission defines a method to withdraw the + # full commission to the validator address. + @abc.abstractmethod + def WithdrawValidatorCommission(self, + request: global___MsgWithdrawValidatorCommission, + context: grpc.ServicerContext, + ) -> global___MsgWithdrawValidatorCommissionResponse: ... + + # FundCommunityPool defines a method to allow an account to directly + # fund the community pool. + @abc.abstractmethod + def FundCommunityPool(self, + request: global___MsgFundCommunityPool, + context: grpc.ServicerContext, + ) -> global___MsgFundCommunityPoolResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi new file mode 100644 index 0000000..10eb6ed --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi @@ -0,0 +1,36 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Equivocation implements the Evidence interface and defines evidence of double +# signing misbehavior. +class Equivocation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + CONSENSUS_ADDRESS_FIELD_NUMBER: builtins.int + height: builtins.int = ... + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + power: builtins.int = ... + consensus_address: typing.Text = ... + def __init__(self, + *, + height : builtins.int = ..., + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + power : builtins.int = ..., + consensus_address : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"time",b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_address",b"consensus_address",u"height",b"height",u"power",b"power",u"time",b"time"]) -> None: ... +global___Equivocation = Equivocation diff --git a/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi new file mode 100644 index 0000000..f487a89 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .evidence_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..362696e --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi @@ -0,0 +1,27 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the evidence module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_FIELD_NUMBER: builtins.int + # evidence defines all the evidence at genesis. + @property + def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + evidence : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..c87fc1b --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi @@ -0,0 +1,79 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryEvidenceRequest is the request type for the Query/Evidence RPC method. +class QueryEvidenceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_HASH_FIELD_NUMBER: builtins.int + # evidence_hash defines the hash of the requested evidence. + evidence_hash: builtins.bytes = ... + def __init__(self, + *, + evidence_hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence_hash",b"evidence_hash"]) -> None: ... +global___QueryEvidenceRequest = QueryEvidenceRequest + +# QueryEvidenceResponse is the response type for the Query/Evidence RPC method. +class QueryEvidenceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_FIELD_NUMBER: builtins.int + # evidence returns the requested evidence. + @property + def evidence(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + evidence : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... +global___QueryEvidenceResponse = QueryEvidenceResponse + +# QueryEvidenceRequest is the request type for the Query/AllEvidence RPC +# method. +class QueryAllEvidenceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QueryAllEvidenceRequest = QueryAllEvidenceRequest + +# QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC +# method. +class QueryAllEvidenceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # evidence returns all evidences. + @property + def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + evidence : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence",u"pagination",b"pagination"]) -> None: ... +global___QueryAllEvidenceResponse = QueryAllEvidenceResponse diff --git a/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..dc000b4 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,40 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Evidence queries evidence based on evidence hash. + Evidence:grpc.UnaryUnaryMultiCallable[ + global___QueryEvidenceRequest, + global___QueryEvidenceResponse] = ... + + # AllEvidence queries all evidence. + AllEvidence:grpc.UnaryUnaryMultiCallable[ + global___QueryAllEvidenceRequest, + global___QueryAllEvidenceResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Evidence queries evidence based on evidence hash. + @abc.abstractmethod + def Evidence(self, + request: global___QueryEvidenceRequest, + context: grpc.ServicerContext, + ) -> global___QueryEvidenceResponse: ... + + # AllEvidence queries all evidence. + @abc.abstractmethod + def AllEvidence(self, + request: global___QueryAllEvidenceRequest, + context: grpc.ServicerContext, + ) -> global___QueryAllEvidenceResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..832a661 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi @@ -0,0 +1,43 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgSubmitEvidence represents a message that supports submitting arbitrary +# Evidence of misbehavior such as equivocation or counterfactual signing. +class MsgSubmitEvidence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SUBMITTER_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + submitter: typing.Text = ... + @property + def evidence(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + submitter : typing.Text = ..., + evidence : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence",u"submitter",b"submitter"]) -> None: ... +global___MsgSubmitEvidence = MsgSubmitEvidence + +# MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. +class MsgSubmitEvidenceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + # hash defines the hash of the evidence. + hash: builtins.bytes = ... + def __init__(self, + *, + hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... +global___MsgSubmitEvidenceResponse = MsgSubmitEvidenceResponse diff --git a/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..6330fa4 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,30 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the evidence Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or + # counterfactual signing. + SubmitEvidence:grpc.UnaryUnaryMultiCallable[ + global___MsgSubmitEvidence, + global___MsgSubmitEvidenceResponse] = ... + + +# Msg defines the evidence Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or + # counterfactual signing. + @abc.abstractmethod + def SubmitEvidence(self, + request: global___MsgSubmitEvidence, + context: grpc.ServicerContext, + ) -> global___MsgSubmitEvidenceResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi new file mode 100644 index 0000000..45a808e --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi @@ -0,0 +1,122 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BasicAllowance implements Allowance with a one-time grant of tokens +# that optionally expires. The grantee can use up to SpendLimit to cover fees. +class BasicAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SPEND_LIMIT_FIELD_NUMBER: builtins.int + EXPIRATION_FIELD_NUMBER: builtins.int + # spend_limit specifies the maximum amount of tokens that can be spent + # by this allowance and will be updated as tokens are spent. If it is + # empty, there is no spend limit and any amount of coins can be spent. + @property + def spend_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # expiration specifies an optional time when this allowance expires + @property + def expiration(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + spend_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + expiration : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"expiration",b"expiration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"expiration",b"expiration",u"spend_limit",b"spend_limit"]) -> None: ... +global___BasicAllowance = BasicAllowance + +# PeriodicAllowance extends Allowance to allow for both a maximum cap, +# as well as a limit per time period. +class PeriodicAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BASIC_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + PERIOD_SPEND_LIMIT_FIELD_NUMBER: builtins.int + PERIOD_CAN_SPEND_FIELD_NUMBER: builtins.int + PERIOD_RESET_FIELD_NUMBER: builtins.int + # basic specifies a struct of `BasicAllowance` + @property + def basic(self) -> global___BasicAllowance: ... + # period specifies the time duration in which period_spend_limit coins can + # be spent before that allowance is reset + @property + def period(self) -> google.protobuf.duration_pb2.Duration: ... + # period_spend_limit specifies the maximum number of coins that can be spent + # in the period + @property + def period_spend_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # period_can_spend is the number of coins left to be spent before the period_reset time + @property + def period_can_spend(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # period_reset is the time at which this period resets and a new one begins, + # it is calculated from the start time of the first transaction after the + # last period ended + @property + def period_reset(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + basic : typing.Optional[global___BasicAllowance] = ..., + period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + period_spend_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + period_can_spend : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + period_reset : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"basic",b"basic",u"period",b"period",u"period_reset",b"period_reset"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"basic",b"basic",u"period",b"period",u"period_can_spend",b"period_can_spend",u"period_reset",b"period_reset",u"period_spend_limit",b"period_spend_limit"]) -> None: ... +global___PeriodicAllowance = PeriodicAllowance + +# AllowedMsgAllowance creates allowance only for specified message types. +class AllowedMsgAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWANCE_FIELD_NUMBER: builtins.int + ALLOWED_MESSAGES_FIELD_NUMBER: builtins.int + # allowance can be any of basic and filtered fee allowance. + @property + def allowance(self) -> google.protobuf.any_pb2.Any: ... + # allowed_messages are the messages for which the grantee has the access. + @property + def allowed_messages(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + allowance : typing.Optional[google.protobuf.any_pb2.Any] = ..., + allowed_messages : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance",u"allowed_messages",b"allowed_messages"]) -> None: ... +global___AllowedMsgAllowance = AllowedMsgAllowance + +# Grant is stored in the KVStore to record a grant with full context +class Grant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + ALLOWANCE_FIELD_NUMBER: builtins.int + # granter is the address of the user granting an allowance of their funds. + granter: typing.Text = ... + # grantee is the address of the user being granted an allowance of another user's funds. + grantee: typing.Text = ... + # allowance can be any of basic and filtered fee allowance. + @property + def allowance(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + allowance : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance",u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___Grant = Grant diff --git a/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.pyi b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.pyi new file mode 100644 index 0000000..90710ce --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .feegrant_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..c6a8df6 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.feegrant.v1beta1.feegrant_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState contains a set of fee allowances, persisted from the store +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWANCES_FIELD_NUMBER: builtins.int + @property + def allowances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]: ... + def __init__(self, + *, + allowances : typing.Optional[typing.Iterable[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowances",b"allowances"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..e617bed --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.pyi @@ -0,0 +1,84 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.feegrant.v1beta1.feegrant_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryAllowanceRequest is the request type for the Query/Allowance RPC method. +class QueryAllowanceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + # granter is the address of the user granting an allowance of their funds. + granter: typing.Text = ... + # grantee is the address of the user being granted an allowance of another user's funds. + grantee: typing.Text = ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___QueryAllowanceRequest = QueryAllowanceRequest + +# QueryAllowanceResponse is the response type for the Query/Allowance RPC method. +class QueryAllowanceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWANCE_FIELD_NUMBER: builtins.int + # allowance is a allowance granted for grantee by granter. + @property + def allowance(self) -> cosmos.feegrant.v1beta1.feegrant_pb2.Grant: ... + def __init__(self, + *, + allowance : typing.Optional[cosmos.feegrant.v1beta1.feegrant_pb2.Grant] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> None: ... +global___QueryAllowanceResponse = QueryAllowanceResponse + +# QueryAllowancesRequest is the request type for the Query/Allowances RPC method. +class QueryAllowancesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTEE_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + grantee: typing.Text = ... + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + grantee : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"pagination",b"pagination"]) -> None: ... +global___QueryAllowancesRequest = QueryAllowancesRequest + +# QueryAllowancesResponse is the response type for the Query/Allowances RPC method. +class QueryAllowancesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWANCES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # allowances are allowance's granted for grantee by granter. + @property + def allowances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + allowances : typing.Optional[typing.Iterable[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowances",b"allowances",u"pagination",b"pagination"]) -> None: ... +global___QueryAllowancesResponse = QueryAllowancesResponse diff --git a/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..f6bab0f --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,40 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Allowance returns fee granted to the grantee by the granter. + Allowance:grpc.UnaryUnaryMultiCallable[ + global___QueryAllowanceRequest, + global___QueryAllowanceResponse] = ... + + # Allowances returns all the grants for address. + Allowances:grpc.UnaryUnaryMultiCallable[ + global___QueryAllowancesRequest, + global___QueryAllowancesResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Allowance returns fee granted to the grantee by the granter. + @abc.abstractmethod + def Allowance(self, + request: global___QueryAllowanceRequest, + context: grpc.ServicerContext, + ) -> global___QueryAllowanceResponse: ... + + # Allowances returns all the grants for address. + @abc.abstractmethod + def Allowances(self, + request: global___QueryAllowancesRequest, + context: grpc.ServicerContext, + ) -> global___QueryAllowancesResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..cdb57b9 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.pyi @@ -0,0 +1,67 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgGrantAllowance adds permission for Grantee to spend up to Allowance +# of fees from the account of Granter. +class MsgGrantAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + ALLOWANCE_FIELD_NUMBER: builtins.int + # granter is the address of the user granting an allowance of their funds. + granter: typing.Text = ... + # grantee is the address of the user being granted an allowance of another user's funds. + grantee: typing.Text = ... + # allowance can be any of basic and filtered fee allowance. + @property + def allowance(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + allowance : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance",u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___MsgGrantAllowance = MsgGrantAllowance + +# MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. +class MsgGrantAllowanceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgGrantAllowanceResponse = MsgGrantAllowanceResponse + +# MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. +class MsgRevokeAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + # granter is the address of the user granting an allowance of their funds. + granter: typing.Text = ... + # grantee is the address of the user being granted an allowance of another user's funds. + grantee: typing.Text = ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___MsgRevokeAllowance = MsgRevokeAllowance + +# MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. +class MsgRevokeAllowanceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgRevokeAllowanceResponse = MsgRevokeAllowanceResponse diff --git a/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..75577b3 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the feegrant msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # GrantAllowance grants fee allowance to the grantee on the granter's + # account with the provided expiration time. + GrantAllowance:grpc.UnaryUnaryMultiCallable[ + global___MsgGrantAllowance, + global___MsgGrantAllowanceResponse] = ... + + # RevokeAllowance revokes any fee allowance of granter's account that + # has been granted to the grantee. + RevokeAllowance:grpc.UnaryUnaryMultiCallable[ + global___MsgRevokeAllowance, + global___MsgRevokeAllowanceResponse] = ... + + +# Msg defines the feegrant msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # GrantAllowance grants fee allowance to the grantee on the granter's + # account with the provided expiration time. + @abc.abstractmethod + def GrantAllowance(self, + request: global___MsgGrantAllowance, + context: grpc.ServicerContext, + ) -> global___MsgGrantAllowanceResponse: ... + + # RevokeAllowance revokes any fee allowance of granter's account that + # has been granted to the grantee. + @abc.abstractmethod + def RevokeAllowance(self, + request: global___MsgRevokeAllowance, + context: grpc.ServicerContext, + ) -> global___MsgRevokeAllowanceResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..6cf44fa --- /dev/null +++ b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the raw genesis transaction in JSON. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GEN_TXS_FIELD_NUMBER: builtins.int + # gen_txs defines the genesis transactions. + @property + def gen_txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + gen_txs : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"gen_txs",b"gen_txs"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..0a83d29 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi @@ -0,0 +1,57 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.gov.v1beta1.gov_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the gov module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STARTING_PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITS_FIELD_NUMBER: builtins.int + VOTES_FIELD_NUMBER: builtins.int + PROPOSALS_FIELD_NUMBER: builtins.int + DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int + VOTING_PARAMS_FIELD_NUMBER: builtins.int + TALLY_PARAMS_FIELD_NUMBER: builtins.int + # starting_proposal_id is the ID of the starting proposal. + starting_proposal_id: builtins.int = ... + # deposits defines all the deposits present at genesis. + @property + def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Deposit]: ... + # votes defines all the votes present at genesis. + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Vote]: ... + # proposals defines all the proposals present at genesis. + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Proposal]: ... + # params defines all the paramaters of related to deposit. + @property + def deposit_params(self) -> cosmos.gov.v1beta1.gov_pb2.DepositParams: ... + # params defines all the paramaters of related to voting. + @property + def voting_params(self) -> cosmos.gov.v1beta1.gov_pb2.VotingParams: ... + # params defines all the paramaters of related to tally. + @property + def tally_params(self) -> cosmos.gov.v1beta1.gov_pb2.TallyParams: ... + def __init__(self, + *, + starting_proposal_id : builtins.int = ..., + deposits : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Deposit]] = ..., + votes : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Vote]] = ..., + proposals : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Proposal]] = ..., + deposit_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.DepositParams] = ..., + voting_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.VotingParams] = ..., + tally_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyParams] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"deposits",b"deposits",u"proposals",b"proposals",u"starting_proposal_id",b"starting_proposal_id",u"tally_params",b"tally_params",u"votes",b"votes",u"voting_params",b"voting_params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi new file mode 100644 index 0000000..78dc990 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi @@ -0,0 +1,294 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# VoteOption enumerates the valid vote options for a given governance proposal. +class VoteOption(_VoteOption, metaclass=_VoteOptionEnumTypeWrapper): + pass +class _VoteOption: + V = typing.NewType('V', builtins.int) +class _VoteOptionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VoteOption.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + VOTE_OPTION_UNSPECIFIED = VoteOption.V(0) + # VOTE_OPTION_YES defines a yes vote option. + VOTE_OPTION_YES = VoteOption.V(1) + # VOTE_OPTION_ABSTAIN defines an abstain vote option. + VOTE_OPTION_ABSTAIN = VoteOption.V(2) + # VOTE_OPTION_NO defines a no vote option. + VOTE_OPTION_NO = VoteOption.V(3) + # VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + VOTE_OPTION_NO_WITH_VETO = VoteOption.V(4) + +# VOTE_OPTION_UNSPECIFIED defines a no-op vote option. +VOTE_OPTION_UNSPECIFIED = VoteOption.V(0) +# VOTE_OPTION_YES defines a yes vote option. +VOTE_OPTION_YES = VoteOption.V(1) +# VOTE_OPTION_ABSTAIN defines an abstain vote option. +VOTE_OPTION_ABSTAIN = VoteOption.V(2) +# VOTE_OPTION_NO defines a no vote option. +VOTE_OPTION_NO = VoteOption.V(3) +# VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. +VOTE_OPTION_NO_WITH_VETO = VoteOption.V(4) +global___VoteOption = VoteOption + + +# ProposalStatus enumerates the valid statuses of a proposal. +class ProposalStatus(_ProposalStatus, metaclass=_ProposalStatusEnumTypeWrapper): + pass +class _ProposalStatus: + V = typing.NewType('V', builtins.int) +class _ProposalStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProposalStatus.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + PROPOSAL_STATUS_UNSPECIFIED = ProposalStatus.V(0) + # PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + # period. + PROPOSAL_STATUS_DEPOSIT_PERIOD = ProposalStatus.V(1) + # PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + # period. + PROPOSAL_STATUS_VOTING_PERIOD = ProposalStatus.V(2) + # PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + # passed. + PROPOSAL_STATUS_PASSED = ProposalStatus.V(3) + # PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + # been rejected. + PROPOSAL_STATUS_REJECTED = ProposalStatus.V(4) + # PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + # failed. + PROPOSAL_STATUS_FAILED = ProposalStatus.V(5) + +# PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. +PROPOSAL_STATUS_UNSPECIFIED = ProposalStatus.V(0) +# PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit +# period. +PROPOSAL_STATUS_DEPOSIT_PERIOD = ProposalStatus.V(1) +# PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting +# period. +PROPOSAL_STATUS_VOTING_PERIOD = ProposalStatus.V(2) +# PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has +# passed. +PROPOSAL_STATUS_PASSED = ProposalStatus.V(3) +# PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has +# been rejected. +PROPOSAL_STATUS_REJECTED = ProposalStatus.V(4) +# PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has +# failed. +PROPOSAL_STATUS_FAILED = ProposalStatus.V(5) +global___ProposalStatus = ProposalStatus + + +# WeightedVoteOption defines a unit of vote for vote split. +class WeightedVoteOption(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OPTION_FIELD_NUMBER: builtins.int + WEIGHT_FIELD_NUMBER: builtins.int + option: global___VoteOption.V = ... + weight: typing.Text = ... + def __init__(self, + *, + option : global___VoteOption.V = ..., + weight : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"option",b"option",u"weight",b"weight"]) -> None: ... +global___WeightedVoteOption = WeightedVoteOption + +# TextProposal defines a standard text proposal whose changes need to be +# manually updated in case of approval. +class TextProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"title",b"title"]) -> None: ... +global___TextProposal = TextProposal + +# Deposit defines an amount deposited by an account address to an active +# proposal. +class Deposit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + proposal_id: builtins.int = ... + depositor: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + depositor : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... +global___Deposit = Deposit + +# Proposal defines the core field members of a governance proposal. +class Proposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + FINAL_TALLY_RESULT_FIELD_NUMBER: builtins.int + SUBMIT_TIME_FIELD_NUMBER: builtins.int + DEPOSIT_END_TIME_FIELD_NUMBER: builtins.int + TOTAL_DEPOSIT_FIELD_NUMBER: builtins.int + VOTING_START_TIME_FIELD_NUMBER: builtins.int + VOTING_END_TIME_FIELD_NUMBER: builtins.int + proposal_id: builtins.int = ... + @property + def content(self) -> google.protobuf.any_pb2.Any: ... + status: global___ProposalStatus.V = ... + @property + def final_tally_result(self) -> global___TallyResult: ... + @property + def submit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def deposit_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def total_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + @property + def voting_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def voting_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + content : typing.Optional[google.protobuf.any_pb2.Any] = ..., + status : global___ProposalStatus.V = ..., + final_tally_result : typing.Optional[global___TallyResult] = ..., + submit_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + deposit_end_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + total_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + voting_start_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + voting_end_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"content",b"content",u"deposit_end_time",b"deposit_end_time",u"final_tally_result",b"final_tally_result",u"submit_time",b"submit_time",u"voting_end_time",b"voting_end_time",u"voting_start_time",b"voting_start_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"content",b"content",u"deposit_end_time",b"deposit_end_time",u"final_tally_result",b"final_tally_result",u"proposal_id",b"proposal_id",u"status",b"status",u"submit_time",b"submit_time",u"total_deposit",b"total_deposit",u"voting_end_time",b"voting_end_time",u"voting_start_time",b"voting_start_time"]) -> None: ... +global___Proposal = Proposal + +# TallyResult defines a standard tally for a governance proposal. +class TallyResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + YES_FIELD_NUMBER: builtins.int + ABSTAIN_FIELD_NUMBER: builtins.int + NO_FIELD_NUMBER: builtins.int + NO_WITH_VETO_FIELD_NUMBER: builtins.int + yes: typing.Text = ... + abstain: typing.Text = ... + no: typing.Text = ... + no_with_veto: typing.Text = ... + def __init__(self, + *, + yes : typing.Text = ..., + abstain : typing.Text = ..., + no : typing.Text = ..., + no_with_veto : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"abstain",b"abstain",u"no",b"no",u"no_with_veto",b"no_with_veto",u"yes",b"yes"]) -> None: ... +global___TallyResult = TallyResult + +# Vote defines a vote on a governance proposal. +# A Vote consists of a proposal ID, the voter, and the vote option. +class Vote(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTION_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + proposal_id: builtins.int = ... + voter: typing.Text = ... + # Deprecated: Prefer to use `options` instead. This field is set in queries + # if and only if `len(options) == 1` and that option has weight 1. In all + # other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + option: global___VoteOption.V = ... + @property + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WeightedVoteOption]: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + voter : typing.Text = ..., + option : global___VoteOption.V = ..., + options : typing.Optional[typing.Iterable[global___WeightedVoteOption]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"option",b"option",u"options",b"options",u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... +global___Vote = Vote + +# DepositParams defines the params for deposits on governance proposals. +class DepositParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MIN_DEPOSIT_FIELD_NUMBER: builtins.int + MAX_DEPOSIT_PERIOD_FIELD_NUMBER: builtins.int + # Minimum deposit for a proposal to enter voting period. + @property + def min_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + # months. + @property + def max_deposit_period(self) -> google.protobuf.duration_pb2.Duration: ... + def __init__(self, + *, + min_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + max_deposit_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"max_deposit_period",b"max_deposit_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_deposit_period",b"max_deposit_period",u"min_deposit",b"min_deposit"]) -> None: ... +global___DepositParams = DepositParams + +# VotingParams defines the params for voting on governance proposals. +class VotingParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VOTING_PERIOD_FIELD_NUMBER: builtins.int + # Length of the voting period. + @property + def voting_period(self) -> google.protobuf.duration_pb2.Duration: ... + def __init__(self, + *, + voting_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"voting_period",b"voting_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"voting_period",b"voting_period"]) -> None: ... +global___VotingParams = VotingParams + +# TallyParams defines the params for tallying votes on governance proposals. +class TallyParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + QUORUM_FIELD_NUMBER: builtins.int + THRESHOLD_FIELD_NUMBER: builtins.int + VETO_THRESHOLD_FIELD_NUMBER: builtins.int + # Minimum percentage of total stake needed to vote for a result to be + # considered valid. + quorum: builtins.bytes = ... + # Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + threshold: builtins.bytes = ... + # Minimum value of Veto votes to Total votes ratio for proposal to be + # vetoed. Default value: 1/3. + veto_threshold: builtins.bytes = ... + def __init__(self, + *, + quorum : builtins.bytes = ..., + threshold : builtins.bytes = ..., + veto_threshold : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"quorum",b"quorum",u"threshold",b"threshold",u"veto_threshold",b"veto_threshold"]) -> None: ... +global___TallyParams = TallyParams diff --git a/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi new file mode 100644 index 0000000..2b57cd3 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .gov_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..8104e25 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi @@ -0,0 +1,296 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.gov.v1beta1.gov_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryProposalRequest is the request type for the Query/Proposal RPC method. +class QueryProposalRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryProposalRequest = QueryProposalRequest + +# QueryProposalResponse is the response type for the Query/Proposal RPC method. +class QueryProposalResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_FIELD_NUMBER: builtins.int + @property + def proposal(self) -> cosmos.gov.v1beta1.gov_pb2.Proposal: ... + def __init__(self, + *, + proposal : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Proposal] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proposal",b"proposal"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal",b"proposal"]) -> None: ... +global___QueryProposalResponse = QueryProposalResponse + +# QueryProposalsRequest is the request type for the Query/Proposals RPC method. +class QueryProposalsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_STATUS_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # proposal_status defines the status of the proposals. + proposal_status: cosmos.gov.v1beta1.gov_pb2.ProposalStatus.V = ... + # voter defines the voter address for the proposals. + voter: typing.Text = ... + # depositor defines the deposit addresses from the proposals. + depositor: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + proposal_status : cosmos.gov.v1beta1.gov_pb2.ProposalStatus.V = ..., + voter : typing.Text = ..., + depositor : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"depositor",b"depositor",u"pagination",b"pagination",u"proposal_status",b"proposal_status",u"voter",b"voter"]) -> None: ... +global___QueryProposalsRequest = QueryProposalsRequest + +# QueryProposalsResponse is the response type for the Query/Proposals RPC +# method. +class QueryProposalsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSALS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Proposal]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + proposals : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Proposal]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"proposals",b"proposals"]) -> None: ... +global___QueryProposalsResponse = QueryProposalsResponse + +# QueryVoteRequest is the request type for the Query/Vote RPC method. +class QueryVoteRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + # voter defines the oter address for the proposals. + voter: typing.Text = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + voter : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... +global___QueryVoteRequest = QueryVoteRequest + +# QueryVoteResponse is the response type for the Query/Vote RPC method. +class QueryVoteResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VOTE_FIELD_NUMBER: builtins.int + # vote defined the queried vote. + @property + def vote(self) -> cosmos.gov.v1beta1.gov_pb2.Vote: ... + def __init__(self, + *, + vote : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Vote] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"vote",b"vote"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"vote",b"vote"]) -> None: ... +global___QueryVoteResponse = QueryVoteResponse + +# QueryVotesRequest is the request type for the Query/Votes RPC method. +class QueryVotesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryVotesRequest = QueryVotesRequest + +# QueryVotesResponse is the response type for the Query/Votes RPC method. +class QueryVotesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VOTES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # votes defined the queried votes. + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Vote]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + votes : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Vote]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"votes",b"votes"]) -> None: ... +global___QueryVotesResponse = QueryVotesResponse + +# QueryParamsRequest is the request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_TYPE_FIELD_NUMBER: builtins.int + # params_type defines which parameters to query for, can be one of "voting", + # "tallying" or "deposit". + params_type: typing.Text = ... + def __init__(self, + *, + params_type : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params_type",b"params_type"]) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is the response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VOTING_PARAMS_FIELD_NUMBER: builtins.int + DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int + TALLY_PARAMS_FIELD_NUMBER: builtins.int + # voting_params defines the parameters related to voting. + @property + def voting_params(self) -> cosmos.gov.v1beta1.gov_pb2.VotingParams: ... + # deposit_params defines the parameters related to deposit. + @property + def deposit_params(self) -> cosmos.gov.v1beta1.gov_pb2.DepositParams: ... + # tally_params defines the parameters related to tally. + @property + def tally_params(self) -> cosmos.gov.v1beta1.gov_pb2.TallyParams: ... + def __init__(self, + *, + voting_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.VotingParams] = ..., + deposit_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.DepositParams] = ..., + tally_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyParams] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse + +# QueryDepositRequest is the request type for the Query/Deposit RPC method. +class QueryDepositRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + # depositor defines the deposit addresses from the proposals. + depositor: typing.Text = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + depositor : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryDepositRequest = QueryDepositRequest + +# QueryDepositResponse is the response type for the Query/Deposit RPC method. +class QueryDepositResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DEPOSIT_FIELD_NUMBER: builtins.int + # deposit defines the requested deposit. + @property + def deposit(self) -> cosmos.gov.v1beta1.gov_pb2.Deposit: ... + def __init__(self, + *, + deposit : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Deposit] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"deposit",b"deposit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deposit",b"deposit"]) -> None: ... +global___QueryDepositResponse = QueryDepositResponse + +# QueryDepositsRequest is the request type for the Query/Deposits RPC method. +class QueryDepositsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryDepositsRequest = QueryDepositsRequest + +# QueryDepositsResponse is the response type for the Query/Deposits RPC method. +class QueryDepositsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DEPOSITS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Deposit]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + deposits : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Deposit]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deposits",b"deposits",u"pagination",b"pagination"]) -> None: ... +global___QueryDepositsResponse = QueryDepositsResponse + +# QueryTallyResultRequest is the request type for the Query/Tally RPC method. +class QueryTallyResultRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryTallyResultRequest = QueryTallyResultRequest + +# QueryTallyResultResponse is the response type for the Query/Tally RPC method. +class QueryTallyResultResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TALLY_FIELD_NUMBER: builtins.int + # tally defines the requested tally. + @property + def tally(self) -> cosmos.gov.v1beta1.gov_pb2.TallyResult: ... + def __init__(self, + *, + tally : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyResult] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tally",b"tally"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tally",b"tally"]) -> None: ... +global___QueryTallyResultResponse = QueryTallyResultResponse diff --git a/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..0577193 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,112 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service for gov module +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Proposal queries proposal details based on ProposalID. + Proposal:grpc.UnaryUnaryMultiCallable[ + global___QueryProposalRequest, + global___QueryProposalResponse] = ... + + # Proposals queries all proposals based on given status. + Proposals:grpc.UnaryUnaryMultiCallable[ + global___QueryProposalsRequest, + global___QueryProposalsResponse] = ... + + # Vote queries voted information based on proposalID, voterAddr. + Vote:grpc.UnaryUnaryMultiCallable[ + global___QueryVoteRequest, + global___QueryVoteResponse] = ... + + # Votes queries votes of a given proposal. + Votes:grpc.UnaryUnaryMultiCallable[ + global___QueryVotesRequest, + global___QueryVotesResponse] = ... + + # Params queries all parameters of the gov module. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # Deposit queries single deposit information based proposalID, depositAddr. + Deposit:grpc.UnaryUnaryMultiCallable[ + global___QueryDepositRequest, + global___QueryDepositResponse] = ... + + # Deposits queries all deposits of a single proposal. + Deposits:grpc.UnaryUnaryMultiCallable[ + global___QueryDepositsRequest, + global___QueryDepositsResponse] = ... + + # TallyResult queries the tally of a proposal vote. + TallyResult:grpc.UnaryUnaryMultiCallable[ + global___QueryTallyResultRequest, + global___QueryTallyResultResponse] = ... + + +# Query defines the gRPC querier service for gov module +class QueryServicer(metaclass=abc.ABCMeta): + # Proposal queries proposal details based on ProposalID. + @abc.abstractmethod + def Proposal(self, + request: global___QueryProposalRequest, + context: grpc.ServicerContext, + ) -> global___QueryProposalResponse: ... + + # Proposals queries all proposals based on given status. + @abc.abstractmethod + def Proposals(self, + request: global___QueryProposalsRequest, + context: grpc.ServicerContext, + ) -> global___QueryProposalsResponse: ... + + # Vote queries voted information based on proposalID, voterAddr. + @abc.abstractmethod + def Vote(self, + request: global___QueryVoteRequest, + context: grpc.ServicerContext, + ) -> global___QueryVoteResponse: ... + + # Votes queries votes of a given proposal. + @abc.abstractmethod + def Votes(self, + request: global___QueryVotesRequest, + context: grpc.ServicerContext, + ) -> global___QueryVotesResponse: ... + + # Params queries all parameters of the gov module. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # Deposit queries single deposit information based proposalID, depositAddr. + @abc.abstractmethod + def Deposit(self, + request: global___QueryDepositRequest, + context: grpc.ServicerContext, + ) -> global___QueryDepositResponse: ... + + # Deposits queries all deposits of a single proposal. + @abc.abstractmethod + def Deposits(self, + request: global___QueryDepositsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDepositsResponse: ... + + # TallyResult queries the tally of a proposal vote. + @abc.abstractmethod + def TallyResult(self, + request: global___QueryTallyResultRequest, + context: grpc.ServicerContext, + ) -> global___QueryTallyResultResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..d5f7bbd --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi @@ -0,0 +1,126 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import cosmos.gov.v1beta1.gov_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary +# proposal Content. +class MsgSubmitProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONTENT_FIELD_NUMBER: builtins.int + INITIAL_DEPOSIT_FIELD_NUMBER: builtins.int + PROPOSER_FIELD_NUMBER: builtins.int + @property + def content(self) -> google.protobuf.any_pb2.Any: ... + @property + def initial_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + proposer: typing.Text = ... + def __init__(self, + *, + content : typing.Optional[google.protobuf.any_pb2.Any] = ..., + initial_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + proposer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"content",b"content"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"content",b"content",u"initial_deposit",b"initial_deposit",u"proposer",b"proposer"]) -> None: ... +global___MsgSubmitProposal = MsgSubmitProposal + +# MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. +class MsgSubmitProposalResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... +global___MsgSubmitProposalResponse = MsgSubmitProposalResponse + +# MsgVote defines a message to cast a vote. +class MsgVote(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTION_FIELD_NUMBER: builtins.int + proposal_id: builtins.int = ... + voter: typing.Text = ... + option: cosmos.gov.v1beta1.gov_pb2.VoteOption.V = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + voter : typing.Text = ..., + option : cosmos.gov.v1beta1.gov_pb2.VoteOption.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"option",b"option",u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... +global___MsgVote = MsgVote + +# MsgVoteResponse defines the Msg/Vote response type. +class MsgVoteResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgVoteResponse = MsgVoteResponse + +# MsgVoteWeighted defines a message to cast a vote. +class MsgVoteWeighted(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + proposal_id: builtins.int = ... + voter: typing.Text = ... + @property + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.WeightedVoteOption]: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + voter : typing.Text = ..., + options : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.WeightedVoteOption]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"options",b"options",u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... +global___MsgVoteWeighted = MsgVoteWeighted + +# MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. +class MsgVoteWeightedResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgVoteWeightedResponse = MsgVoteWeightedResponse + +# MsgDeposit defines a message to submit a deposit to an existing proposal. +class MsgDeposit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + proposal_id: builtins.int = ... + depositor: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + depositor : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... +global___MsgDeposit = MsgDeposit + +# MsgDepositResponse defines the Msg/Deposit response type. +class MsgDepositResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgDepositResponse = MsgDepositResponse diff --git a/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..8602594 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the bank Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # SubmitProposal defines a method to create new proposal given a content. + SubmitProposal:grpc.UnaryUnaryMultiCallable[ + global___MsgSubmitProposal, + global___MsgSubmitProposalResponse] = ... + + # Vote defines a method to add a vote on a specific proposal. + Vote:grpc.UnaryUnaryMultiCallable[ + global___MsgVote, + global___MsgVoteResponse] = ... + + # VoteWeighted defines a method to add a weighted vote on a specific proposal. + VoteWeighted:grpc.UnaryUnaryMultiCallable[ + global___MsgVoteWeighted, + global___MsgVoteWeightedResponse] = ... + + # Deposit defines a method to add deposit on a specific proposal. + Deposit:grpc.UnaryUnaryMultiCallable[ + global___MsgDeposit, + global___MsgDepositResponse] = ... + + +# Msg defines the bank Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # SubmitProposal defines a method to create new proposal given a content. + @abc.abstractmethod + def SubmitProposal(self, + request: global___MsgSubmitProposal, + context: grpc.ServicerContext, + ) -> global___MsgSubmitProposalResponse: ... + + # Vote defines a method to add a vote on a specific proposal. + @abc.abstractmethod + def Vote(self, + request: global___MsgVote, + context: grpc.ServicerContext, + ) -> global___MsgVoteResponse: ... + + # VoteWeighted defines a method to add a weighted vote on a specific proposal. + @abc.abstractmethod + def VoteWeighted(self, + request: global___MsgVoteWeighted, + context: grpc.ServicerContext, + ) -> global___MsgVoteWeightedResponse: ... + + # Deposit defines a method to add deposit on a specific proposal. + @abc.abstractmethod + def Deposit(self, + request: global___MsgDeposit, + context: grpc.ServicerContext, + ) -> global___MsgDepositResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..3b784d2 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi @@ -0,0 +1,32 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.mint.v1beta1.mint_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the mint module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MINTER_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + # minter is a space for holding current inflation information. + @property + def minter(self) -> cosmos.mint.v1beta1.mint_pb2.Minter: ... + # params defines all the paramaters of the module. + @property + def params(self) -> cosmos.mint.v1beta1.mint_pb2.Params: ... + def __init__(self, + *, + minter : typing.Optional[cosmos.mint.v1beta1.mint_pb2.Minter] = ..., + params : typing.Optional[cosmos.mint.v1beta1.mint_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"minter",b"minter",u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"minter",b"minter",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi new file mode 100644 index 0000000..3a8c3b8 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi @@ -0,0 +1,61 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Minter represents the minting state. +class Minter(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INFLATION_FIELD_NUMBER: builtins.int + ANNUAL_PROVISIONS_FIELD_NUMBER: builtins.int + # current annual inflation rate + inflation: typing.Text = ... + # current annual expected provisions + annual_provisions: typing.Text = ... + def __init__(self, + *, + inflation : typing.Text = ..., + annual_provisions : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"annual_provisions",b"annual_provisions",u"inflation",b"inflation"]) -> None: ... +global___Minter = Minter + +# Params holds parameters for the mint module. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MINT_DENOM_FIELD_NUMBER: builtins.int + INFLATION_RATE_CHANGE_FIELD_NUMBER: builtins.int + INFLATION_MAX_FIELD_NUMBER: builtins.int + INFLATION_MIN_FIELD_NUMBER: builtins.int + GOAL_BONDED_FIELD_NUMBER: builtins.int + BLOCKS_PER_YEAR_FIELD_NUMBER: builtins.int + # type of coin to mint + mint_denom: typing.Text = ... + # maximum annual change in inflation rate + inflation_rate_change: typing.Text = ... + # maximum inflation rate + inflation_max: typing.Text = ... + # minimum inflation rate + inflation_min: typing.Text = ... + # goal of percent bonded atoms + goal_bonded: typing.Text = ... + # expected blocks per year + blocks_per_year: builtins.int = ... + def __init__(self, + *, + mint_denom : typing.Text = ..., + inflation_rate_change : typing.Text = ..., + inflation_max : typing.Text = ..., + inflation_min : typing.Text = ..., + goal_bonded : typing.Text = ..., + blocks_per_year : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"blocks_per_year",b"blocks_per_year",u"goal_bonded",b"goal_bonded",u"inflation_max",b"inflation_max",u"inflation_min",b"inflation_min",u"inflation_rate_change",b"inflation_rate_change",u"mint_denom",b"mint_denom"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi new file mode 100644 index 0000000..39a9d03 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .mint_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..ff7a783 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi @@ -0,0 +1,77 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.mint.v1beta1.mint_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryParamsRequest is the request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is the response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + # params defines the parameters of the module. + @property + def params(self) -> cosmos.mint.v1beta1.mint_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.mint.v1beta1.mint_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse + +# QueryInflationRequest is the request type for the Query/Inflation RPC method. +class QueryInflationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryInflationRequest = QueryInflationRequest + +# QueryInflationResponse is the response type for the Query/Inflation RPC +# method. +class QueryInflationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INFLATION_FIELD_NUMBER: builtins.int + # inflation is the current minting inflation value. + inflation: builtins.bytes = ... + def __init__(self, + *, + inflation : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"inflation",b"inflation"]) -> None: ... +global___QueryInflationResponse = QueryInflationResponse + +# QueryAnnualProvisionsRequest is the request type for the +# Query/AnnualProvisions RPC method. +class QueryAnnualProvisionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryAnnualProvisionsRequest = QueryAnnualProvisionsRequest + +# QueryAnnualProvisionsResponse is the response type for the +# Query/AnnualProvisions RPC method. +class QueryAnnualProvisionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ANNUAL_PROVISIONS_FIELD_NUMBER: builtins.int + # annual_provisions is the current minting annual provisions value. + annual_provisions: builtins.bytes = ... + def __init__(self, + *, + annual_provisions : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"annual_provisions",b"annual_provisions"]) -> None: ... +global___QueryAnnualProvisionsResponse = QueryAnnualProvisionsResponse diff --git a/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..58d41cc --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Params returns the total set of minting parameters. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # Inflation returns the current minting inflation value. + Inflation:grpc.UnaryUnaryMultiCallable[ + global___QueryInflationRequest, + global___QueryInflationResponse] = ... + + # AnnualProvisions current minting annual provisions value. + AnnualProvisions:grpc.UnaryUnaryMultiCallable[ + global___QueryAnnualProvisionsRequest, + global___QueryAnnualProvisionsResponse] = ... + + +# Query provides defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Params returns the total set of minting parameters. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # Inflation returns the current minting inflation value. + @abc.abstractmethod + def Inflation(self, + request: global___QueryInflationRequest, + context: grpc.ServicerContext, + ) -> global___QueryInflationResponse: ... + + # AnnualProvisions current minting annual provisions value. + @abc.abstractmethod + def AnnualProvisions(self, + request: global___QueryAnnualProvisionsRequest, + context: grpc.ServicerContext, + ) -> global___QueryAnnualProvisionsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/params/v1beta1/params_pb2.pyi b/pyband/proto/cosmos/params/v1beta1/params_pb2.pyi new file mode 100644 index 0000000..9e316f2 --- /dev/null +++ b/pyband/proto/cosmos/params/v1beta1/params_pb2.pyi @@ -0,0 +1,50 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ParameterChangeProposal defines a proposal to change one or more parameters. +class ParameterChangeProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + CHANGES_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + @property + def changes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParamChange]: ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + changes : typing.Optional[typing.Iterable[global___ParamChange]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"changes",b"changes",u"description",b"description",u"title",b"title"]) -> None: ... +global___ParameterChangeProposal = ParameterChangeProposal + +# ParamChange defines an individual parameter change, for use in +# ParameterChangeProposal. +class ParamChange(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SUBSPACE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + subspace: typing.Text = ... + key: typing.Text = ... + value: typing.Text = ... + def __init__(self, + *, + subspace : typing.Text = ..., + key : typing.Text = ..., + value : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"subspace",b"subspace",u"value",b"value"]) -> None: ... +global___ParamChange = ParamChange diff --git a/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi b/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi new file mode 100644 index 0000000..72a5115 --- /dev/null +++ b/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .params_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..f9e0d20 --- /dev/null +++ b/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.params.v1beta1.params_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryParamsRequest is request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SUBSPACE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + # subspace defines the module to query the parameter for. + subspace: typing.Text = ... + # key defines the key of the parameter in the subspace. + key: typing.Text = ... + def __init__(self, + *, + subspace : typing.Text = ..., + key : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"subspace",b"subspace"]) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAM_FIELD_NUMBER: builtins.int + # param defines the queried parameter. + @property + def param(self) -> cosmos.params.v1beta1.params_pb2.ParamChange: ... + def __init__(self, + *, + param : typing.Optional[cosmos.params.v1beta1.params_pb2.ParamChange] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"param",b"param"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"param",b"param"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..41fc43b --- /dev/null +++ b/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,30 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Params queries a specific parameter of a module, given its subspace and + # key. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Params queries a specific parameter of a module, given its subspace and + # key. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..619f677 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi @@ -0,0 +1,95 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.slashing.v1beta1.slashing_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the slashing module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + SIGNING_INFOS_FIELD_NUMBER: builtins.int + MISSED_BLOCKS_FIELD_NUMBER: builtins.int + # params defines all the paramaters of related to deposit. + @property + def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: ... + # signing_infos represents a map between validator addresses and their + # signing infos. + @property + def signing_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SigningInfo]: ... + # missed_blocks represents a map between validator addresses and their + # missed blocks. + @property + def missed_blocks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorMissedBlocks]: ... + def __init__(self, + *, + params : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.Params] = ..., + signing_infos : typing.Optional[typing.Iterable[global___SigningInfo]] = ..., + missed_blocks : typing.Optional[typing.Iterable[global___ValidatorMissedBlocks]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"missed_blocks",b"missed_blocks",u"params",b"params",u"signing_infos",b"signing_infos"]) -> None: ... +global___GenesisState = GenesisState + +# SigningInfo stores validator signing info of corresponding address. +class SigningInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SIGNING_INFO_FIELD_NUMBER: builtins.int + # address is the validator address. + address: typing.Text = ... + # validator_signing_info represents the signing info of this validator. + @property + def validator_signing_info(self) -> cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo: ... + def __init__(self, + *, + address : typing.Text = ..., + validator_signing_info : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator_signing_info",b"validator_signing_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"validator_signing_info",b"validator_signing_info"]) -> None: ... +global___SigningInfo = SigningInfo + +# ValidatorMissedBlocks contains array of missed blocks of corresponding +# address. +class ValidatorMissedBlocks(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + MISSED_BLOCKS_FIELD_NUMBER: builtins.int + # address is the validator address. + address: typing.Text = ... + # missed_blocks is an array of missed blocks by the validator. + @property + def missed_blocks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MissedBlock]: ... + def __init__(self, + *, + address : typing.Text = ..., + missed_blocks : typing.Optional[typing.Iterable[global___MissedBlock]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"missed_blocks",b"missed_blocks"]) -> None: ... +global___ValidatorMissedBlocks = ValidatorMissedBlocks + +# MissedBlock contains height and missed status as boolean. +class MissedBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + MISSED_FIELD_NUMBER: builtins.int + # index is the height at which the block was missed. + index: builtins.int = ... + # missed is the missed status. + missed: builtins.bool = ... + def __init__(self, + *, + index : builtins.int = ..., + missed : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"missed",b"missed"]) -> None: ... +global___MissedBlock = MissedBlock diff --git a/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..a63ca89 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi @@ -0,0 +1,100 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.slashing.v1beta1.slashing_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryParamsRequest is the request type for the Query/Params RPC method +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is the response type for the Query/Params RPC method +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse + +# QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC +# method +class QuerySigningInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONS_ADDRESS_FIELD_NUMBER: builtins.int + # cons_address is the address to query signing info of + cons_address: typing.Text = ... + def __init__(self, + *, + cons_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"cons_address",b"cons_address"]) -> None: ... +global___QuerySigningInfoRequest = QuerySigningInfoRequest + +# QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC +# method +class QuerySigningInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VAL_SIGNING_INFO_FIELD_NUMBER: builtins.int + # val_signing_info is the signing info of requested val cons address + @property + def val_signing_info(self) -> cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo: ... + def __init__(self, + *, + val_signing_info : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"val_signing_info",b"val_signing_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"val_signing_info",b"val_signing_info"]) -> None: ... +global___QuerySigningInfoResponse = QuerySigningInfoResponse + +# QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC +# method +class QuerySigningInfosRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QuerySigningInfosRequest = QuerySigningInfosRequest + +# QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC +# method +class QuerySigningInfosResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INFO_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # info is the signing info of all validators + @property + def info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + info : typing.Optional[typing.Iterable[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"info",b"info",u"pagination",b"pagination"]) -> None: ... +global___QuerySigningInfosResponse = QuerySigningInfosResponse diff --git a/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..d6cbbc6 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Params queries the parameters of slashing module + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # SigningInfo queries the signing info of given cons address + SigningInfo:grpc.UnaryUnaryMultiCallable[ + global___QuerySigningInfoRequest, + global___QuerySigningInfoResponse] = ... + + # SigningInfos queries signing info of all validators + SigningInfos:grpc.UnaryUnaryMultiCallable[ + global___QuerySigningInfosRequest, + global___QuerySigningInfosResponse] = ... + + +# Query provides defines the gRPC querier service +class QueryServicer(metaclass=abc.ABCMeta): + # Params queries the parameters of slashing module + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # SigningInfo queries the signing info of given cons address + @abc.abstractmethod + def SigningInfo(self, + request: global___QuerySigningInfoRequest, + context: grpc.ServicerContext, + ) -> global___QuerySigningInfoResponse: ... + + # SigningInfos queries signing info of all validators + @abc.abstractmethod + def SigningInfos(self, + request: global___QuerySigningInfosRequest, + context: grpc.ServicerContext, + ) -> global___QuerySigningInfosResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi new file mode 100644 index 0000000..bfabdd2 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi @@ -0,0 +1,78 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ValidatorSigningInfo defines a validator's signing info for monitoring their +# liveness activity. +class ValidatorSigningInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + START_HEIGHT_FIELD_NUMBER: builtins.int + INDEX_OFFSET_FIELD_NUMBER: builtins.int + JAILED_UNTIL_FIELD_NUMBER: builtins.int + TOMBSTONED_FIELD_NUMBER: builtins.int + MISSED_BLOCKS_COUNTER_FIELD_NUMBER: builtins.int + address: typing.Text = ... + # Height at which validator was first a candidate OR was unjailed + start_height: builtins.int = ... + # Index which is incremented each time the validator was a bonded + # in a block and may have signed a precommit or not. This in conjunction with the + # `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. + index_offset: builtins.int = ... + # Timestamp until which the validator is jailed due to liveness downtime. + @property + def jailed_until(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # Whether or not a validator has been tombstoned (killed out of validator set). It is set + # once the validator commits an equivocation or for any other configured misbehiavor. + tombstoned: builtins.bool = ... + # A counter kept to avoid unnecessary array reads. + # Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. + missed_blocks_counter: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + start_height : builtins.int = ..., + index_offset : builtins.int = ..., + jailed_until : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + tombstoned : builtins.bool = ..., + missed_blocks_counter : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"jailed_until",b"jailed_until"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"index_offset",b"index_offset",u"jailed_until",b"jailed_until",u"missed_blocks_counter",b"missed_blocks_counter",u"start_height",b"start_height",u"tombstoned",b"tombstoned"]) -> None: ... +global___ValidatorSigningInfo = ValidatorSigningInfo + +# Params represents the parameters used for by the slashing module. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNED_BLOCKS_WINDOW_FIELD_NUMBER: builtins.int + MIN_SIGNED_PER_WINDOW_FIELD_NUMBER: builtins.int + DOWNTIME_JAIL_DURATION_FIELD_NUMBER: builtins.int + SLASH_FRACTION_DOUBLE_SIGN_FIELD_NUMBER: builtins.int + SLASH_FRACTION_DOWNTIME_FIELD_NUMBER: builtins.int + signed_blocks_window: builtins.int = ... + min_signed_per_window: builtins.bytes = ... + @property + def downtime_jail_duration(self) -> google.protobuf.duration_pb2.Duration: ... + slash_fraction_double_sign: builtins.bytes = ... + slash_fraction_downtime: builtins.bytes = ... + def __init__(self, + *, + signed_blocks_window : builtins.int = ..., + min_signed_per_window : builtins.bytes = ..., + downtime_jail_duration : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + slash_fraction_double_sign : builtins.bytes = ..., + slash_fraction_downtime : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"downtime_jail_duration",b"downtime_jail_duration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"downtime_jail_duration",b"downtime_jail_duration",u"min_signed_per_window",b"min_signed_per_window",u"signed_blocks_window",b"signed_blocks_window",u"slash_fraction_double_sign",b"slash_fraction_double_sign",u"slash_fraction_downtime",b"slash_fraction_downtime"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi new file mode 100644 index 0000000..7e5fee1 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .slashing_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..0778875 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi @@ -0,0 +1,30 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgUnjail defines the Msg/Unjail request type +class MsgUnjail(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + validator_addr: typing.Text = ... + def __init__(self, + *, + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_addr",b"validator_addr"]) -> None: ... +global___MsgUnjail = MsgUnjail + +# MsgUnjailResponse defines the Msg/Unjail response type +class MsgUnjailResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgUnjailResponse = MsgUnjailResponse diff --git a/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..f2f06e3 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,32 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the slashing Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Unjail defines a method for unjailing a jailed validator, thus returning + # them into the bonded validator set, so they can begin receiving provisions + # and rewards again. + Unjail:grpc.UnaryUnaryMultiCallable[ + global___MsgUnjail, + global___MsgUnjailResponse] = ... + + +# Msg defines the slashing Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # Unjail defines a method for unjailing a jailed validator, thus returning + # them into the bonded validator set, so they can begin receiving provisions + # and rewards again. + @abc.abstractmethod + def Unjail(self, + request: global___MsgUnjail, + context: grpc.ServicerContext, + ) -> global___MsgUnjailResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/staking/v1beta1/authz_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/authz_pb2.pyi new file mode 100644 index 0000000..fc618e5 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/authz_pb2.pyi @@ -0,0 +1,85 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# AuthorizationType defines the type of staking module authorization type +class AuthorizationType(_AuthorizationType, metaclass=_AuthorizationTypeEnumTypeWrapper): + pass +class _AuthorizationType: + V = typing.NewType('V', builtins.int) +class _AuthorizationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AuthorizationType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type + AUTHORIZATION_TYPE_UNSPECIFIED = AuthorizationType.V(0) + # AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate + AUTHORIZATION_TYPE_DELEGATE = AuthorizationType.V(1) + # AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate + AUTHORIZATION_TYPE_UNDELEGATE = AuthorizationType.V(2) + # AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate + AUTHORIZATION_TYPE_REDELEGATE = AuthorizationType.V(3) + +# AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type +AUTHORIZATION_TYPE_UNSPECIFIED = AuthorizationType.V(0) +# AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate +AUTHORIZATION_TYPE_DELEGATE = AuthorizationType.V(1) +# AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate +AUTHORIZATION_TYPE_UNDELEGATE = AuthorizationType.V(2) +# AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate +AUTHORIZATION_TYPE_REDELEGATE = AuthorizationType.V(3) +global___AuthorizationType = AuthorizationType + + +# StakeAuthorization defines authorization for delegate/undelegate/redelegate. +class StakeAuthorization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + # Validators defines list of validator addresses. + class Validators(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + @property + def address(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + address : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address"]) -> None: ... + + MAX_TOKENS_FIELD_NUMBER: builtins.int + ALLOW_LIST_FIELD_NUMBER: builtins.int + DENY_LIST_FIELD_NUMBER: builtins.int + AUTHORIZATION_TYPE_FIELD_NUMBER: builtins.int + # max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is + # empty, there is no spend limit and any amount of coins can be delegated. + @property + def max_tokens(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + # allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's + # account. + @property + def allow_list(self) -> global___StakeAuthorization.Validators: ... + # deny_list specifies list of validator addresses to whom grantee can not delegate tokens. + @property + def deny_list(self) -> global___StakeAuthorization.Validators: ... + # authorization_type defines one of AuthorizationType. + authorization_type: global___AuthorizationType.V = ... + def __init__(self, + *, + max_tokens : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + allow_list : typing.Optional[global___StakeAuthorization.Validators] = ..., + deny_list : typing.Optional[global___StakeAuthorization.Validators] = ..., + authorization_type : global___AuthorizationType.V = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allow_list",b"allow_list",u"deny_list",b"deny_list",u"max_tokens",b"max_tokens",u"validators",b"validators"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_list",b"allow_list",u"authorization_type",b"authorization_type",u"deny_list",b"deny_list",u"max_tokens",b"max_tokens",u"validators",b"validators"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"validators",b"validators"]) -> typing.Optional[typing_extensions.Literal["allow_list","deny_list"]]: ... +global___StakeAuthorization = StakeAuthorization diff --git a/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.pyi new file mode 100644 index 0000000..9e33667 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .authz_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..2f6335b --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi @@ -0,0 +1,79 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.staking.v1beta1.staking_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the staking module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + LAST_TOTAL_POWER_FIELD_NUMBER: builtins.int + LAST_VALIDATOR_POWERS_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + DELEGATIONS_FIELD_NUMBER: builtins.int + UNBONDING_DELEGATIONS_FIELD_NUMBER: builtins.int + REDELEGATIONS_FIELD_NUMBER: builtins.int + EXPORTED_FIELD_NUMBER: builtins.int + # params defines all the paramaters of related to deposit. + @property + def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: ... + # last_total_power tracks the total amounts of bonded tokens recorded during + # the previous end block. + last_total_power: builtins.bytes = ... + # last_validator_powers is a special index that provides a historical list + # of the last-block's bonded validators. + @property + def last_validator_powers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LastValidatorPower]: ... + # delegations defines the validator set at genesis. + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... + # delegations defines the delegations active at genesis. + @property + def delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Delegation]: ... + # unbonding_delegations defines the unbonding delegations active at genesis. + @property + def unbonding_delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... + # redelegations defines the redelegations active at genesis. + @property + def redelegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Redelegation]: ... + exported: builtins.bool = ... + def __init__(self, + *, + params : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Params] = ..., + last_total_power : builtins.bytes = ..., + last_validator_powers : typing.Optional[typing.Iterable[global___LastValidatorPower]] = ..., + validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., + delegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Delegation]] = ..., + unbonding_delegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., + redelegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Redelegation]] = ..., + exported : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegations",b"delegations",u"exported",b"exported",u"last_total_power",b"last_total_power",u"last_validator_powers",b"last_validator_powers",u"params",b"params",u"redelegations",b"redelegations",u"unbonding_delegations",b"unbonding_delegations",u"validators",b"validators"]) -> None: ... +global___GenesisState = GenesisState + +# LastValidatorPower required for validator set update logic. +class LastValidatorPower(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + # address is the address of the validator. + address: typing.Text = ... + # power defines the power of the validator. + power: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + power : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... +global___LastValidatorPower = LastValidatorPower diff --git a/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..9f9b08a --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi @@ -0,0 +1,505 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.staking.v1beta1.staking_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryValidatorsRequest is request type for Query/Validators RPC method. +class QueryValidatorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATUS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # status enables to query for validators matching a given status. + status: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + status : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"status",b"status"]) -> None: ... +global___QueryValidatorsRequest = QueryValidatorsRequest + +# QueryValidatorsResponse is response type for the Query/Validators RPC method +class QueryValidatorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validators contains all the queried validators. + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... +global___QueryValidatorsResponse = QueryValidatorsResponse + +# QueryValidatorRequest is response type for the Query/Validator RPC method +class QueryValidatorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + def __init__(self, + *, + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryValidatorRequest = QueryValidatorRequest + +# QueryValidatorResponse is response type for the Query/Validator RPC method +class QueryValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + # validator defines the the validator info. + @property + def validator(self) -> cosmos.staking.v1beta1.staking_pb2.Validator: ... + def __init__(self, + *, + validator : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Validator] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... +global___QueryValidatorResponse = QueryValidatorResponse + +# QueryValidatorDelegationsRequest is request type for the +# Query/ValidatorDelegations RPC method +class QueryValidatorDelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + validator_addr : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryValidatorDelegationsRequest = QueryValidatorDelegationsRequest + +# QueryValidatorDelegationsResponse is response type for the +# Query/ValidatorDelegations RPC method +class QueryValidatorDelegationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATION_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def delegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + delegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegation_responses",b"delegation_responses",u"pagination",b"pagination"]) -> None: ... +global___QueryValidatorDelegationsResponse = QueryValidatorDelegationsResponse + +# QueryValidatorUnbondingDelegationsRequest is required type for the +# Query/ValidatorUnbondingDelegations RPC method +class QueryValidatorUnbondingDelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + validator_addr : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryValidatorUnbondingDelegationsRequest = QueryValidatorUnbondingDelegationsRequest + +# QueryValidatorUnbondingDelegationsResponse is response type for the +# Query/ValidatorUnbondingDelegations RPC method. +class QueryValidatorUnbondingDelegationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UNBONDING_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def unbonding_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + unbonding_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"unbonding_responses",b"unbonding_responses"]) -> None: ... +global___QueryValidatorUnbondingDelegationsResponse = QueryValidatorUnbondingDelegationsResponse + +# QueryDelegationRequest is request type for the Query/Delegation RPC method. +class QueryDelegationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryDelegationRequest = QueryDelegationRequest + +# QueryDelegationResponse is response type for the Query/Delegation RPC method. +class QueryDelegationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATION_RESPONSE_FIELD_NUMBER: builtins.int + # delegation_responses defines the delegation info of a delegation. + @property + def delegation_response(self) -> cosmos.staking.v1beta1.staking_pb2.DelegationResponse: ... + def __init__(self, + *, + delegation_response : typing.Optional[cosmos.staking.v1beta1.staking_pb2.DelegationResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"delegation_response",b"delegation_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegation_response",b"delegation_response"]) -> None: ... +global___QueryDelegationResponse = QueryDelegationResponse + +# QueryUnbondingDelegationRequest is request type for the +# Query/UnbondingDelegation RPC method. +class QueryUnbondingDelegationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryUnbondingDelegationRequest = QueryUnbondingDelegationRequest + +# QueryDelegationResponse is response type for the Query/UnbondingDelegation +# RPC method. +class QueryUnbondingDelegationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UNBOND_FIELD_NUMBER: builtins.int + # unbond defines the unbonding information of a delegation. + @property + def unbond(self) -> cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation: ... + def __init__(self, + *, + unbond : typing.Optional[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"unbond",b"unbond"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"unbond",b"unbond"]) -> None: ... +global___QueryUnbondingDelegationResponse = QueryUnbondingDelegationResponse + +# QueryDelegatorDelegationsRequest is request type for the +# Query/DelegatorDelegations RPC method. +class QueryDelegatorDelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... +global___QueryDelegatorDelegationsRequest = QueryDelegatorDelegationsRequest + +# QueryDelegatorDelegationsResponse is response type for the +# Query/DelegatorDelegations RPC method. +class QueryDelegatorDelegationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATION_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegation_responses defines all the delegations' info of a delegator. + @property + def delegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + delegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegation_responses",b"delegation_responses",u"pagination",b"pagination"]) -> None: ... +global___QueryDelegatorDelegationsResponse = QueryDelegatorDelegationsResponse + +# QueryDelegatorUnbondingDelegationsRequest is request type for the +# Query/DelegatorUnbondingDelegations RPC method. +class QueryDelegatorUnbondingDelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... +global___QueryDelegatorUnbondingDelegationsRequest = QueryDelegatorUnbondingDelegationsRequest + +# QueryUnbondingDelegatorDelegationsResponse is response type for the +# Query/UnbondingDelegatorDelegations RPC method. +class QueryDelegatorUnbondingDelegationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UNBONDING_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def unbonding_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + unbonding_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"unbonding_responses",b"unbonding_responses"]) -> None: ... +global___QueryDelegatorUnbondingDelegationsResponse = QueryDelegatorUnbondingDelegationsResponse + +# QueryRedelegationsRequest is request type for the Query/Redelegations RPC +# method. +class QueryRedelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + SRC_VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + DST_VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # src_validator_addr defines the validator address to redelegate from. + src_validator_addr: typing.Text = ... + # dst_validator_addr defines the validator address to redelegate to. + dst_validator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + src_validator_addr : typing.Text = ..., + dst_validator_addr : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"dst_validator_addr",b"dst_validator_addr",u"pagination",b"pagination",u"src_validator_addr",b"src_validator_addr"]) -> None: ... +global___QueryRedelegationsRequest = QueryRedelegationsRequest + +# QueryRedelegationsResponse is response type for the Query/Redelegations RPC +# method. +class QueryRedelegationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REDELEGATION_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + @property + def redelegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.RedelegationResponse]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + redelegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.RedelegationResponse]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"redelegation_responses",b"redelegation_responses"]) -> None: ... +global___QueryRedelegationsResponse = QueryRedelegationsResponse + +# QueryDelegatorValidatorsRequest is request type for the +# Query/DelegatorValidators RPC method. +class QueryDelegatorValidatorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... +global___QueryDelegatorValidatorsRequest = QueryDelegatorValidatorsRequest + +# QueryDelegatorValidatorsResponse is response type for the +# Query/DelegatorValidators RPC method. +class QueryDelegatorValidatorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validators defines the the validators' info of a delegator. + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... +global___QueryDelegatorValidatorsResponse = QueryDelegatorValidatorsResponse + +# QueryDelegatorValidatorRequest is request type for the +# Query/DelegatorValidator RPC method. +class QueryDelegatorValidatorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryDelegatorValidatorRequest = QueryDelegatorValidatorRequest + +# QueryDelegatorValidatorResponse response type for the +# Query/DelegatorValidator RPC method. +class QueryDelegatorValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + # validator defines the the validator info. + @property + def validator(self) -> cosmos.staking.v1beta1.staking_pb2.Validator: ... + def __init__(self, + *, + validator : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Validator] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... +global___QueryDelegatorValidatorResponse = QueryDelegatorValidatorResponse + +# QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC +# method. +class QueryHistoricalInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + # height defines at which height to query the historical info. + height: builtins.int = ... + def __init__(self, + *, + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... +global___QueryHistoricalInfoRequest = QueryHistoricalInfoRequest + +# QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC +# method. +class QueryHistoricalInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HIST_FIELD_NUMBER: builtins.int + # hist defines the historical info at the given height. + @property + def hist(self) -> cosmos.staking.v1beta1.staking_pb2.HistoricalInfo: ... + def __init__(self, + *, + hist : typing.Optional[cosmos.staking.v1beta1.staking_pb2.HistoricalInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"hist",b"hist"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hist",b"hist"]) -> None: ... +global___QueryHistoricalInfoResponse = QueryHistoricalInfoResponse + +# QueryPoolRequest is request type for the Query/Pool RPC method. +class QueryPoolRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryPoolRequest = QueryPoolRequest + +# QueryPoolResponse is response type for the Query/Pool RPC method. +class QueryPoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + POOL_FIELD_NUMBER: builtins.int + # pool defines the pool info. + @property + def pool(self) -> cosmos.staking.v1beta1.staking_pb2.Pool: ... + def __init__(self, + *, + pool : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Pool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> None: ... +global___QueryPoolResponse = QueryPoolResponse + +# QueryParamsRequest is request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + # params holds all the parameters of this module. + @property + def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..93bc7c8 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,192 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Validators queries all validators that match the given status. + Validators:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorsRequest, + global___QueryValidatorsResponse] = ... + + # Validator queries validator info for given validator address. + Validator:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorRequest, + global___QueryValidatorResponse] = ... + + # ValidatorDelegations queries delegate info for given validator. + ValidatorDelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorDelegationsRequest, + global___QueryValidatorDelegationsResponse] = ... + + # ValidatorUnbondingDelegations queries unbonding delegations of a validator. + ValidatorUnbondingDelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorUnbondingDelegationsRequest, + global___QueryValidatorUnbondingDelegationsResponse] = ... + + # Delegation queries delegate info for given validator delegator pair. + Delegation:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegationRequest, + global___QueryDelegationResponse] = ... + + # UnbondingDelegation queries unbonding info for given validator delegator + # pair. + UnbondingDelegation:grpc.UnaryUnaryMultiCallable[ + global___QueryUnbondingDelegationRequest, + global___QueryUnbondingDelegationResponse] = ... + + # DelegatorDelegations queries all delegations of a given delegator address. + DelegatorDelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorDelegationsRequest, + global___QueryDelegatorDelegationsResponse] = ... + + # DelegatorUnbondingDelegations queries all unbonding delegations of a given + # delegator address. + DelegatorUnbondingDelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorUnbondingDelegationsRequest, + global___QueryDelegatorUnbondingDelegationsResponse] = ... + + # Redelegations queries redelegations of given address. + Redelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryRedelegationsRequest, + global___QueryRedelegationsResponse] = ... + + # DelegatorValidators queries all validators info for given delegator + # address. + DelegatorValidators:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorValidatorsRequest, + global___QueryDelegatorValidatorsResponse] = ... + + # DelegatorValidator queries validator info for given delegator validator + # pair. + DelegatorValidator:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorValidatorRequest, + global___QueryDelegatorValidatorResponse] = ... + + # HistoricalInfo queries the historical info for given height. + HistoricalInfo:grpc.UnaryUnaryMultiCallable[ + global___QueryHistoricalInfoRequest, + global___QueryHistoricalInfoResponse] = ... + + # Pool queries the pool info. + Pool:grpc.UnaryUnaryMultiCallable[ + global___QueryPoolRequest, + global___QueryPoolResponse] = ... + + # Parameters queries the staking parameters. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Validators queries all validators that match the given status. + @abc.abstractmethod + def Validators(self, + request: global___QueryValidatorsRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorsResponse: ... + + # Validator queries validator info for given validator address. + @abc.abstractmethod + def Validator(self, + request: global___QueryValidatorRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorResponse: ... + + # ValidatorDelegations queries delegate info for given validator. + @abc.abstractmethod + def ValidatorDelegations(self, + request: global___QueryValidatorDelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorDelegationsResponse: ... + + # ValidatorUnbondingDelegations queries unbonding delegations of a validator. + @abc.abstractmethod + def ValidatorUnbondingDelegations(self, + request: global___QueryValidatorUnbondingDelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorUnbondingDelegationsResponse: ... + + # Delegation queries delegate info for given validator delegator pair. + @abc.abstractmethod + def Delegation(self, + request: global___QueryDelegationRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegationResponse: ... + + # UnbondingDelegation queries unbonding info for given validator delegator + # pair. + @abc.abstractmethod + def UnbondingDelegation(self, + request: global___QueryUnbondingDelegationRequest, + context: grpc.ServicerContext, + ) -> global___QueryUnbondingDelegationResponse: ... + + # DelegatorDelegations queries all delegations of a given delegator address. + @abc.abstractmethod + def DelegatorDelegations(self, + request: global___QueryDelegatorDelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorDelegationsResponse: ... + + # DelegatorUnbondingDelegations queries all unbonding delegations of a given + # delegator address. + @abc.abstractmethod + def DelegatorUnbondingDelegations(self, + request: global___QueryDelegatorUnbondingDelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorUnbondingDelegationsResponse: ... + + # Redelegations queries redelegations of given address. + @abc.abstractmethod + def Redelegations(self, + request: global___QueryRedelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryRedelegationsResponse: ... + + # DelegatorValidators queries all validators info for given delegator + # address. + @abc.abstractmethod + def DelegatorValidators(self, + request: global___QueryDelegatorValidatorsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorValidatorsResponse: ... + + # DelegatorValidator queries validator info for given delegator validator + # pair. + @abc.abstractmethod + def DelegatorValidator(self, + request: global___QueryDelegatorValidatorRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorValidatorResponse: ... + + # HistoricalInfo queries the historical info for given height. + @abc.abstractmethod + def HistoricalInfo(self, + request: global___QueryHistoricalInfoRequest, + context: grpc.ServicerContext, + ) -> global___QueryHistoricalInfoResponse: ... + + # Pool queries the pool info. + @abc.abstractmethod + def Pool(self, + request: global___QueryPoolRequest, + context: grpc.ServicerContext, + ) -> global___QueryPoolResponse: ... + + # Parameters queries the staking parameters. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi new file mode 100644 index 0000000..c01aa99 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi @@ -0,0 +1,513 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import tendermint.types.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BondStatus is the status of a validator. +class BondStatus(_BondStatus, metaclass=_BondStatusEnumTypeWrapper): + pass +class _BondStatus: + V = typing.NewType('V', builtins.int) +class _BondStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BondStatus.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # UNSPECIFIED defines an invalid validator status. + BOND_STATUS_UNSPECIFIED = BondStatus.V(0) + # UNBONDED defines a validator that is not bonded. + BOND_STATUS_UNBONDED = BondStatus.V(1) + # UNBONDING defines a validator that is unbonding. + BOND_STATUS_UNBONDING = BondStatus.V(2) + # BONDED defines a validator that is bonded. + BOND_STATUS_BONDED = BondStatus.V(3) + +# UNSPECIFIED defines an invalid validator status. +BOND_STATUS_UNSPECIFIED = BondStatus.V(0) +# UNBONDED defines a validator that is not bonded. +BOND_STATUS_UNBONDED = BondStatus.V(1) +# UNBONDING defines a validator that is unbonding. +BOND_STATUS_UNBONDING = BondStatus.V(2) +# BONDED defines a validator that is bonded. +BOND_STATUS_BONDED = BondStatus.V(3) +global___BondStatus = BondStatus + + +# HistoricalInfo contains header and validator information for a given block. +# It is stored as part of staking module's state, which persists the `n` most +# recent HistoricalInfo +# (`n` is set by the staking module's `historical_entries` parameter). +class HistoricalInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEADER_FIELD_NUMBER: builtins.int + VALSET_FIELD_NUMBER: builtins.int + @property + def header(self) -> tendermint.types.types_pb2.Header: ... + @property + def valset(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... + def __init__(self, + *, + header : typing.Optional[tendermint.types.types_pb2.Header] = ..., + valset : typing.Optional[typing.Iterable[global___Validator]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"header",b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"header",b"header",u"valset",b"valset"]) -> None: ... +global___HistoricalInfo = HistoricalInfo + +# CommissionRates defines the initial commission rates to be used for creating +# a validator. +class CommissionRates(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RATE_FIELD_NUMBER: builtins.int + MAX_RATE_FIELD_NUMBER: builtins.int + MAX_CHANGE_RATE_FIELD_NUMBER: builtins.int + # rate is the commission rate charged to delegators, as a fraction. + rate: typing.Text = ... + # max_rate defines the maximum commission rate which validator can ever charge, as a fraction. + max_rate: typing.Text = ... + # max_change_rate defines the maximum daily increase of the validator commission, as a fraction. + max_change_rate: typing.Text = ... + def __init__(self, + *, + rate : typing.Text = ..., + max_rate : typing.Text = ..., + max_change_rate : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_change_rate",b"max_change_rate",u"max_rate",b"max_rate",u"rate",b"rate"]) -> None: ... +global___CommissionRates = CommissionRates + +# Commission defines commission parameters for a given validator. +class Commission(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMISSION_RATES_FIELD_NUMBER: builtins.int + UPDATE_TIME_FIELD_NUMBER: builtins.int + # commission_rates defines the initial commission rates to be used for creating a validator. + @property + def commission_rates(self) -> global___CommissionRates: ... + # update_time is the last time the commission rate was changed. + @property + def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + commission_rates : typing.Optional[global___CommissionRates] = ..., + update_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commission_rates",b"commission_rates",u"update_time",b"update_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission_rates",b"commission_rates",u"update_time",b"update_time"]) -> None: ... +global___Commission = Commission + +# Description defines a validator description. +class Description(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MONIKER_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + WEBSITE_FIELD_NUMBER: builtins.int + SECURITY_CONTACT_FIELD_NUMBER: builtins.int + DETAILS_FIELD_NUMBER: builtins.int + # moniker defines a human-readable name for the validator. + moniker: typing.Text = ... + # identity defines an optional identity signature (ex. UPort or Keybase). + identity: typing.Text = ... + # website defines an optional website link. + website: typing.Text = ... + # security_contact defines an optional email for security contact. + security_contact: typing.Text = ... + # details define other optional details. + details: typing.Text = ... + def __init__(self, + *, + moniker : typing.Text = ..., + identity : typing.Text = ..., + website : typing.Text = ..., + security_contact : typing.Text = ..., + details : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"details",b"details",u"identity",b"identity",u"moniker",b"moniker",u"security_contact",b"security_contact",u"website",b"website"]) -> None: ... +global___Description = Description + +# Validator defines a validator, together with the total amount of the +# Validator's bond shares and their exchange rate to coins. Slashing results in +# a decrease in the exchange rate, allowing correct calculation of future +# undelegations without iterating over delegators. When coins are delegated to +# this validator, the validator is credited with a delegation whose number of +# bond shares is based on the amount of coins delegated divided by the current +# exchange rate. Voting power can be calculated as total bonded shares +# multiplied by exchange rate. +class Validator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OPERATOR_ADDRESS_FIELD_NUMBER: builtins.int + CONSENSUS_PUBKEY_FIELD_NUMBER: builtins.int + JAILED_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + TOKENS_FIELD_NUMBER: builtins.int + DELEGATOR_SHARES_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + UNBONDING_HEIGHT_FIELD_NUMBER: builtins.int + UNBONDING_TIME_FIELD_NUMBER: builtins.int + COMMISSION_FIELD_NUMBER: builtins.int + MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int + # operator_address defines the address of the validator's operator; bech encoded in JSON. + operator_address: typing.Text = ... + # consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. + @property + def consensus_pubkey(self) -> google.protobuf.any_pb2.Any: ... + # jailed defined whether the validator has been jailed from bonded status or not. + jailed: builtins.bool = ... + # status is the validator status (bonded/unbonding/unbonded). + status: global___BondStatus.V = ... + # tokens define the delegated tokens (incl. self-delegation). + tokens: typing.Text = ... + # delegator_shares defines total shares issued to a validator's delegators. + delegator_shares: typing.Text = ... + # description defines the description terms for the validator. + @property + def description(self) -> global___Description: ... + # unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + unbonding_height: builtins.int = ... + # unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + @property + def unbonding_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # commission defines the commission parameters. + @property + def commission(self) -> global___Commission: ... + # min_self_delegation is the validator's self declared minimum self delegation. + min_self_delegation: typing.Text = ... + def __init__(self, + *, + operator_address : typing.Text = ..., + consensus_pubkey : typing.Optional[google.protobuf.any_pb2.Any] = ..., + jailed : builtins.bool = ..., + status : global___BondStatus.V = ..., + tokens : typing.Text = ..., + delegator_shares : typing.Text = ..., + description : typing.Optional[global___Description] = ..., + unbonding_height : builtins.int = ..., + unbonding_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + commission : typing.Optional[global___Commission] = ..., + min_self_delegation : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"consensus_pubkey",b"consensus_pubkey",u"description",b"description",u"unbonding_time",b"unbonding_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"consensus_pubkey",b"consensus_pubkey",u"delegator_shares",b"delegator_shares",u"description",b"description",u"jailed",b"jailed",u"min_self_delegation",b"min_self_delegation",u"operator_address",b"operator_address",u"status",b"status",u"tokens",b"tokens",u"unbonding_height",b"unbonding_height",u"unbonding_time",b"unbonding_time"]) -> None: ... +global___Validator = Validator + +# ValAddresses defines a repeated set of validator addresses. +class ValAddresses(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESSES_FIELD_NUMBER: builtins.int + @property + def addresses(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + addresses : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"addresses",b"addresses"]) -> None: ... +global___ValAddresses = ValAddresses + +# DVPair is struct that just has a delegator-validator pair with no other data. +# It is intended to be used as a marshalable pointer. For example, a DVPair can +# be used to construct the key to getting an UnbondingDelegation from state. +class DVPair(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___DVPair = DVPair + +# DVPairs defines an array of DVPair objects. +class DVPairs(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAIRS_FIELD_NUMBER: builtins.int + @property + def pairs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DVPair]: ... + def __init__(self, + *, + pairs : typing.Optional[typing.Iterable[global___DVPair]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pairs",b"pairs"]) -> None: ... +global___DVPairs = DVPairs + +# DVVTriplet is struct that just has a delegator-validator-validator triplet +# with no other data. It is intended to be used as a marshalable pointer. For +# example, a DVVTriplet can be used to construct the key to getting a +# Redelegation from state. +class DVVTriplet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_src_address: typing.Text = ... + validator_dst_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_src_address : typing.Text = ..., + validator_dst_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... +global___DVVTriplet = DVVTriplet + +# DVVTriplets defines an array of DVVTriplet objects. +class DVVTriplets(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TRIPLETS_FIELD_NUMBER: builtins.int + @property + def triplets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DVVTriplet]: ... + def __init__(self, + *, + triplets : typing.Optional[typing.Iterable[global___DVVTriplet]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"triplets",b"triplets"]) -> None: ... +global___DVVTriplets = DVVTriplets + +# Delegation represents the bond with tokens held by an account. It is +# owned by one delegator, and is associated with the voting power of one +# validator. +class Delegation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + SHARES_FIELD_NUMBER: builtins.int + # delegator_address is the bech32-encoded address of the delegator. + delegator_address: typing.Text = ... + # validator_address is the bech32-encoded address of the validator. + validator_address: typing.Text = ... + # shares define the delegation shares received. + shares: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + shares : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"shares",b"shares",u"validator_address",b"validator_address"]) -> None: ... +global___Delegation = Delegation + +# UnbondingDelegation stores all of a single delegator's unbonding bonds +# for a single validator in an time-ordered list. +class UnbondingDelegation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + # delegator_address is the bech32-encoded address of the delegator. + delegator_address: typing.Text = ... + # validator_address is the bech32-encoded address of the validator. + validator_address: typing.Text = ... + # entries are the unbonding delegation entries. + # unbonding delegation entries + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UnbondingDelegationEntry]: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + entries : typing.Optional[typing.Iterable[global___UnbondingDelegationEntry]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"entries",b"entries",u"validator_address",b"validator_address"]) -> None: ... +global___UnbondingDelegation = UnbondingDelegation + +# UnbondingDelegationEntry defines an unbonding object with relevant metadata. +class UnbondingDelegationEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CREATION_HEIGHT_FIELD_NUMBER: builtins.int + COMPLETION_TIME_FIELD_NUMBER: builtins.int + INITIAL_BALANCE_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + # creation_height is the height which the unbonding took place. + creation_height: builtins.int = ... + # completion_time is the unix time for unbonding completion. + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # initial_balance defines the tokens initially scheduled to receive at completion. + initial_balance: typing.Text = ... + # balance defines the tokens to receive at completion. + balance: typing.Text = ... + def __init__(self, + *, + creation_height : builtins.int = ..., + completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + initial_balance : typing.Text = ..., + balance : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"completion_time",b"completion_time",u"creation_height",b"creation_height",u"initial_balance",b"initial_balance"]) -> None: ... +global___UnbondingDelegationEntry = UnbondingDelegationEntry + +# RedelegationEntry defines a redelegation object with relevant metadata. +class RedelegationEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CREATION_HEIGHT_FIELD_NUMBER: builtins.int + COMPLETION_TIME_FIELD_NUMBER: builtins.int + INITIAL_BALANCE_FIELD_NUMBER: builtins.int + SHARES_DST_FIELD_NUMBER: builtins.int + # creation_height defines the height which the redelegation took place. + creation_height: builtins.int = ... + # completion_time defines the unix time for redelegation completion. + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # initial_balance defines the initial balance when redelegation started. + initial_balance: typing.Text = ... + # shares_dst is the amount of destination-validator shares created by redelegation. + shares_dst: typing.Text = ... + def __init__(self, + *, + creation_height : builtins.int = ..., + completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + initial_balance : typing.Text = ..., + shares_dst : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time",u"creation_height",b"creation_height",u"initial_balance",b"initial_balance",u"shares_dst",b"shares_dst"]) -> None: ... +global___RedelegationEntry = RedelegationEntry + +# Redelegation contains the list of a particular delegator's redelegating bonds +# from a particular source validator to a particular destination validator. +class Redelegation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + # delegator_address is the bech32-encoded address of the delegator. + delegator_address: typing.Text = ... + # validator_src_address is the validator redelegation source operator address. + validator_src_address: typing.Text = ... + # validator_dst_address is the validator redelegation destination operator address. + validator_dst_address: typing.Text = ... + # entries are the redelegation entries. + # redelegation entries + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RedelegationEntry]: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_src_address : typing.Text = ..., + validator_dst_address : typing.Text = ..., + entries : typing.Optional[typing.Iterable[global___RedelegationEntry]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"entries",b"entries",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... +global___Redelegation = Redelegation + +# Params defines the parameters for the staking module. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UNBONDING_TIME_FIELD_NUMBER: builtins.int + MAX_VALIDATORS_FIELD_NUMBER: builtins.int + MAX_ENTRIES_FIELD_NUMBER: builtins.int + HISTORICAL_ENTRIES_FIELD_NUMBER: builtins.int + BOND_DENOM_FIELD_NUMBER: builtins.int + # unbonding_time is the time duration of unbonding. + @property + def unbonding_time(self) -> google.protobuf.duration_pb2.Duration: ... + # max_validators is the maximum number of validators. + max_validators: builtins.int = ... + # max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). + max_entries: builtins.int = ... + # historical_entries is the number of historical entries to persist. + historical_entries: builtins.int = ... + # bond_denom defines the bondable coin denomination. + bond_denom: typing.Text = ... + def __init__(self, + *, + unbonding_time : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + max_validators : builtins.int = ..., + max_entries : builtins.int = ..., + historical_entries : builtins.int = ..., + bond_denom : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"unbonding_time",b"unbonding_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bond_denom",b"bond_denom",u"historical_entries",b"historical_entries",u"max_entries",b"max_entries",u"max_validators",b"max_validators",u"unbonding_time",b"unbonding_time"]) -> None: ... +global___Params = Params + +# DelegationResponse is equivalent to Delegation except that it contains a +# balance in addition to shares which is more suitable for client responses. +class DelegationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATION_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + @property + def delegation(self) -> global___Delegation: ... + @property + def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + delegation : typing.Optional[global___Delegation] = ..., + balance : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"delegation",b"delegation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"delegation",b"delegation"]) -> None: ... +global___DelegationResponse = DelegationResponse + +# RedelegationEntryResponse is equivalent to a RedelegationEntry except that it +# contains a balance in addition to shares which is more suitable for client +# responses. +class RedelegationEntryResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REDELEGATION_ENTRY_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + @property + def redelegation_entry(self) -> global___RedelegationEntry: ... + balance: typing.Text = ... + def __init__(self, + *, + redelegation_entry : typing.Optional[global___RedelegationEntry] = ..., + balance : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"redelegation_entry",b"redelegation_entry"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"redelegation_entry",b"redelegation_entry"]) -> None: ... +global___RedelegationEntryResponse = RedelegationEntryResponse + +# RedelegationResponse is equivalent to a Redelegation except that its entries +# contain a balance in addition to shares which is more suitable for client +# responses. +class RedelegationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REDELEGATION_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + @property + def redelegation(self) -> global___Redelegation: ... + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RedelegationEntryResponse]: ... + def __init__(self, + *, + redelegation : typing.Optional[global___Redelegation] = ..., + entries : typing.Optional[typing.Iterable[global___RedelegationEntryResponse]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"redelegation",b"redelegation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries",u"redelegation",b"redelegation"]) -> None: ... +global___RedelegationResponse = RedelegationResponse + +# Pool is used for tracking bonded and not-bonded token supply of the bond +# denomination. +class Pool(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NOT_BONDED_TOKENS_FIELD_NUMBER: builtins.int + BONDED_TOKENS_FIELD_NUMBER: builtins.int + not_bonded_tokens: typing.Text = ... + bonded_tokens: typing.Text = ... + def __init__(self, + *, + not_bonded_tokens : typing.Text = ..., + bonded_tokens : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bonded_tokens",b"bonded_tokens",u"not_bonded_tokens",b"not_bonded_tokens"]) -> None: ... +global___Pool = Pool diff --git a/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi new file mode 100644 index 0000000..6268dbf --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .staking_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..18b93dc --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi @@ -0,0 +1,192 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import cosmos.staking.v1beta1.staking_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgCreateValidator defines a SDK message for creating a new validator. +class MsgCreateValidator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTION_FIELD_NUMBER: builtins.int + COMMISSION_FIELD_NUMBER: builtins.int + MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + PUBKEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + @property + def description(self) -> cosmos.staking.v1beta1.staking_pb2.Description: ... + @property + def commission(self) -> cosmos.staking.v1beta1.staking_pb2.CommissionRates: ... + min_self_delegation: typing.Text = ... + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + @property + def pubkey(self) -> google.protobuf.any_pb2.Any: ... + @property + def value(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + description : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Description] = ..., + commission : typing.Optional[cosmos.staking.v1beta1.staking_pb2.CommissionRates] = ..., + min_self_delegation : typing.Text = ..., + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + pubkey : typing.Optional[google.protobuf.any_pb2.Any] = ..., + value : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"description",b"description",u"pubkey",b"pubkey",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"delegator_address",b"delegator_address",u"description",b"description",u"min_self_delegation",b"min_self_delegation",u"pubkey",b"pubkey",u"validator_address",b"validator_address",u"value",b"value"]) -> None: ... +global___MsgCreateValidator = MsgCreateValidator + +# MsgCreateValidatorResponse defines the Msg/CreateValidator response type. +class MsgCreateValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateValidatorResponse = MsgCreateValidatorResponse + +# MsgEditValidator defines a SDK message for editing an existing validator. +class MsgEditValidator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DESCRIPTION_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + COMMISSION_RATE_FIELD_NUMBER: builtins.int + MIN_SELF_DELEGATION_FIELD_NUMBER: builtins.int + @property + def description(self) -> cosmos.staking.v1beta1.staking_pb2.Description: ... + validator_address: typing.Text = ... + # We pass a reference to the new commission rate and min self delegation as + # it's not mandatory to update. If not updated, the deserialized rate will be + # zero with no way to distinguish if an update was intended. + # REF: #2373 + commission_rate: typing.Text = ... + min_self_delegation: typing.Text = ... + def __init__(self, + *, + description : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Description] = ..., + validator_address : typing.Text = ..., + commission_rate : typing.Text = ..., + min_self_delegation : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"description",b"description"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission_rate",b"commission_rate",u"description",b"description",u"min_self_delegation",b"min_self_delegation",u"validator_address",b"validator_address"]) -> None: ... +global___MsgEditValidator = MsgEditValidator + +# MsgEditValidatorResponse defines the Msg/EditValidator response type. +class MsgEditValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgEditValidatorResponse = MsgEditValidatorResponse + +# MsgDelegate defines a SDK message for performing a delegation of coins +# from a delegator to a validator. +class MsgDelegate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___MsgDelegate = MsgDelegate + +# MsgDelegateResponse defines the Msg/Delegate response type. +class MsgDelegateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgDelegateResponse = MsgDelegateResponse + +# MsgBeginRedelegate defines a SDK message for performing a redelegation +# of coins from a delegator and source validator to a destination validator. +class MsgBeginRedelegate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SRC_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_DST_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_src_address: typing.Text = ... + validator_dst_address: typing.Text = ... + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_src_address : typing.Text = ..., + validator_dst_address : typing.Text = ..., + amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... +global___MsgBeginRedelegate = MsgBeginRedelegate + +# MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. +class MsgBeginRedelegateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMPLETION_TIME_FIELD_NUMBER: builtins.int + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> None: ... +global___MsgBeginRedelegateResponse = MsgBeginRedelegateResponse + +# MsgUndelegate defines a SDK message for performing an undelegation from a +# delegate and a validator. +class MsgUndelegate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___MsgUndelegate = MsgUndelegate + +# MsgUndelegateResponse defines the Msg/Undelegate response type. +class MsgUndelegateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMPLETION_TIME_FIELD_NUMBER: builtins.int + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> None: ... +global___MsgUndelegateResponse = MsgUndelegateResponse diff --git a/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..e57c081 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,82 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the staking Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # CreateValidator defines a method for creating a new validator. + CreateValidator:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateValidator, + global___MsgCreateValidatorResponse] = ... + + # EditValidator defines a method for editing an existing validator. + EditValidator:grpc.UnaryUnaryMultiCallable[ + global___MsgEditValidator, + global___MsgEditValidatorResponse] = ... + + # Delegate defines a method for performing a delegation of coins + # from a delegator to a validator. + Delegate:grpc.UnaryUnaryMultiCallable[ + global___MsgDelegate, + global___MsgDelegateResponse] = ... + + # BeginRedelegate defines a method for performing a redelegation + # of coins from a delegator and source validator to a destination validator. + BeginRedelegate:grpc.UnaryUnaryMultiCallable[ + global___MsgBeginRedelegate, + global___MsgBeginRedelegateResponse] = ... + + # Undelegate defines a method for performing an undelegation from a + # delegate and a validator. + Undelegate:grpc.UnaryUnaryMultiCallable[ + global___MsgUndelegate, + global___MsgUndelegateResponse] = ... + + +# Msg defines the staking Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # CreateValidator defines a method for creating a new validator. + @abc.abstractmethod + def CreateValidator(self, + request: global___MsgCreateValidator, + context: grpc.ServicerContext, + ) -> global___MsgCreateValidatorResponse: ... + + # EditValidator defines a method for editing an existing validator. + @abc.abstractmethod + def EditValidator(self, + request: global___MsgEditValidator, + context: grpc.ServicerContext, + ) -> global___MsgEditValidatorResponse: ... + + # Delegate defines a method for performing a delegation of coins + # from a delegator to a validator. + @abc.abstractmethod + def Delegate(self, + request: global___MsgDelegate, + context: grpc.ServicerContext, + ) -> global___MsgDelegateResponse: ... + + # BeginRedelegate defines a method for performing a redelegation + # of coins from a delegator and source validator to a destination validator. + @abc.abstractmethod + def BeginRedelegate(self, + request: global___MsgBeginRedelegate, + context: grpc.ServicerContext, + ) -> global___MsgBeginRedelegateResponse: ... + + # Undelegate defines a method for performing an undelegation from a + # delegate and a validator. + @abc.abstractmethod + def Undelegate(self, + request: global___MsgUndelegate, + context: grpc.ServicerContext, + ) -> global___MsgUndelegateResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi new file mode 100644 index 0000000..a32bc5d --- /dev/null +++ b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi @@ -0,0 +1,149 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.crypto.multisig.v1beta1.multisig_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# SignMode represents a signing mode with its own security guarantees. +class SignMode(_SignMode, metaclass=_SignModeEnumTypeWrapper): + pass +class _SignMode: + V = typing.NewType('V', builtins.int) +class _SignModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SignMode.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + # rejected + SIGN_MODE_UNSPECIFIED = SignMode.V(0) + # SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + # verified with raw bytes from Tx + SIGN_MODE_DIRECT = SignMode.V(1) + # SIGN_MODE_TEXTUAL is a future signing mode that will verify some + # human-readable textual representation on top of the binary representation + # from SIGN_MODE_DIRECT + SIGN_MODE_TEXTUAL = SignMode.V(2) + # SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + # Amino JSON and will be removed in the future + SIGN_MODE_LEGACY_AMINO_JSON = SignMode.V(127) + +# SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be +# rejected +SIGN_MODE_UNSPECIFIED = SignMode.V(0) +# SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is +# verified with raw bytes from Tx +SIGN_MODE_DIRECT = SignMode.V(1) +# SIGN_MODE_TEXTUAL is a future signing mode that will verify some +# human-readable textual representation on top of the binary representation +# from SIGN_MODE_DIRECT +SIGN_MODE_TEXTUAL = SignMode.V(2) +# SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses +# Amino JSON and will be removed in the future +SIGN_MODE_LEGACY_AMINO_JSON = SignMode.V(127) +global___SignMode = SignMode + + +# SignatureDescriptors wraps multiple SignatureDescriptor's. +class SignatureDescriptors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURES_FIELD_NUMBER: builtins.int + # signatures are the signature descriptors + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignatureDescriptor]: ... + def __init__(self, + *, + signatures : typing.Optional[typing.Iterable[global___SignatureDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signatures",b"signatures"]) -> None: ... +global___SignatureDescriptors = SignatureDescriptors + +# SignatureDescriptor is a convenience type which represents the full data for +# a signature including the public key of the signer, signing modes and the +# signature itself. It is primarily used for coordinating signatures between +# clients. +class SignatureDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + # Data represents signature data + class Data(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + # Single is the signature data for a single signer + class Single(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODE_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + # mode is the signing mode of the single signer + mode: global___SignMode.V = ... + # signature is the raw signature bytes + signature: builtins.bytes = ... + def __init__(self, + *, + mode : global___SignMode.V = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode",u"signature",b"signature"]) -> None: ... + + # Multi is the signature data for a multisig public key + class Multi(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BITARRAY_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + # bitarray specifies which keys within the multisig are signing + @property + def bitarray(self) -> cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray: ... + # signatures is the signatures of the multi-signature + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignatureDescriptor.Data]: ... + def __init__(self, + *, + bitarray : typing.Optional[cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray] = ..., + signatures : typing.Optional[typing.Iterable[global___SignatureDescriptor.Data]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray",u"signatures",b"signatures"]) -> None: ... + + SINGLE_FIELD_NUMBER: builtins.int + MULTI_FIELD_NUMBER: builtins.int + # single represents a single signer + @property + def single(self) -> global___SignatureDescriptor.Data.Single: ... + # multi represents a multisig signer + @property + def multi(self) -> global___SignatureDescriptor.Data.Multi: ... + def __init__(self, + *, + single : typing.Optional[global___SignatureDescriptor.Data.Single] = ..., + multi : typing.Optional[global___SignatureDescriptor.Data.Multi] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["single","multi"]]: ... + + PUBLIC_KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # public_key is the public key of the signer + @property + def public_key(self) -> google.protobuf.any_pb2.Any: ... + @property + def data(self) -> global___SignatureDescriptor.Data: ... + # sequence is the sequence of the account, which describes the + # number of committed transactions signed by a given address. It is used to prevent + # replay attacks. + sequence: builtins.int = ... + def __init__(self, + *, + public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + data : typing.Optional[global___SignatureDescriptor.Data] = ..., + sequence : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"data",b"data",u"public_key",b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"public_key",b"public_key",u"sequence",b"sequence"]) -> None: ... +global___SignatureDescriptor = SignatureDescriptor diff --git a/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi new file mode 100644 index 0000000..2556fdb --- /dev/null +++ b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .signing_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi b/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi new file mode 100644 index 0000000..69285cf --- /dev/null +++ b/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi @@ -0,0 +1,231 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.abci.v1beta1.abci_pb2 +import cosmos.base.query.v1beta1.pagination_pb2 +import cosmos.tx.v1beta1.tx_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# OrderBy defines the sorting order +class OrderBy(_OrderBy, metaclass=_OrderByEnumTypeWrapper): + pass +class _OrderBy: + V = typing.NewType('V', builtins.int) +class _OrderByEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OrderBy.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + ORDER_BY_UNSPECIFIED = OrderBy.V(0) + # ORDER_BY_ASC defines ascending order + ORDER_BY_ASC = OrderBy.V(1) + # ORDER_BY_DESC defines descending order + ORDER_BY_DESC = OrderBy.V(2) + +# ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. +ORDER_BY_UNSPECIFIED = OrderBy.V(0) +# ORDER_BY_ASC defines ascending order +ORDER_BY_ASC = OrderBy.V(1) +# ORDER_BY_DESC defines descending order +ORDER_BY_DESC = OrderBy.V(2) +global___OrderBy = OrderBy + + +# BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. +class BroadcastMode(_BroadcastMode, metaclass=_BroadcastModeEnumTypeWrapper): + pass +class _BroadcastMode: + V = typing.NewType('V', builtins.int) +class _BroadcastModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BroadcastMode.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # zero-value for mode ordering + BROADCAST_MODE_UNSPECIFIED = BroadcastMode.V(0) + # BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + # the tx to be committed in a block. + BROADCAST_MODE_BLOCK = BroadcastMode.V(1) + # BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + # a CheckTx execution response only. + BROADCAST_MODE_SYNC = BroadcastMode.V(2) + # BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + # immediately. + BROADCAST_MODE_ASYNC = BroadcastMode.V(3) + +# zero-value for mode ordering +BROADCAST_MODE_UNSPECIFIED = BroadcastMode.V(0) +# BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for +# the tx to be committed in a block. +BROADCAST_MODE_BLOCK = BroadcastMode.V(1) +# BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for +# a CheckTx execution response only. +BROADCAST_MODE_SYNC = BroadcastMode.V(2) +# BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns +# immediately. +BROADCAST_MODE_ASYNC = BroadcastMode.V(3) +global___BroadcastMode = BroadcastMode + + +# GetTxsEventRequest is the request type for the Service.TxsByEvents +# RPC method. +class GetTxsEventRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVENTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + # events is the list of transaction event type. + @property + def events(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + order_by: global___OrderBy.V = ... + def __init__(self, + *, + events : typing.Optional[typing.Iterable[typing.Text]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + order_by : global___OrderBy.V = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events",u"order_by",b"order_by",u"pagination",b"pagination"]) -> None: ... +global___GetTxsEventRequest = GetTxsEventRequest + +# GetTxsEventResponse is the response type for the Service.TxsByEvents +# RPC method. +class GetTxsEventResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TXS_FIELD_NUMBER: builtins.int + TX_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # txs is the list of queried transactions. + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.tx.v1beta1.tx_pb2.Tx]: ... + # tx_responses is the list of queried TxResponses. + @property + def tx_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.abci.v1beta1.abci_pb2.TxResponse]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + txs : typing.Optional[typing.Iterable[cosmos.tx.v1beta1.tx_pb2.Tx]] = ..., + tx_responses : typing.Optional[typing.Iterable[cosmos.base.abci.v1beta1.abci_pb2.TxResponse]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination",u"tx_responses",b"tx_responses",u"txs",b"txs"]) -> None: ... +global___GetTxsEventResponse = GetTxsEventResponse + +# BroadcastTxRequest is the request type for the Service.BroadcastTxRequest +# RPC method. +class BroadcastTxRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_BYTES_FIELD_NUMBER: builtins.int + MODE_FIELD_NUMBER: builtins.int + # tx_bytes is the raw transaction. + tx_bytes: builtins.bytes = ... + mode: global___BroadcastMode.V = ... + def __init__(self, + *, + tx_bytes : builtins.bytes = ..., + mode : global___BroadcastMode.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode",u"tx_bytes",b"tx_bytes"]) -> None: ... +global___BroadcastTxRequest = BroadcastTxRequest + +# BroadcastTxResponse is the response type for the +# Service.BroadcastTx method. +class BroadcastTxResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_RESPONSE_FIELD_NUMBER: builtins.int + # tx_response is the queried TxResponses. + @property + def tx_response(self) -> cosmos.base.abci.v1beta1.abci_pb2.TxResponse: ... + def __init__(self, + *, + tx_response : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.TxResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx_response",b"tx_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx_response",b"tx_response"]) -> None: ... +global___BroadcastTxResponse = BroadcastTxResponse + +# SimulateRequest is the request type for the Service.Simulate +# RPC method. +class SimulateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_FIELD_NUMBER: builtins.int + TX_BYTES_FIELD_NUMBER: builtins.int + # tx is the transaction to simulate. + # Deprecated. Send raw tx bytes instead. + @property + def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: ... + # tx_bytes is the raw transaction. + tx_bytes: builtins.bytes = ... + def __init__(self, + *, + tx : typing.Optional[cosmos.tx.v1beta1.tx_pb2.Tx] = ..., + tx_bytes : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"tx_bytes",b"tx_bytes"]) -> None: ... +global___SimulateRequest = SimulateRequest + +# SimulateResponse is the response type for the +# Service.SimulateRPC method. +class SimulateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GAS_INFO_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + # gas_info is the information about gas used in the simulation. + @property + def gas_info(self) -> cosmos.base.abci.v1beta1.abci_pb2.GasInfo: ... + # result is the result of the simulation. + @property + def result(self) -> cosmos.base.abci.v1beta1.abci_pb2.Result: ... + def __init__(self, + *, + gas_info : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.GasInfo] = ..., + result : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.Result] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> None: ... +global___SimulateResponse = SimulateResponse + +# GetTxRequest is the request type for the Service.GetTx +# RPC method. +class GetTxRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + # hash is the tx hash to query, encoded as a hex string. + hash: typing.Text = ... + def __init__(self, + *, + hash : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... +global___GetTxRequest = GetTxRequest + +# GetTxResponse is the response type for the Service.GetTx method. +class GetTxResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_FIELD_NUMBER: builtins.int + TX_RESPONSE_FIELD_NUMBER: builtins.int + # tx is the queried transaction. + @property + def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: ... + # tx_response is the queried TxResponses. + @property + def tx_response(self) -> cosmos.base.abci.v1beta1.abci_pb2.TxResponse: ... + def __init__(self, + *, + tx : typing.Optional[cosmos.tx.v1beta1.tx_pb2.Tx] = ..., + tx_response : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.TxResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"tx_response",b"tx_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"tx_response",b"tx_response"]) -> None: ... +global___GetTxResponse = GetTxResponse diff --git a/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi b/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi new file mode 100644 index 0000000..0944b29 --- /dev/null +++ b/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .service_pb2 import * +# Service defines a gRPC service for interacting with transactions. +class ServiceStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Simulate simulates executing a transaction for estimating gas usage. + Simulate:grpc.UnaryUnaryMultiCallable[ + global___SimulateRequest, + global___SimulateResponse] = ... + + # GetTx fetches a tx by hash. + GetTx:grpc.UnaryUnaryMultiCallable[ + global___GetTxRequest, + global___GetTxResponse] = ... + + # BroadcastTx broadcast transaction. + BroadcastTx:grpc.UnaryUnaryMultiCallable[ + global___BroadcastTxRequest, + global___BroadcastTxResponse] = ... + + # GetTxsEvent fetches txs by event. + GetTxsEvent:grpc.UnaryUnaryMultiCallable[ + global___GetTxsEventRequest, + global___GetTxsEventResponse] = ... + + +# Service defines a gRPC service for interacting with transactions. +class ServiceServicer(metaclass=abc.ABCMeta): + # Simulate simulates executing a transaction for estimating gas usage. + @abc.abstractmethod + def Simulate(self, + request: global___SimulateRequest, + context: grpc.ServicerContext, + ) -> global___SimulateResponse: ... + + # GetTx fetches a tx by hash. + @abc.abstractmethod + def GetTx(self, + request: global___GetTxRequest, + context: grpc.ServicerContext, + ) -> global___GetTxResponse: ... + + # BroadcastTx broadcast transaction. + @abc.abstractmethod + def BroadcastTx(self, + request: global___BroadcastTxRequest, + context: grpc.ServicerContext, + ) -> global___BroadcastTxResponse: ... + + # GetTxsEvent fetches txs by event. + @abc.abstractmethod + def GetTxsEvent(self, + request: global___GetTxsEventRequest, + context: grpc.ServicerContext, + ) -> global___GetTxsEventResponse: ... + + +def add_ServiceServicer_to_server(servicer: ServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..556d2ad --- /dev/null +++ b/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi @@ -0,0 +1,293 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import cosmos.crypto.multisig.v1beta1.multisig_pb2 +import cosmos.tx.signing.v1beta1.signing_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Tx is the standard type used for broadcasting transactions. +class Tx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BODY_FIELD_NUMBER: builtins.int + AUTH_INFO_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + # body is the processable content of the transaction + @property + def body(self) -> global___TxBody: ... + # auth_info is the authorization related content of the transaction, + # specifically signers, signer modes and fee + @property + def auth_info(self) -> global___AuthInfo: ... + # signatures is a list of signatures that matches the length and order of + # AuthInfo's signer_infos to allow connecting signature meta information like + # public key and signing mode by position. + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + body : typing.Optional[global___TxBody] = ..., + auth_info : typing.Optional[global___AuthInfo] = ..., + signatures : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"auth_info",b"auth_info",u"body",b"body"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"auth_info",b"auth_info",u"body",b"body",u"signatures",b"signatures"]) -> None: ... +global___Tx = Tx + +# TxRaw is a variant of Tx that pins the signer's exact binary representation +# of body and auth_info. This is used for signing, broadcasting and +# verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and +# the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used +# as the transaction ID. +class TxRaw(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BODY_BYTES_FIELD_NUMBER: builtins.int + AUTH_INFO_BYTES_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + # body_bytes is a protobuf serialization of a TxBody that matches the + # representation in SignDoc. + body_bytes: builtins.bytes = ... + # auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + # representation in SignDoc. + auth_info_bytes: builtins.bytes = ... + # signatures is a list of signatures that matches the length and order of + # AuthInfo's signer_infos to allow connecting signature meta information like + # public key and signing mode by position. + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + body_bytes : builtins.bytes = ..., + auth_info_bytes : builtins.bytes = ..., + signatures : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"auth_info_bytes",b"auth_info_bytes",u"body_bytes",b"body_bytes",u"signatures",b"signatures"]) -> None: ... +global___TxRaw = TxRaw + +# SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. +class SignDoc(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BODY_BYTES_FIELD_NUMBER: builtins.int + AUTH_INFO_BYTES_FIELD_NUMBER: builtins.int + CHAIN_ID_FIELD_NUMBER: builtins.int + ACCOUNT_NUMBER_FIELD_NUMBER: builtins.int + # body_bytes is protobuf serialization of a TxBody that matches the + # representation in TxRaw. + body_bytes: builtins.bytes = ... + # auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + # representation in TxRaw. + auth_info_bytes: builtins.bytes = ... + # chain_id is the unique identifier of the chain this transaction targets. + # It prevents signed transactions from being used on another chain by an + # attacker + chain_id: typing.Text = ... + # account_number is the account number of the account in state + account_number: builtins.int = ... + def __init__(self, + *, + body_bytes : builtins.bytes = ..., + auth_info_bytes : builtins.bytes = ..., + chain_id : typing.Text = ..., + account_number : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"account_number",b"account_number",u"auth_info_bytes",b"auth_info_bytes",u"body_bytes",b"body_bytes",u"chain_id",b"chain_id"]) -> None: ... +global___SignDoc = SignDoc + +# TxBody is the body of a transaction that all signers sign over. +class TxBody(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MESSAGES_FIELD_NUMBER: builtins.int + MEMO_FIELD_NUMBER: builtins.int + TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int + EXTENSION_OPTIONS_FIELD_NUMBER: builtins.int + NON_CRITICAL_EXTENSION_OPTIONS_FIELD_NUMBER: builtins.int + # messages is a list of messages to be executed. The required signers of + # those messages define the number and order of elements in AuthInfo's + # signer_infos and Tx's signatures. Each required signer address is added to + # the list only the first time it occurs. + # By convention, the first required signer (usually from the first message) + # is referred to as the primary signer and pays the fee for the whole + # transaction. + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + # memo is any arbitrary note/comment to be added to the transaction. + # WARNING: in clients, any publicly exposed text should not be called memo, + # but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). + memo: typing.Text = ... + # timeout is the block height after which this transaction will not + # be processed by the chain + timeout_height: builtins.int = ... + # extension_options are arbitrary options that can be added by chains + # when the default options are not sufficient. If any of these are present + # and can't be handled, the transaction will be rejected + @property + def extension_options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + # extension_options are arbitrary options that can be added by chains + # when the default options are not sufficient. If any of these are present + # and can't be handled, they will be ignored + @property + def non_critical_extension_options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + messages : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + memo : typing.Text = ..., + timeout_height : builtins.int = ..., + extension_options : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + non_critical_extension_options : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"extension_options",b"extension_options",u"memo",b"memo",u"messages",b"messages",u"non_critical_extension_options",b"non_critical_extension_options",u"timeout_height",b"timeout_height"]) -> None: ... +global___TxBody = TxBody + +# AuthInfo describes the fee and signer modes that are used to sign a +# transaction. +class AuthInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNER_INFOS_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + # signer_infos defines the signing modes for the required signers. The number + # and order of elements must match the required signers from TxBody's + # messages. The first element is the primary signer and the one which pays + # the fee. + @property + def signer_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignerInfo]: ... + # Fee is the fee and gas limit for the transaction. The first signer is the + # primary signer and the one which pays the fee. The fee can be calculated + # based on the cost of evaluating the body and doing signature verification + # of the signers. This can be estimated via simulation. + @property + def fee(self) -> global___Fee: ... + def __init__(self, + *, + signer_infos : typing.Optional[typing.Iterable[global___SignerInfo]] = ..., + fee : typing.Optional[global___Fee] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"fee",b"fee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fee",b"fee",u"signer_infos",b"signer_infos"]) -> None: ... +global___AuthInfo = AuthInfo + +# SignerInfo describes the public key and signing mode of a single top-level +# signer. +class SignerInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUBLIC_KEY_FIELD_NUMBER: builtins.int + MODE_INFO_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # public_key is the public key of the signer. It is optional for accounts + # that already exist in state. If unset, the verifier can use the required \ + # signer address for this position and lookup the public key. + @property + def public_key(self) -> google.protobuf.any_pb2.Any: ... + # mode_info describes the signing mode of the signer and is a nested + # structure to support nested multisig pubkey's + @property + def mode_info(self) -> global___ModeInfo: ... + # sequence is the sequence of the account, which describes the + # number of committed transactions signed by a given address. It is used to + # prevent replay attacks. + sequence: builtins.int = ... + def __init__(self, + *, + public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + mode_info : typing.Optional[global___ModeInfo] = ..., + sequence : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"mode_info",b"mode_info",u"public_key",b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"mode_info",b"mode_info",u"public_key",b"public_key",u"sequence",b"sequence"]) -> None: ... +global___SignerInfo = SignerInfo + +# ModeInfo describes the signing mode of a single or nested multisig signer. +class ModeInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + # Single is the mode info for a single signer. It is structured as a message + # to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + # future + class Single(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODE_FIELD_NUMBER: builtins.int + # mode is the signing mode of the single signer + mode: cosmos.tx.signing.v1beta1.signing_pb2.SignMode.V = ... + def __init__(self, + *, + mode : cosmos.tx.signing.v1beta1.signing_pb2.SignMode.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode"]) -> None: ... + + # Multi is the mode info for a multisig public key + class Multi(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BITARRAY_FIELD_NUMBER: builtins.int + MODE_INFOS_FIELD_NUMBER: builtins.int + # bitarray specifies which keys within the multisig are signing + @property + def bitarray(self) -> cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray: ... + # mode_infos is the corresponding modes of the signers of the multisig + # which could include nested multisig public keys + @property + def mode_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ModeInfo]: ... + def __init__(self, + *, + bitarray : typing.Optional[cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray] = ..., + mode_infos : typing.Optional[typing.Iterable[global___ModeInfo]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray",u"mode_infos",b"mode_infos"]) -> None: ... + + SINGLE_FIELD_NUMBER: builtins.int + MULTI_FIELD_NUMBER: builtins.int + # single represents a single signer + @property + def single(self) -> global___ModeInfo.Single: ... + # multi represents a nested multisig signer + @property + def multi(self) -> global___ModeInfo.Multi: ... + def __init__(self, + *, + single : typing.Optional[global___ModeInfo.Single] = ..., + multi : typing.Optional[global___ModeInfo.Multi] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["single","multi"]]: ... +global___ModeInfo = ModeInfo + +# Fee includes the amount of coins paid in fees and the maximum +# gas to be used by the transaction. The ratio yields an effective "gasprice", +# which must be above some miminum to be accepted into the mempool. +class Fee(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AMOUNT_FIELD_NUMBER: builtins.int + GAS_LIMIT_FIELD_NUMBER: builtins.int + PAYER_FIELD_NUMBER: builtins.int + GRANTER_FIELD_NUMBER: builtins.int + # amount is the amount of coins to be paid as a fee + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # gas_limit is the maximum gas that can be used in transaction processing + # before an out of gas error occurs + gas_limit: builtins.int = ... + # if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + # the payer must be a tx signer (and thus have signed this field in AuthInfo). + # setting this field does *not* change the ordering of required signers for the transaction. + payer: typing.Text = ... + # if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + # to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + # not support fee grants, this will fail + granter: typing.Text = ... + def __init__(self, + *, + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + gas_limit : builtins.int = ..., + payer : typing.Text = ..., + granter : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"gas_limit",b"gas_limit",u"granter",b"granter",u"payer",b"payer"]) -> None: ... +global___Fee = Fee diff --git a/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..e636386 --- /dev/null +++ b/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .tx_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..ecb7bf7 --- /dev/null +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi @@ -0,0 +1,124 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.upgrade.v1beta1.upgrade_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC +# method. +class QueryCurrentPlanRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryCurrentPlanRequest = QueryCurrentPlanRequest + +# QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC +# method. +class QueryCurrentPlanResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PLAN_FIELD_NUMBER: builtins.int + # plan is the current upgrade plan. + @property + def plan(self) -> cosmos.upgrade.v1beta1.upgrade_pb2.Plan: ... + def __init__(self, + *, + plan : typing.Optional[cosmos.upgrade.v1beta1.upgrade_pb2.Plan] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> None: ... +global___QueryCurrentPlanResponse = QueryCurrentPlanResponse + +# QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC +# method. +class QueryAppliedPlanRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + # name is the name of the applied plan to query for. + name: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... +global___QueryAppliedPlanRequest = QueryAppliedPlanRequest + +# QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC +# method. +class QueryAppliedPlanResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + # height is the block height at which the plan was applied. + height: builtins.int = ... + def __init__(self, + *, + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... +global___QueryAppliedPlanResponse = QueryAppliedPlanResponse + +# QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState +# RPC method. +class QueryUpgradedConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LAST_HEIGHT_FIELD_NUMBER: builtins.int + # last height of the current chain must be sent in request + # as this is the height under which next consensus state is stored + last_height: builtins.int = ... + def __init__(self, + *, + last_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"last_height",b"last_height"]) -> None: ... +global___QueryUpgradedConsensusStateRequest = QueryUpgradedConsensusStateRequest + +# QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState +# RPC method. +class QueryUpgradedConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UPGRADED_CONSENSUS_STATE_FIELD_NUMBER: builtins.int + upgraded_consensus_state: builtins.bytes = ... + def __init__(self, + *, + upgraded_consensus_state : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> None: ... +global___QueryUpgradedConsensusStateResponse = QueryUpgradedConsensusStateResponse + +# QueryModuleVersionsRequest is the request type for the Query/ModuleVersions +# RPC method. +class QueryModuleVersionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODULE_NAME_FIELD_NUMBER: builtins.int + # module_name is a field to query a specific module + # consensus version from state. Leaving this empty will + # fetch the full list of module versions from state + module_name: typing.Text = ... + def __init__(self, + *, + module_name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"module_name",b"module_name"]) -> None: ... +global___QueryModuleVersionsRequest = QueryModuleVersionsRequest + +# QueryModuleVersionsResponse is the response type for the Query/ModuleVersions +# RPC method. +class QueryModuleVersionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODULE_VERSIONS_FIELD_NUMBER: builtins.int + # module_versions is a list of module names with their consensus versions. + @property + def module_versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.upgrade.v1beta1.upgrade_pb2.ModuleVersion]: ... + def __init__(self, + *, + module_versions : typing.Optional[typing.Iterable[cosmos.upgrade.v1beta1.upgrade_pb2.ModuleVersion]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"module_versions",b"module_versions"]) -> None: ... +global___QueryModuleVersionsResponse = QueryModuleVersionsResponse diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..3de1341 --- /dev/null +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,70 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC upgrade querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # CurrentPlan queries the current upgrade plan. + CurrentPlan:grpc.UnaryUnaryMultiCallable[ + global___QueryCurrentPlanRequest, + global___QueryCurrentPlanResponse] = ... + + # AppliedPlan queries a previously applied upgrade plan by its name. + AppliedPlan:grpc.UnaryUnaryMultiCallable[ + global___QueryAppliedPlanRequest, + global___QueryAppliedPlanResponse] = ... + + # UpgradedConsensusState queries the consensus state that will serve + # as a trusted kernel for the next version of this chain. It will only be + # stored at the last height of this chain. + # UpgradedConsensusState RPC not supported with legacy querier + UpgradedConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryUpgradedConsensusStateRequest, + global___QueryUpgradedConsensusStateResponse] = ... + + # ModuleVersions queries the list of module versions from state. + ModuleVersions:grpc.UnaryUnaryMultiCallable[ + global___QueryModuleVersionsRequest, + global___QueryModuleVersionsResponse] = ... + + +# Query defines the gRPC upgrade querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # CurrentPlan queries the current upgrade plan. + @abc.abstractmethod + def CurrentPlan(self, + request: global___QueryCurrentPlanRequest, + context: grpc.ServicerContext, + ) -> global___QueryCurrentPlanResponse: ... + + # AppliedPlan queries a previously applied upgrade plan by its name. + @abc.abstractmethod + def AppliedPlan(self, + request: global___QueryAppliedPlanRequest, + context: grpc.ServicerContext, + ) -> global___QueryAppliedPlanResponse: ... + + # UpgradedConsensusState queries the consensus state that will serve + # as a trusted kernel for the next version of this chain. It will only be + # stored at the last height of this chain. + # UpgradedConsensusState RPC not supported with legacy querier + @abc.abstractmethod + def UpgradedConsensusState(self, + request: global___QueryUpgradedConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryUpgradedConsensusStateResponse: ... + + # ModuleVersions queries the list of module versions from state. + @abc.abstractmethod + def ModuleVersions(self, + request: global___QueryModuleVersionsRequest, + context: grpc.ServicerContext, + ) -> global___QueryModuleVersionsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi new file mode 100644 index 0000000..bf622b1 --- /dev/null +++ b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi @@ -0,0 +1,111 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Plan specifies information about a planned upgrade and when it should occur. +class Plan(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + UPGRADED_CLIENT_STATE_FIELD_NUMBER: builtins.int + # Sets the name for the upgrade. This name will be used by the upgraded + # version of the software to apply any special "on-upgrade" commands during + # the first BeginBlock method after the upgrade is applied. It is also used + # to detect whether a software version can handle a given upgrade. If no + # upgrade handler with this name has been set in the software, it will be + # assumed that the software is out-of-date when the upgrade Time or Height is + # reached and the software will exit. + name: typing.Text = ... + # Deprecated: Time based upgrades have been deprecated. Time based upgrade logic + # has been removed from the SDK. + # If this field is not empty, an error will be thrown. + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # The height at which the upgrade must be performed. + # Only used if Time is not set. + height: builtins.int = ... + # Any application specific upgrade info to be included on-chain + # such as a git commit that validators could automatically upgrade to + info: typing.Text = ... + # Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been + # moved to the IBC module in the sub module 02-client. + # If this field is not empty, an error will be thrown. + @property + def upgraded_client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + name : typing.Text = ..., + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + height : builtins.int = ..., + info : typing.Text = ..., + upgraded_client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"time",b"time",u"upgraded_client_state",b"upgraded_client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"info",b"info",u"name",b"name",u"time",b"time",u"upgraded_client_state",b"upgraded_client_state"]) -> None: ... +global___Plan = Plan + +# SoftwareUpgradeProposal is a gov Content type for initiating a software +# upgrade. +class SoftwareUpgradeProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + PLAN_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + @property + def plan(self) -> global___Plan: ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + plan : typing.Optional[global___Plan] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"plan",b"plan",u"title",b"title"]) -> None: ... +global___SoftwareUpgradeProposal = SoftwareUpgradeProposal + +# CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software +# upgrade. +class CancelSoftwareUpgradeProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"title",b"title"]) -> None: ... +global___CancelSoftwareUpgradeProposal = CancelSoftwareUpgradeProposal + +# ModuleVersion specifies a module and its consensus version. +class ModuleVersion(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + # name of the app module + name: typing.Text = ... + # consensus version of the app module + version: builtins.int = ... + def __init__(self, + *, + name : typing.Text = ..., + version : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"version",b"version"]) -> None: ... +global___ModuleVersion = ModuleVersion diff --git a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi new file mode 100644 index 0000000..dec3ec0 --- /dev/null +++ b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .upgrade_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..a6a9853 --- /dev/null +++ b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi @@ -0,0 +1,46 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgCreateVestingAccount defines a message that enables creating a vesting +# account. +class MsgCreateVestingAccount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FROM_ADDRESS_FIELD_NUMBER: builtins.int + TO_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + END_TIME_FIELD_NUMBER: builtins.int + DELAYED_FIELD_NUMBER: builtins.int + from_address: typing.Text = ... + to_address: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + end_time: builtins.int = ... + delayed: builtins.bool = ... + def __init__(self, + *, + from_address : typing.Text = ..., + to_address : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + end_time : builtins.int = ..., + delayed : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delayed",b"delayed",u"end_time",b"end_time",u"from_address",b"from_address",u"to_address",b"to_address"]) -> None: ... +global___MsgCreateVestingAccount = MsgCreateVestingAccount + +# MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. +class MsgCreateVestingAccountResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateVestingAccountResponse = MsgCreateVestingAccountResponse diff --git a/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..0652b42 --- /dev/null +++ b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,30 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the bank Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # CreateVestingAccount defines a method that enables creating a vesting + # account. + CreateVestingAccount:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateVestingAccount, + global___MsgCreateVestingAccountResponse] = ... + + +# Msg defines the bank Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # CreateVestingAccount defines a method that enables creating a vesting + # account. + @abc.abstractmethod + def CreateVestingAccount(self, + request: global___MsgCreateVestingAccount, + context: grpc.ServicerContext, + ) -> global___MsgCreateVestingAccountResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi new file mode 100644 index 0000000..63dac72 --- /dev/null +++ b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi @@ -0,0 +1,132 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.auth.v1beta1.auth_pb2 +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BaseVestingAccount implements the VestingAccount interface. It contains all +# the necessary fields needed for any vesting account implementation. +class BaseVestingAccount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BASE_ACCOUNT_FIELD_NUMBER: builtins.int + ORIGINAL_VESTING_FIELD_NUMBER: builtins.int + DELEGATED_FREE_FIELD_NUMBER: builtins.int + DELEGATED_VESTING_FIELD_NUMBER: builtins.int + END_TIME_FIELD_NUMBER: builtins.int + @property + def base_account(self) -> cosmos.auth.v1beta1.auth_pb2.BaseAccount: ... + @property + def original_vesting(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + @property + def delegated_free(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + @property + def delegated_vesting(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + end_time: builtins.int = ... + def __init__(self, + *, + base_account : typing.Optional[cosmos.auth.v1beta1.auth_pb2.BaseAccount] = ..., + original_vesting : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + delegated_free : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + delegated_vesting : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + end_time : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_account",b"base_account",u"delegated_free",b"delegated_free",u"delegated_vesting",b"delegated_vesting",u"end_time",b"end_time",u"original_vesting",b"original_vesting"]) -> None: ... +global___BaseVestingAccount = BaseVestingAccount + +# ContinuousVestingAccount implements the VestingAccount interface. It +# continuously vests by unlocking coins linearly with respect to time. +class ContinuousVestingAccount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int + START_TIME_FIELD_NUMBER: builtins.int + @property + def base_vesting_account(self) -> global___BaseVestingAccount: ... + start_time: builtins.int = ... + def __init__(self, + *, + base_vesting_account : typing.Optional[global___BaseVestingAccount] = ..., + start_time : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account",u"start_time",b"start_time"]) -> None: ... +global___ContinuousVestingAccount = ContinuousVestingAccount + +# DelayedVestingAccount implements the VestingAccount interface. It vests all +# coins after a specific time, but non prior. In other words, it keeps them +# locked until a specified time. +class DelayedVestingAccount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int + @property + def base_vesting_account(self) -> global___BaseVestingAccount: ... + def __init__(self, + *, + base_vesting_account : typing.Optional[global___BaseVestingAccount] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> None: ... +global___DelayedVestingAccount = DelayedVestingAccount + +# Period defines a length of time and amount of coins that will vest. +class Period(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LENGTH_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + length: builtins.int = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + length : builtins.int = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"length",b"length"]) -> None: ... +global___Period = Period + +# PeriodicVestingAccount implements the VestingAccount interface. It +# periodically vests by unlocking coins during each specified period. +class PeriodicVestingAccount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int + START_TIME_FIELD_NUMBER: builtins.int + VESTING_PERIODS_FIELD_NUMBER: builtins.int + @property + def base_vesting_account(self) -> global___BaseVestingAccount: ... + start_time: builtins.int = ... + @property + def vesting_periods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Period]: ... + def __init__(self, + *, + base_vesting_account : typing.Optional[global___BaseVestingAccount] = ..., + start_time : builtins.int = ..., + vesting_periods : typing.Optional[typing.Iterable[global___Period]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account",u"start_time",b"start_time",u"vesting_periods",b"vesting_periods"]) -> None: ... +global___PeriodicVestingAccount = PeriodicVestingAccount + +# PermanentLockedAccount implements the VestingAccount interface. It does +# not ever release coins, locking them indefinitely. Coins in this account can +# still be used for delegating and for governance votes even while locked. +class PermanentLockedAccount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BASE_VESTING_ACCOUNT_FIELD_NUMBER: builtins.int + @property + def base_vesting_account(self) -> global___BaseVestingAccount: ... + def __init__(self, + *, + base_vesting_account : typing.Optional[global___BaseVestingAccount] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> None: ... +global___PermanentLockedAccount = PermanentLockedAccount diff --git a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi new file mode 100644 index 0000000..d6046c2 --- /dev/null +++ b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .vesting_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos_proto/cosmos_pb2.pyi b/pyband/proto/cosmos_proto/cosmos_pb2.pyi new file mode 100644 index 0000000..3a4a20d --- /dev/null +++ b/pyband/proto/cosmos_proto/cosmos_pb2.pyi @@ -0,0 +1,16 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.extension_dict +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +interface_type: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, typing.Text] = ... + +implements_interface: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, typing.Text] = ... + +accepts_interface: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... diff --git a/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi b/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi new file mode 100644 index 0000000..e813185 --- /dev/null +++ b/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .cosmos_pb2 import * \ No newline at end of file diff --git a/pyband/proto/gogoproto/gogo_pb2.pyi b/pyband/proto/gogoproto/gogo_pb2.pyi new file mode 100644 index 0000000..24190df --- /dev/null +++ b/pyband/proto/gogoproto/gogo_pb2.pyi @@ -0,0 +1,165 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.extension_dict +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +goproto_enum_prefix: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.bool] = ... + +goproto_enum_stringer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.bool] = ... + +enum_stringer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.bool] = ... + +enum_customname: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, typing.Text] = ... + +enumdecl: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumOptions, builtins.bool] = ... + +enumvalue_customname: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.EnumValueOptions, typing.Text] = ... + +goproto_getters_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_enum_prefix_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_stringer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +verbose_equal_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +face_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +gostring_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +populate_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +stringer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +onlyone_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +equal_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +description_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +testgen_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +benchgen_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +marshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +unmarshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +stable_marshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +sizer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_enum_stringer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +enum_stringer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +unsafe_marshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +unsafe_unmarshaler_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_extensions_map_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_unrecognized_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +gogoproto_import: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +protosizer_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +compare_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +typedecl_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +enumdecl_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_registration: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +messagename_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_sizecache_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_unkeyed_all: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.bool] = ... + +goproto_getters: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +goproto_stringer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +verbose_equal: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +face: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +gostring: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +populate: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +stringer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +onlyone: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +equal: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +description: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +testgen: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +benchgen: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +marshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +unmarshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +stable_marshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +sizer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +unsafe_marshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +unsafe_unmarshaler: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +goproto_extensions_map: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +goproto_unrecognized: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +protosizer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +compare: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +typedecl: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +messagename: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +goproto_sizecache: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +goproto_unkeyed: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] = ... + +nullable: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] = ... + +embed: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] = ... + +customtype: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +customname: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +jsontag: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +moretags: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +casttype: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +castkey: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +castvalue: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +stdtime: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] = ... + +stdduration: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] = ... + +wktpointer: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.bool] = ... + +castrepeated: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... diff --git a/pyband/proto/gogoproto/gogo_pb2_grpc.pyi b/pyband/proto/gogoproto/gogo_pb2_grpc.pyi new file mode 100644 index 0000000..a66f997 --- /dev/null +++ b/pyband/proto/gogoproto/gogo_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .gogo_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/annotations_pb2.pyi b/pyband/proto/google/api/annotations_pb2.pyi new file mode 100644 index 0000000..06f08a0 --- /dev/null +++ b/pyband/proto/google/api/annotations_pb2.pyi @@ -0,0 +1,13 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.api.http_pb2 +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.extension_dict + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# See `HttpRule`. +http: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MethodOptions, google.api.http_pb2.HttpRule] = ... diff --git a/pyband/proto/google/api/annotations_pb2_grpc.pyi b/pyband/proto/google/api/annotations_pb2_grpc.pyi new file mode 100644 index 0000000..cfe981e --- /dev/null +++ b/pyband/proto/google/api/annotations_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .annotations_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/http_pb2.pyi b/pyband/proto/google/api/http_pb2.pyi new file mode 100644 index 0000000..127db80 --- /dev/null +++ b/pyband/proto/google/api/http_pb2.pyi @@ -0,0 +1,337 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Defines the HTTP configuration for an API service. It contains a list of +# [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method +# to one or more HTTP REST API methods. +class Http(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RULES_FIELD_NUMBER: builtins.int + FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: builtins.int + # A list of HTTP configuration rules that apply to individual API methods. + # + # **NOTE:** All service configuration rules follow "last one wins" order. + @property + def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___HttpRule]: ... + # When set to true, URL path parmeters will be fully URI-decoded except in + # cases of single segment matches in reserved expansion, where "%2F" will be + # left encoded. + # + # The default behavior is to not decode RFC 6570 reserved characters in multi + # segment matches. + fully_decode_reserved_expansion: builtins.bool = ... + def __init__(self, + *, + rules : typing.Optional[typing.Iterable[global___HttpRule]] = ..., + fully_decode_reserved_expansion : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fully_decode_reserved_expansion",b"fully_decode_reserved_expansion",u"rules",b"rules"]) -> None: ... +global___Http = Http + +# `HttpRule` defines the mapping of an RPC method to one or more HTTP +# REST API methods. The mapping specifies how different portions of the RPC +# request message are mapped to URL path, URL query parameters, and +# HTTP request body. The mapping is typically specified as an +# `google.api.http` annotation on the RPC method, +# see "google/api/annotations.proto" for details. +# +# The mapping consists of a field specifying the path template and +# method kind. The path template can refer to fields in the request +# message, as in the example below which describes a REST GET +# operation on a resource collection of messages: +# +# +# service Messaging { +# rpc GetMessage(GetMessageRequest) returns (Message) { +# option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; +# } +# } +# message GetMessageRequest { +# message SubMessage { +# string subfield = 1; +# } +# string message_id = 1; // mapped to the URL +# SubMessage sub = 2; // `sub.subfield` is url-mapped +# } +# message Message { +# string text = 1; // content of the resource +# } +# +# The same http annotation can alternatively be expressed inside the +# `GRPC API Configuration` YAML file. +# +# http: +# rules: +# - selector: .Messaging.GetMessage +# get: /v1/messages/{message_id}/{sub.subfield} +# +# This definition enables an automatic, bidrectional mapping of HTTP +# JSON to RPC. Example: +# +# HTTP | RPC +# -----|----- +# `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))` +# +# In general, not only fields but also field paths can be referenced +# from a path pattern. Fields mapped to the path pattern cannot be +# repeated and must have a primitive (non-message) type. +# +# Any fields in the request message which are not bound by the path +# pattern automatically become (optional) HTTP query +# parameters. Assume the following definition of the request message: +# +# +# service Messaging { +# rpc GetMessage(GetMessageRequest) returns (Message) { +# option (google.api.http).get = "/v1/messages/{message_id}"; +# } +# } +# message GetMessageRequest { +# message SubMessage { +# string subfield = 1; +# } +# string message_id = 1; // mapped to the URL +# int64 revision = 2; // becomes a parameter +# SubMessage sub = 3; // `sub.subfield` becomes a parameter +# } +# +# +# This enables a HTTP JSON to RPC mapping as below: +# +# HTTP | RPC +# -----|----- +# `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))` +# +# Note that fields which are mapped to HTTP parameters must have a +# primitive type or a repeated primitive type. Message types are not +# allowed. In the case of a repeated type, the parameter can be +# repeated in the URL, as in `...?param=A¶m=B`. +# +# For HTTP method kinds which allow a request body, the `body` field +# specifies the mapping. Consider a REST update method on the +# message resource collection: +# +# +# service Messaging { +# rpc UpdateMessage(UpdateMessageRequest) returns (Message) { +# option (google.api.http) = { +# put: "/v1/messages/{message_id}" +# body: "message" +# }; +# } +# } +# message UpdateMessageRequest { +# string message_id = 1; // mapped to the URL +# Message message = 2; // mapped to the body +# } +# +# +# The following HTTP JSON to RPC mapping is enabled, where the +# representation of the JSON in the request body is determined by +# protos JSON encoding: +# +# HTTP | RPC +# -----|----- +# `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })` +# +# The special name `*` can be used in the body mapping to define that +# every field not bound by the path template should be mapped to the +# request body. This enables the following alternative definition of +# the update method: +# +# service Messaging { +# rpc UpdateMessage(Message) returns (Message) { +# option (google.api.http) = { +# put: "/v1/messages/{message_id}" +# body: "*" +# }; +# } +# } +# message Message { +# string message_id = 1; +# string text = 2; +# } +# +# +# The following HTTP JSON to RPC mapping is enabled: +# +# HTTP | RPC +# -----|----- +# `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")` +# +# Note that when using `*` in the body mapping, it is not possible to +# have HTTP parameters, as all fields not bound by the path end in +# the body. This makes this option more rarely used in practice of +# defining REST APIs. The common usage of `*` is in custom methods +# which don't use the URL at all for transferring data. +# +# It is possible to define multiple HTTP methods for one RPC by using +# the `additional_bindings` option. Example: +# +# service Messaging { +# rpc GetMessage(GetMessageRequest) returns (Message) { +# option (google.api.http) = { +# get: "/v1/messages/{message_id}" +# additional_bindings { +# get: "/v1/users/{user_id}/messages/{message_id}" +# } +# }; +# } +# } +# message GetMessageRequest { +# string message_id = 1; +# string user_id = 2; +# } +# +# +# This enables the following two alternative HTTP JSON to RPC +# mappings: +# +# HTTP | RPC +# -----|----- +# `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` +# `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")` +# +# # Rules for HTTP mapping +# +# The rules for mapping HTTP path, query parameters, and body fields +# to the request message are as follows: +# +# 1. The `body` field specifies either `*` or a field path, or is +# omitted. If omitted, it indicates there is no HTTP request body. +# 2. Leaf fields (recursive expansion of nested messages in the +# request) can be classified into three types: +# (a) Matched in the URL template. +# (b) Covered by body (if body is `*`, everything except (a) fields; +# else everything under the body field) +# (c) All other fields. +# 3. URL query parameters found in the HTTP request are mapped to (c) fields. +# 4. Any body sent with an HTTP request can contain only (b) fields. +# +# The syntax of the path template is as follows: +# +# Template = "/" Segments [ Verb ] ; +# Segments = Segment { "/" Segment } ; +# Segment = "*" | "**" | LITERAL | Variable ; +# Variable = "{" FieldPath [ "=" Segments ] "}" ; +# FieldPath = IDENT { "." IDENT } ; +# Verb = ":" LITERAL ; +# +# The syntax `*` matches a single path segment. The syntax `**` matches zero +# or more path segments, which must be the last part of the path except the +# `Verb`. The syntax `LITERAL` matches literal text in the path. +# +# The syntax `Variable` matches part of the URL path as specified by its +# template. A variable template must not contain other variables. If a variable +# matches a single path segment, its template may be omitted, e.g. `{var}` +# is equivalent to `{var=*}`. +# +# If a variable contains exactly one path segment, such as `"{var}"` or +# `"{var=*}"`, when such a variable is expanded into a URL path, all characters +# except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the +# Discovery Document as `{var}`. +# +# If a variable contains one or more path segments, such as `"{var=foo/*}"` +# or `"{var=**}"`, when such a variable is expanded into a URL path, all +# characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables +# show up in the Discovery Document as `{+var}`. +# +# NOTE: While the single segment variable matches the semantics of +# [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 +# Simple String Expansion, the multi segment variable **does not** match +# RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion +# does not expand special characters like `?` and `#`, which would lead +# to invalid URLs. +# +# NOTE: the field paths in variables and in the `body` must not refer to +# repeated fields or map fields. +class HttpRule(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SELECTOR_FIELD_NUMBER: builtins.int + GET_FIELD_NUMBER: builtins.int + PUT_FIELD_NUMBER: builtins.int + POST_FIELD_NUMBER: builtins.int + DELETE_FIELD_NUMBER: builtins.int + PATCH_FIELD_NUMBER: builtins.int + CUSTOM_FIELD_NUMBER: builtins.int + BODY_FIELD_NUMBER: builtins.int + RESPONSE_BODY_FIELD_NUMBER: builtins.int + ADDITIONAL_BINDINGS_FIELD_NUMBER: builtins.int + # Selects methods to which this rule applies. + # + # Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + selector: typing.Text = ... + # Used for listing and getting information about resources. + get: typing.Text = ... + # Used for updating a resource. + put: typing.Text = ... + # Used for creating a resource. + post: typing.Text = ... + # Used for deleting a resource. + delete: typing.Text = ... + # Used for updating a resource. + patch: typing.Text = ... + # The custom pattern is used for specifying an HTTP method that is not + # included in the `pattern` field, such as HEAD, or "*" to leave the + # HTTP method unspecified for this rule. The wild-card rule is useful + # for services that provide content to Web (HTML) clients. + @property + def custom(self) -> global___CustomHttpPattern: ... + # The name of the request field whose value is mapped to the HTTP body, or + # `*` for mapping all fields not captured by the path pattern to the HTTP + # body. NOTE: the referred field must not be a repeated field and must be + # present at the top-level of request message type. + body: typing.Text = ... + # Optional. The name of the response field whose value is mapped to the HTTP + # body of response. Other response fields are ignored. When + # not set, the response message will be used as HTTP body of response. + response_body: typing.Text = ... + # Additional HTTP bindings for the selector. Nested bindings must + # not contain an `additional_bindings` field themselves (that is, + # the nesting may only be one level deep). + @property + def additional_bindings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___HttpRule]: ... + def __init__(self, + *, + selector : typing.Text = ..., + get : typing.Text = ..., + put : typing.Text = ..., + post : typing.Text = ..., + delete : typing.Text = ..., + patch : typing.Text = ..., + custom : typing.Optional[global___CustomHttpPattern] = ..., + body : typing.Text = ..., + response_body : typing.Text = ..., + additional_bindings : typing.Optional[typing.Iterable[global___HttpRule]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"custom",b"custom",u"delete",b"delete",u"get",b"get",u"patch",b"patch",u"pattern",b"pattern",u"post",b"post",u"put",b"put"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"additional_bindings",b"additional_bindings",u"body",b"body",u"custom",b"custom",u"delete",b"delete",u"get",b"get",u"patch",b"patch",u"pattern",b"pattern",u"post",b"post",u"put",b"put",u"response_body",b"response_body",u"selector",b"selector"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"pattern",b"pattern"]) -> typing.Optional[typing_extensions.Literal["get","put","post","delete","patch","custom"]]: ... +global___HttpRule = HttpRule + +# A custom pattern is used for defining custom HTTP verb. +class CustomHttpPattern(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KIND_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + # The name of this custom HTTP verb. + kind: typing.Text = ... + # The path matched by this custom verb. + path: typing.Text = ... + def __init__(self, + *, + kind : typing.Text = ..., + path : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"kind",b"kind",u"path",b"path"]) -> None: ... +global___CustomHttpPattern = CustomHttpPattern diff --git a/pyband/proto/google/api/http_pb2_grpc.pyi b/pyband/proto/google/api/http_pb2_grpc.pyi new file mode 100644 index 0000000..d2c5ab5 --- /dev/null +++ b/pyband/proto/google/api/http_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .http_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/httpbody_pb2.pyi b/pyband/proto/google/api/httpbody_pb2.pyi new file mode 100644 index 0000000..0eb6336 --- /dev/null +++ b/pyband/proto/google/api/httpbody_pb2.pyi @@ -0,0 +1,74 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Message that represents an arbitrary HTTP body. It should only be used for +# payload formats that can't be represented as JSON, such as raw binary or +# an HTML page. +# +# +# This message can be used both in streaming and non-streaming API methods in +# the request as well as the response. +# +# It can be used as a top-level request field, which is convenient if one +# wants to extract parameters from either the URL or HTTP template into the +# request fields and also want access to the raw HTTP body. +# +# Example: +# +# message GetResourceRequest { +# // A unique request id. +# string request_id = 1; +# +# // The raw HTTP body is bound to this field. +# google.api.HttpBody http_body = 2; +# } +# +# service ResourceService { +# rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); +# rpc UpdateResource(google.api.HttpBody) returns +# (google.protobuf.Empty); +# } +# +# Example with streaming methods: +# +# service CaldavService { +# rpc GetCalendar(stream google.api.HttpBody) +# returns (stream google.api.HttpBody); +# rpc UpdateCalendar(stream google.api.HttpBody) +# returns (stream google.api.HttpBody); +# } +# +# Use of this type only changes how the request and response bodies are +# handled, all other features will continue to work unchanged. +class HttpBody(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONTENT_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + EXTENSIONS_FIELD_NUMBER: builtins.int + # The HTTP Content-Type header value specifying the content type of the body. + content_type: typing.Text = ... + # The HTTP request/response body as raw binary. + data: builtins.bytes = ... + # Application specific response metadata. Must be set in the first response + # for streaming APIs. + @property + def extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + content_type : typing.Text = ..., + data : builtins.bytes = ..., + extensions : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"content_type",b"content_type",u"data",b"data",u"extensions",b"extensions"]) -> None: ... +global___HttpBody = HttpBody diff --git a/pyband/proto/google/api/httpbody_pb2_grpc.pyi b/pyband/proto/google/api/httpbody_pb2_grpc.pyi new file mode 100644 index 0000000..3b2bc13 --- /dev/null +++ b/pyband/proto/google/api/httpbody_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .httpbody_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/protobuf/any_pb2.pyi b/pyband/proto/google/protobuf/any_pb2.pyi new file mode 100644 index 0000000..e7ef520 --- /dev/null +++ b/pyband/proto/google/protobuf/any_pb2.pyi @@ -0,0 +1,133 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.well_known_types +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# `Any` contains an arbitrary serialized protocol buffer message along with a +# URL that describes the type of the serialized message. +# +# Protobuf library provides support to pack/unpack Any values in the form +# of utility functions or additional generated methods of the Any type. +# +# Example 1: Pack and unpack a message in C++. +# +# Foo foo = ...; +# Any any; +# any.PackFrom(foo); +# ... +# if (any.UnpackTo(&foo)) { +# ... +# } +# +# Example 2: Pack and unpack a message in Java. +# +# Foo foo = ...; +# Any any = Any.pack(foo); +# ... +# if (any.is(Foo.class)) { +# foo = any.unpack(Foo.class); +# } +# +# Example 3: Pack and unpack a message in Python. +# +# foo = Foo(...) +# any = Any() +# any.Pack(foo) +# ... +# if any.Is(Foo.DESCRIPTOR): +# any.Unpack(foo) +# ... +# +# Example 4: Pack and unpack a message in Go +# +# foo := &pb.Foo{...} +# any, err := ptypes.MarshalAny(foo) +# ... +# foo := &pb.Foo{} +# if err := ptypes.UnmarshalAny(any, foo); err != nil { +# ... +# } +# +# The pack methods provided by protobuf library will by default use +# 'type.googleapis.com/full.type.name' as the type URL and the unpack +# methods only use the fully qualified type name after the last '/' +# in the type URL, for example "foo.bar.com/x/y.z" will yield type +# name "y.z". +# +# +# JSON +# ==== +# The JSON representation of an `Any` value uses the regular +# representation of the deserialized, embedded message, with an +# additional field `@type` which contains the type URL. Example: +# +# package google.profile; +# message Person { +# string first_name = 1; +# string last_name = 2; +# } +# +# { +# "@type": "type.googleapis.com/google.profile.Person", +# "firstName": , +# "lastName": +# } +# +# If the embedded message type is well-known and has a custom JSON +# representation, that representation will be embedded adding a field +# `value` which holds the custom JSON in addition to the `@type` +# field. Example (for message [google.protobuf.Duration][]): +# +# { +# "@type": "type.googleapis.com/google.protobuf.Duration", +# "value": "1.212s" +# } +class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Any): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_URL_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + type_url: typing.Text = ... + # Must be a valid serialized protocol buffer of the above specified type. + value: builtins.bytes = ... + def __init__(self, + *, + type_url : typing.Text = ..., + value : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"type_url",b"type_url",u"value",b"value"]) -> None: ... +global___Any = Any diff --git a/pyband/proto/google/protobuf/any_pb2_grpc.pyi b/pyband/proto/google/protobuf/any_pb2_grpc.pyi new file mode 100644 index 0000000..1fec1ac --- /dev/null +++ b/pyband/proto/google/protobuf/any_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .any_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi new file mode 100644 index 0000000..9d4d5ff --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi @@ -0,0 +1,34 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.applications.transfer.v1.transfer_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc-transfer genesis state +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + DENOM_TRACES_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + @property + def denom_traces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]: ... + @property + def params(self) -> ibc.applications.transfer.v1.transfer_pb2.Params: ... + def __init__(self, + *, + port_id : typing.Text = ..., + denom_traces : typing.Optional[typing.Iterable[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]] = ..., + params : typing.Optional[ibc.applications.transfer.v1.transfer_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom_traces",b"denom_traces",u"params",b"params",u"port_id",b"port_id"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi new file mode 100644 index 0000000..3f693aa --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi @@ -0,0 +1,103 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.applications.transfer.v1.transfer_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC +# method +class QueryDenomTraceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + # hash (in hex format) of the denomination trace information. + hash: typing.Text = ... + def __init__(self, + *, + hash : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... +global___QueryDenomTraceRequest = QueryDenomTraceRequest + +# QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC +# method. +class QueryDenomTraceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_TRACE_FIELD_NUMBER: builtins.int + # denom_trace returns the requested denomination trace information. + @property + def denom_trace(self) -> ibc.applications.transfer.v1.transfer_pb2.DenomTrace: ... + def __init__(self, + *, + denom_trace : typing.Optional[ibc.applications.transfer.v1.transfer_pb2.DenomTrace] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"denom_trace",b"denom_trace"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom_trace",b"denom_trace"]) -> None: ... +global___QueryDenomTraceResponse = QueryDenomTraceResponse + +# QueryConnectionsRequest is the request type for the Query/DenomTraces RPC +# method +class QueryDenomTracesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QueryDenomTracesRequest = QueryDenomTracesRequest + +# QueryConnectionsResponse is the response type for the Query/DenomTraces RPC +# method. +class QueryDenomTracesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_TRACES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # denom_traces returns all denominations trace information. + @property + def denom_traces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + denom_traces : typing.Optional[typing.Iterable[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom_traces",b"denom_traces",u"pagination",b"pagination"]) -> None: ... +global___QueryDenomTracesResponse = QueryDenomTracesResponse + +# QueryParamsRequest is the request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is the response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + # params defines the parameters of the module. + @property + def params(self) -> ibc.applications.transfer.v1.transfer_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[ibc.applications.transfer.v1.transfer_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..30f097f --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # DenomTrace queries a denomination trace information. + DenomTrace:grpc.UnaryUnaryMultiCallable[ + global___QueryDenomTraceRequest, + global___QueryDenomTraceResponse] = ... + + # DenomTraces queries all denomination traces. + DenomTraces:grpc.UnaryUnaryMultiCallable[ + global___QueryDenomTracesRequest, + global___QueryDenomTracesResponse] = ... + + # Params queries all parameters of the ibc-transfer module. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + +# Query provides defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # DenomTrace queries a denomination trace information. + @abc.abstractmethod + def DenomTrace(self, + request: global___QueryDenomTraceRequest, + context: grpc.ServicerContext, + ) -> global___QueryDenomTraceResponse: ... + + # DenomTraces queries all denomination traces. + @abc.abstractmethod + def DenomTraces(self, + request: global___QueryDenomTracesRequest, + context: grpc.ServicerContext, + ) -> global___QueryDenomTracesResponse: ... + + # Params queries all parameters of the ibc-transfer module. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi new file mode 100644 index 0000000..c097f72 --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi @@ -0,0 +1,79 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# FungibleTokenPacketData defines a struct for the packet payload +# See FungibleTokenPacketData spec: +# https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures +class FungibleTokenPacketData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + RECEIVER_FIELD_NUMBER: builtins.int + # the token denomination to be transferred + denom: typing.Text = ... + # the token amount to be transferred + amount: builtins.int = ... + # the sender address + sender: typing.Text = ... + # the recipient address on the destination chain + receiver: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + amount : builtins.int = ..., + sender : typing.Text = ..., + receiver : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom",u"receiver",b"receiver",u"sender",b"sender"]) -> None: ... +global___FungibleTokenPacketData = FungibleTokenPacketData + +# DenomTrace contains the base denomination for ICS20 fungible tokens and the +# source tracing information path. +class DenomTrace(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + BASE_DENOM_FIELD_NUMBER: builtins.int + # path defines the chain of port/channel identifiers used for tracing the + # source of the fungible token. + path: typing.Text = ... + # base denomination of the relayed fungible token. + base_denom: typing.Text = ... + def __init__(self, + *, + path : typing.Text = ..., + base_denom : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_denom",b"base_denom",u"path",b"path"]) -> None: ... +global___DenomTrace = DenomTrace + +# Params defines the set of IBC transfer parameters. +# NOTE: To prevent a single token from being transferred, set the +# TransfersEnabled parameter to true and then set the bank module's SendEnabled +# parameter for the denomination to false. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEND_ENABLED_FIELD_NUMBER: builtins.int + RECEIVE_ENABLED_FIELD_NUMBER: builtins.int + # send_enabled enables or disables all cross-chain token transfers from this + # chain. + send_enabled: builtins.bool = ... + # receive_enabled enables or disables all cross-chain token transfers to this + # chain. + receive_enabled: builtins.bool = ... + def __init__(self, + *, + send_enabled : builtins.bool = ..., + receive_enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"receive_enabled",b"receive_enabled",u"send_enabled",b"send_enabled"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi new file mode 100644 index 0000000..6011570 --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .transfer_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi new file mode 100644 index 0000000..3419d4a --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between +# ICS20 enabled chains. See ICS Spec here: +# https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures +class MsgTransfer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SOURCE_PORT_FIELD_NUMBER: builtins.int + SOURCE_CHANNEL_FIELD_NUMBER: builtins.int + TOKEN_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + RECEIVER_FIELD_NUMBER: builtins.int + TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int + TIMEOUT_TIMESTAMP_FIELD_NUMBER: builtins.int + # the port on which the packet will be sent + source_port: typing.Text = ... + # the channel by which the packet will be sent + source_channel: typing.Text = ... + # the tokens to be transferred + @property + def token(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + # the sender address + sender: typing.Text = ... + # the recipient address on the destination chain + receiver: typing.Text = ... + # Timeout height relative to the current block height. + # The timeout is disabled when set to 0. + @property + def timeout_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # Timeout timestamp (in nanoseconds) relative to the current block timestamp. + # The timeout is disabled when set to 0. + timeout_timestamp: builtins.int = ... + def __init__(self, + *, + source_port : typing.Text = ..., + source_channel : typing.Text = ..., + token : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + sender : typing.Text = ..., + receiver : typing.Text = ..., + timeout_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + timeout_timestamp : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"timeout_height",b"timeout_height",u"token",b"token"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"receiver",b"receiver",u"sender",b"sender",u"source_channel",b"source_channel",u"source_port",b"source_port",u"timeout_height",b"timeout_height",u"timeout_timestamp",b"timeout_timestamp",u"token",b"token"]) -> None: ... +global___MsgTransfer = MsgTransfer + +# MsgTransferResponse defines the Msg/Transfer response type. +class MsgTransferResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgTransferResponse = MsgTransferResponse diff --git a/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..1f4b9b4 --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the ibc/transfer Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Transfer defines a rpc handler method for MsgTransfer. + Transfer:grpc.UnaryUnaryMultiCallable[ + global___MsgTransfer, + global___MsgTransferResponse] = ... + + +# Msg defines the ibc/transfer Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # Transfer defines a rpc handler method for MsgTransfer. + @abc.abstractmethod + def Transfer(self, + request: global___MsgTransfer, + context: grpc.ServicerContext, + ) -> global___MsgTransferResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi b/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi new file mode 100644 index 0000000..df11784 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi @@ -0,0 +1,265 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# State defines if a channel is in one of the following states: +# CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. +class State(_State, metaclass=_StateEnumTypeWrapper): + pass +class _State: + V = typing.NewType('V', builtins.int) +class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_State.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Default State + STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) + # A channel has just started the opening handshake. + STATE_INIT = State.V(1) + # A channel has acknowledged the handshake step on the counterparty chain. + STATE_TRYOPEN = State.V(2) + # A channel has completed the handshake. Open channels are + # ready to send and receive packets. + STATE_OPEN = State.V(3) + # A channel has been closed and can no longer be used to send or receive + # packets. + STATE_CLOSED = State.V(4) + +# Default State +STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) +# A channel has just started the opening handshake. +STATE_INIT = State.V(1) +# A channel has acknowledged the handshake step on the counterparty chain. +STATE_TRYOPEN = State.V(2) +# A channel has completed the handshake. Open channels are +# ready to send and receive packets. +STATE_OPEN = State.V(3) +# A channel has been closed and can no longer be used to send or receive +# packets. +STATE_CLOSED = State.V(4) +global___State = State + + +# Order defines if a channel is ORDERED or UNORDERED +class Order(_Order, metaclass=_OrderEnumTypeWrapper): + pass +class _Order: + V = typing.NewType('V', builtins.int) +class _OrderEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Order.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # zero-value for channel ordering + ORDER_NONE_UNSPECIFIED = Order.V(0) + # packets can be delivered in any order, which may differ from the order in + # which they were sent. + ORDER_UNORDERED = Order.V(1) + # packets are delivered exactly in the order which they were sent + ORDER_ORDERED = Order.V(2) + +# zero-value for channel ordering +ORDER_NONE_UNSPECIFIED = Order.V(0) +# packets can be delivered in any order, which may differ from the order in +# which they were sent. +ORDER_UNORDERED = Order.V(1) +# packets are delivered exactly in the order which they were sent +ORDER_ORDERED = Order.V(2) +global___Order = Order + + +# Channel defines pipeline for exactly-once packet delivery between specific +# modules on separate blockchains, which has at least one end capable of +# sending packets and one end capable of receiving packets. +class Channel(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATE_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + CONNECTION_HOPS_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + # current state of the channel end + state: global___State.V = ... + # whether the channel is ordered or unordered + ordering: global___Order.V = ... + # counterparty channel end + @property + def counterparty(self) -> global___Counterparty: ... + # list of connection identifiers, in order, along which packets sent on + # this channel will travel + @property + def connection_hops(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # opaque channel version, which is agreed upon during the handshake + version: typing.Text = ... + def __init__(self, + *, + state : global___State.V = ..., + ordering : global___Order.V = ..., + counterparty : typing.Optional[global___Counterparty] = ..., + connection_hops : typing.Optional[typing.Iterable[typing.Text]] = ..., + version : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_hops",b"connection_hops",u"counterparty",b"counterparty",u"ordering",b"ordering",u"state",b"state",u"version",b"version"]) -> None: ... +global___Channel = Channel + +# IdentifiedChannel defines a channel with additional port and channel +# identifier fields. +class IdentifiedChannel(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATE_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + CONNECTION_HOPS_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # current state of the channel end + state: global___State.V = ... + # whether the channel is ordered or unordered + ordering: global___Order.V = ... + # counterparty channel end + @property + def counterparty(self) -> global___Counterparty: ... + # list of connection identifiers, in order, along which packets sent on + # this channel will travel + @property + def connection_hops(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # opaque channel version, which is agreed upon during the handshake + version: typing.Text = ... + # port identifier + port_id: typing.Text = ... + # channel identifier + channel_id: typing.Text = ... + def __init__(self, + *, + state : global___State.V = ..., + ordering : global___Order.V = ..., + counterparty : typing.Optional[global___Counterparty] = ..., + connection_hops : typing.Optional[typing.Iterable[typing.Text]] = ..., + version : typing.Text = ..., + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"connection_hops",b"connection_hops",u"counterparty",b"counterparty",u"ordering",b"ordering",u"port_id",b"port_id",u"state",b"state",u"version",b"version"]) -> None: ... +global___IdentifiedChannel = IdentifiedChannel + +# Counterparty defines a channel end counterparty +class Counterparty(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # port on the counterparty chain which owns the other end of the channel. + port_id: typing.Text = ... + # channel end on the counterparty chain + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___Counterparty = Counterparty + +# Packet defines a type that carries data across different chains through IBC +class Packet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + SOURCE_PORT_FIELD_NUMBER: builtins.int + SOURCE_CHANNEL_FIELD_NUMBER: builtins.int + DESTINATION_PORT_FIELD_NUMBER: builtins.int + DESTINATION_CHANNEL_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int + TIMEOUT_TIMESTAMP_FIELD_NUMBER: builtins.int + # number corresponds to the order of sends and receives, where a Packet + # with an earlier sequence number must be sent and received before a Packet + # with a later sequence number. + sequence: builtins.int = ... + # identifies the port on the sending chain. + source_port: typing.Text = ... + # identifies the channel end on the sending chain. + source_channel: typing.Text = ... + # identifies the port on the receiving chain. + destination_port: typing.Text = ... + # identifies the channel end on the receiving chain. + destination_channel: typing.Text = ... + # actual opaque bytes transferred directly to the application module + data: builtins.bytes = ... + # block height after which the packet times out + @property + def timeout_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # block timestamp (in nanoseconds) after which the packet times out + timeout_timestamp: builtins.int = ... + def __init__(self, + *, + sequence : builtins.int = ..., + source_port : typing.Text = ..., + source_channel : typing.Text = ..., + destination_port : typing.Text = ..., + destination_channel : typing.Text = ..., + data : builtins.bytes = ..., + timeout_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + timeout_timestamp : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"timeout_height",b"timeout_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"destination_channel",b"destination_channel",u"destination_port",b"destination_port",u"sequence",b"sequence",u"source_channel",b"source_channel",u"source_port",b"source_port",u"timeout_height",b"timeout_height",u"timeout_timestamp",b"timeout_timestamp"]) -> None: ... +global___Packet = Packet + +# PacketState defines the generic type necessary to retrieve and store +# packet commitments, acknowledgements, and receipts. +# Caller is responsible for knowing the context necessary to interpret this +# state as a commitment, acknowledgement, or a receipt. +class PacketState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + # channel port identifier. + port_id: typing.Text = ... + # channel unique identifier. + channel_id: typing.Text = ... + # packet sequence. + sequence: builtins.int = ... + # embedded data that represents packet state. + data: builtins.bytes = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"data",b"data",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___PacketState = PacketState + +# Acknowledgement is the recommended acknowledgement format to be used by +# app-specific protocols. +# NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental +# conflicts with other protobuf message formats used for acknowledgements. +# The first byte of any message with this format will be the non-ASCII values +# `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: +# https://github.com/cosmos/ics/tree/master/spec/ics-004-channel-and-packet-semantics#acknowledgement-envelope +class Acknowledgement(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESULT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + result: builtins.bytes = ... + error: typing.Text = ... + def __init__(self, + *, + result : builtins.bytes = ..., + error : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"error",b"error",u"response",b"response",u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"error",b"error",u"response",b"response",u"result",b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"response",b"response"]) -> typing.Optional[typing_extensions.Literal["result","error"]]: ... +global___Acknowledgement = Acknowledgement diff --git a/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi new file mode 100644 index 0000000..8e5d952 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .channel_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi new file mode 100644 index 0000000..24a8d9b --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi @@ -0,0 +1,73 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc channel submodule's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHANNELS_FIELD_NUMBER: builtins.int + ACKNOWLEDGEMENTS_FIELD_NUMBER: builtins.int + COMMITMENTS_FIELD_NUMBER: builtins.int + RECEIPTS_FIELD_NUMBER: builtins.int + SEND_SEQUENCES_FIELD_NUMBER: builtins.int + RECV_SEQUENCES_FIELD_NUMBER: builtins.int + ACK_SEQUENCES_FIELD_NUMBER: builtins.int + NEXT_CHANNEL_SEQUENCE_FIELD_NUMBER: builtins.int + @property + def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... + @property + def acknowledgements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + @property + def commitments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + @property + def receipts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + @property + def send_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... + @property + def recv_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... + @property + def ack_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... + # the sequence for the next generated channel identifier + next_channel_sequence: builtins.int = ... + def __init__(self, + *, + channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., + acknowledgements : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + commitments : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + receipts : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + send_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., + recv_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., + ack_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., + next_channel_sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ack_sequences",b"ack_sequences",u"acknowledgements",b"acknowledgements",u"channels",b"channels",u"commitments",b"commitments",u"next_channel_sequence",b"next_channel_sequence",u"receipts",b"receipts",u"recv_sequences",b"recv_sequences",u"send_sequences",b"send_sequences"]) -> None: ... +global___GenesisState = GenesisState + +# PacketSequence defines the genesis type necessary to retrieve and store +# next send and receive sequences. +class PacketSequence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + sequence: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___PacketSequence = PacketSequence diff --git a/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/channel/v1/query_pb2.pyi b/pyband/proto/ibc/core/channel/v1/query_pb2.pyi new file mode 100644 index 0000000..676f179 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/query_pb2.pyi @@ -0,0 +1,612 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryChannelRequest is the request type for the Query/Channel RPC method +class QueryChannelRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___QueryChannelRequest = QueryChannelRequest + +# QueryChannelResponse is the response type for the Query/Channel RPC method. +# Besides the Channel end, it includes a proof and the height from which the +# proof was retrieved. +class QueryChannelResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHANNEL_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # channel associated with the request identifiers + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryChannelResponse = QueryChannelResponse + +# QueryChannelsRequest is the request type for the Query/Channels RPC method +class QueryChannelsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QueryChannelsRequest = QueryChannelsRequest + +# QueryChannelsResponse is the response type for the Query/Channels RPC method. +class QueryChannelsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHANNELS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of stored channels of the chain. + @property + def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryChannelsResponse = QueryChannelsResponse + +# QueryConnectionChannelsRequest is the request type for the +# Query/QueryConnectionChannels RPC method +class QueryConnectionChannelsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # connection unique identifier + connection: typing.Text = ... + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + connection : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"pagination",b"pagination"]) -> None: ... +global___QueryConnectionChannelsRequest = QueryConnectionChannelsRequest + +# QueryConnectionChannelsResponse is the Response type for the +# Query/QueryConnectionChannels RPC method +class QueryConnectionChannelsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHANNELS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of channels associated with a connection. + @property + def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryConnectionChannelsResponse = QueryConnectionChannelsResponse + +# QueryChannelClientStateRequest is the request type for the Query/ClientState +# RPC method +class QueryChannelClientStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___QueryChannelClientStateRequest = QueryChannelClientStateRequest + +# QueryChannelClientStateResponse is the Response type for the +# Query/QueryChannelClientState RPC method +class QueryChannelClientStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IDENTIFIED_CLIENT_STATE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # client state associated with the channel + @property + def identified_client_state(self) -> ibc.core.client.v1.client_pb2.IdentifiedClientState: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + identified_client_state : typing.Optional[ibc.core.client.v1.client_pb2.IdentifiedClientState] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryChannelClientStateResponse = QueryChannelClientStateResponse + +# QueryChannelConsensusStateRequest is the request type for the +# Query/ConsensusState RPC method +class QueryChannelConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + REVISION_NUMBER_FIELD_NUMBER: builtins.int + REVISION_HEIGHT_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # revision number of the consensus state + revision_number: builtins.int = ... + # revision height of the consensus state + revision_height: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + revision_number : builtins.int = ..., + revision_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... +global___QueryChannelConsensusStateRequest = QueryChannelConsensusStateRequest + +# QueryChannelClientStateResponse is the Response type for the +# Query/QueryChannelClientState RPC method +class QueryChannelConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # consensus state associated with the channel + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # client ID associated with the consensus state + client_id: typing.Text = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + client_id : typing.Text = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryChannelConsensusStateResponse = QueryChannelConsensusStateResponse + +# QueryPacketCommitmentRequest is the request type for the +# Query/PacketCommitment RPC method +class QueryPacketCommitmentRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # packet sequence + sequence: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___QueryPacketCommitmentRequest = QueryPacketCommitmentRequest + +# QueryPacketCommitmentResponse defines the client query response for a packet +# which also includes a proof and the height from which the proof was +# retrieved +class QueryPacketCommitmentResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMITMENT_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # packet associated with the request fields + commitment: builtins.bytes = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + commitment : builtins.bytes = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commitment",b"commitment",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryPacketCommitmentResponse = QueryPacketCommitmentResponse + +# QueryPacketCommitmentsRequest is the request type for the +# Query/QueryPacketCommitments RPC method +class QueryPacketCommitmentsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"pagination",b"pagination",u"port_id",b"port_id"]) -> None: ... +global___QueryPacketCommitmentsRequest = QueryPacketCommitmentsRequest + +# QueryPacketCommitmentsResponse is the request type for the +# Query/QueryPacketCommitments RPC method +class QueryPacketCommitmentsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMITMENTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + @property + def commitments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + commitments : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commitments",b"commitments",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryPacketCommitmentsResponse = QueryPacketCommitmentsResponse + +# QueryPacketReceiptRequest is the request type for the +# Query/PacketReceipt RPC method +class QueryPacketReceiptRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # packet sequence + sequence: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___QueryPacketReceiptRequest = QueryPacketReceiptRequest + +# QueryPacketReceiptResponse defines the client query response for a packet +# receipt which also includes a proof, and the height from which the proof was +# retrieved +class QueryPacketReceiptResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RECEIVED_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # success flag for if receipt exists + received: builtins.bool = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + received : builtins.bool = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proof",b"proof",u"proof_height",b"proof_height",u"received",b"received"]) -> None: ... +global___QueryPacketReceiptResponse = QueryPacketReceiptResponse + +# QueryPacketAcknowledgementRequest is the request type for the +# Query/PacketAcknowledgement RPC method +class QueryPacketAcknowledgementRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # packet sequence + sequence: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___QueryPacketAcknowledgementRequest = QueryPacketAcknowledgementRequest + +# QueryPacketAcknowledgementResponse defines the client query response for a +# packet which also includes a proof and the height from which the +# proof was retrieved +class QueryPacketAcknowledgementResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # packet associated with the request fields + acknowledgement: builtins.bytes = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + acknowledgement : builtins.bytes = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryPacketAcknowledgementResponse = QueryPacketAcknowledgementResponse + +# QueryPacketAcknowledgementsRequest is the request type for the +# Query/QueryPacketCommitments RPC method +class QueryPacketAcknowledgementsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"pagination",b"pagination",u"port_id",b"port_id"]) -> None: ... +global___QueryPacketAcknowledgementsRequest = QueryPacketAcknowledgementsRequest + +# QueryPacketAcknowledgemetsResponse is the request type for the +# Query/QueryPacketAcknowledgements RPC method +class QueryPacketAcknowledgementsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ACKNOWLEDGEMENTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + @property + def acknowledgements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + acknowledgements : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgements",b"acknowledgements",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryPacketAcknowledgementsResponse = QueryPacketAcknowledgementsResponse + +# QueryUnreceivedPacketsRequest is the request type for the +# Query/UnreceivedPackets RPC method +class QueryUnreceivedPacketsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PACKET_COMMITMENT_SEQUENCES_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # list of packet sequences + @property + def packet_commitment_sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + packet_commitment_sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"packet_commitment_sequences",b"packet_commitment_sequences",u"port_id",b"port_id"]) -> None: ... +global___QueryUnreceivedPacketsRequest = QueryUnreceivedPacketsRequest + +# QueryUnreceivedPacketsResponse is the response type for the +# Query/UnreceivedPacketCommitments RPC method +class QueryUnreceivedPacketsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCES_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of unreceived packet sequences + @property + def sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"sequences",b"sequences"]) -> None: ... +global___QueryUnreceivedPacketsResponse = QueryUnreceivedPacketsResponse + +# QueryUnreceivedAcks is the request type for the +# Query/UnreceivedAcks RPC method +class QueryUnreceivedAcksRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PACKET_ACK_SEQUENCES_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # list of acknowledgement sequences + @property + def packet_ack_sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + packet_ack_sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"packet_ack_sequences",b"packet_ack_sequences",u"port_id",b"port_id"]) -> None: ... +global___QueryUnreceivedAcksRequest = QueryUnreceivedAcksRequest + +# QueryUnreceivedAcksResponse is the response type for the +# Query/UnreceivedAcks RPC method +class QueryUnreceivedAcksResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCES_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of unreceived acknowledgement sequences + @property + def sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"sequences",b"sequences"]) -> None: ... +global___QueryUnreceivedAcksResponse = QueryUnreceivedAcksResponse + +# QueryNextSequenceReceiveRequest is the request type for the +# Query/QueryNextSequenceReceiveRequest RPC method +class QueryNextSequenceReceiveRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___QueryNextSequenceReceiveRequest = QueryNextSequenceReceiveRequest + +# QuerySequenceResponse is the request type for the +# Query/QueryNextSequenceReceiveResponse RPC method +class QueryNextSequenceReceiveResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NEXT_SEQUENCE_RECEIVE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # next sequence receive number + next_sequence_receive: builtins.int = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + next_sequence_receive : builtins.int = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_receive",b"next_sequence_receive",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryNextSequenceReceiveResponse = QueryNextSequenceReceiveResponse diff --git a/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..fbc8fb2 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi @@ -0,0 +1,188 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Channel queries an IBC Channel. + Channel:grpc.UnaryUnaryMultiCallable[ + global___QueryChannelRequest, + global___QueryChannelResponse] = ... + + # Channels queries all the IBC channels of a chain. + Channels:grpc.UnaryUnaryMultiCallable[ + global___QueryChannelsRequest, + global___QueryChannelsResponse] = ... + + # ConnectionChannels queries all the channels associated with a connection + # end. + ConnectionChannels:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionChannelsRequest, + global___QueryConnectionChannelsResponse] = ... + + # ChannelClientState queries for the client state for the channel associated + # with the provided channel identifiers. + ChannelClientState:grpc.UnaryUnaryMultiCallable[ + global___QueryChannelClientStateRequest, + global___QueryChannelClientStateResponse] = ... + + # ChannelConsensusState queries for the consensus state for the channel + # associated with the provided channel identifiers. + ChannelConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryChannelConsensusStateRequest, + global___QueryChannelConsensusStateResponse] = ... + + # PacketCommitment queries a stored packet commitment hash. + PacketCommitment:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketCommitmentRequest, + global___QueryPacketCommitmentResponse] = ... + + # PacketCommitments returns all the packet commitments hashes associated + # with a channel. + PacketCommitments:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketCommitmentsRequest, + global___QueryPacketCommitmentsResponse] = ... + + # PacketReceipt queries if a given packet sequence has been received on the + # queried chain + PacketReceipt:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketReceiptRequest, + global___QueryPacketReceiptResponse] = ... + + # PacketAcknowledgement queries a stored packet acknowledgement hash. + PacketAcknowledgement:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketAcknowledgementRequest, + global___QueryPacketAcknowledgementResponse] = ... + + # PacketAcknowledgements returns all the packet acknowledgements associated + # with a channel. + PacketAcknowledgements:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketAcknowledgementsRequest, + global___QueryPacketAcknowledgementsResponse] = ... + + # UnreceivedPackets returns all the unreceived IBC packets associated with a + # channel and sequences. + UnreceivedPackets:grpc.UnaryUnaryMultiCallable[ + global___QueryUnreceivedPacketsRequest, + global___QueryUnreceivedPacketsResponse] = ... + + # UnreceivedAcks returns all the unreceived IBC acknowledgements associated + # with a channel and sequences. + UnreceivedAcks:grpc.UnaryUnaryMultiCallable[ + global___QueryUnreceivedAcksRequest, + global___QueryUnreceivedAcksResponse] = ... + + # NextSequenceReceive returns the next receive sequence for a given channel. + NextSequenceReceive:grpc.UnaryUnaryMultiCallable[ + global___QueryNextSequenceReceiveRequest, + global___QueryNextSequenceReceiveResponse] = ... + + +# Query provides defines the gRPC querier service +class QueryServicer(metaclass=abc.ABCMeta): + # Channel queries an IBC Channel. + @abc.abstractmethod + def Channel(self, + request: global___QueryChannelRequest, + context: grpc.ServicerContext, + ) -> global___QueryChannelResponse: ... + + # Channels queries all the IBC channels of a chain. + @abc.abstractmethod + def Channels(self, + request: global___QueryChannelsRequest, + context: grpc.ServicerContext, + ) -> global___QueryChannelsResponse: ... + + # ConnectionChannels queries all the channels associated with a connection + # end. + @abc.abstractmethod + def ConnectionChannels(self, + request: global___QueryConnectionChannelsRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionChannelsResponse: ... + + # ChannelClientState queries for the client state for the channel associated + # with the provided channel identifiers. + @abc.abstractmethod + def ChannelClientState(self, + request: global___QueryChannelClientStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryChannelClientStateResponse: ... + + # ChannelConsensusState queries for the consensus state for the channel + # associated with the provided channel identifiers. + @abc.abstractmethod + def ChannelConsensusState(self, + request: global___QueryChannelConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryChannelConsensusStateResponse: ... + + # PacketCommitment queries a stored packet commitment hash. + @abc.abstractmethod + def PacketCommitment(self, + request: global___QueryPacketCommitmentRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketCommitmentResponse: ... + + # PacketCommitments returns all the packet commitments hashes associated + # with a channel. + @abc.abstractmethod + def PacketCommitments(self, + request: global___QueryPacketCommitmentsRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketCommitmentsResponse: ... + + # PacketReceipt queries if a given packet sequence has been received on the + # queried chain + @abc.abstractmethod + def PacketReceipt(self, + request: global___QueryPacketReceiptRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketReceiptResponse: ... + + # PacketAcknowledgement queries a stored packet acknowledgement hash. + @abc.abstractmethod + def PacketAcknowledgement(self, + request: global___QueryPacketAcknowledgementRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketAcknowledgementResponse: ... + + # PacketAcknowledgements returns all the packet acknowledgements associated + # with a channel. + @abc.abstractmethod + def PacketAcknowledgements(self, + request: global___QueryPacketAcknowledgementsRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketAcknowledgementsResponse: ... + + # UnreceivedPackets returns all the unreceived IBC packets associated with a + # channel and sequences. + @abc.abstractmethod + def UnreceivedPackets(self, + request: global___QueryUnreceivedPacketsRequest, + context: grpc.ServicerContext, + ) -> global___QueryUnreceivedPacketsResponse: ... + + # UnreceivedAcks returns all the unreceived IBC acknowledgements associated + # with a channel and sequences. + @abc.abstractmethod + def UnreceivedAcks(self, + request: global___QueryUnreceivedAcksRequest, + context: grpc.ServicerContext, + ) -> global___QueryUnreceivedAcksResponse: ... + + # NextSequenceReceive returns the next receive sequence for a given channel. + @abc.abstractmethod + def NextSequenceReceive(self, + request: global___QueryNextSequenceReceiveRequest, + context: grpc.ServicerContext, + ) -> global___QueryNextSequenceReceiveResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi b/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi new file mode 100644 index 0000000..7ba0d6e --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi @@ -0,0 +1,356 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It +# is called by a relayer on Chain A. +class MsgChannelOpenInit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"port_id",b"port_id",u"signer",b"signer"]) -> None: ... +global___MsgChannelOpenInit = MsgChannelOpenInit + +# MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. +class MsgChannelOpenInitResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelOpenInitResponse = MsgChannelOpenInitResponse + +# MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel +# on Chain B. +class MsgChannelOpenTry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + PREVIOUS_CHANNEL_ID_FIELD_NUMBER: builtins.int + CHANNEL_FIELD_NUMBER: builtins.int + COUNTERPARTY_VERSION_FIELD_NUMBER: builtins.int + PROOF_INIT_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + # in the case of crossing hello's, when both chains call OpenInit, we need + # the channel identifier of the previous channel in state INIT + previous_channel_id: typing.Text = ... + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + counterparty_version: typing.Text = ... + proof_init: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + previous_channel_id : typing.Text = ..., + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + counterparty_version : typing.Text = ..., + proof_init : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"counterparty_version",b"counterparty_version",u"port_id",b"port_id",u"previous_channel_id",b"previous_channel_id",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... +global___MsgChannelOpenTry = MsgChannelOpenTry + +# MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. +class MsgChannelOpenTryResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelOpenTryResponse = MsgChannelOpenTryResponse + +# MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge +# the change of channel state to TRYOPEN on Chain B. +class MsgChannelOpenAck(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + COUNTERPARTY_CHANNEL_ID_FIELD_NUMBER: builtins.int + COUNTERPARTY_VERSION_FIELD_NUMBER: builtins.int + PROOF_TRY_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + counterparty_channel_id: typing.Text = ... + counterparty_version: typing.Text = ... + proof_try: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + counterparty_channel_id : typing.Text = ..., + counterparty_version : typing.Text = ..., + proof_try : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"counterparty_channel_id",b"counterparty_channel_id",u"counterparty_version",b"counterparty_version",u"port_id",b"port_id",u"proof_height",b"proof_height",u"proof_try",b"proof_try",u"signer",b"signer"]) -> None: ... +global___MsgChannelOpenAck = MsgChannelOpenAck + +# MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. +class MsgChannelOpenAckResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelOpenAckResponse = MsgChannelOpenAckResponse + +# MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to +# acknowledge the change of channel state to OPEN on Chain A. +class MsgChannelOpenConfirm(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PROOF_ACK_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + proof_ack: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + proof_ack : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"proof_ack",b"proof_ack",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... +global___MsgChannelOpenConfirm = MsgChannelOpenConfirm + +# MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response +# type. +class MsgChannelOpenConfirmResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelOpenConfirmResponse = MsgChannelOpenConfirmResponse + +# MsgChannelCloseInit defines a msg sent by a Relayer to Chain A +# to close a channel with Chain B. +class MsgChannelCloseInit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + signer : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"signer",b"signer"]) -> None: ... +global___MsgChannelCloseInit = MsgChannelCloseInit + +# MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. +class MsgChannelCloseInitResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelCloseInitResponse = MsgChannelCloseInitResponse + +# MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B +# to acknowledge the change of channel state to CLOSED on Chain A. +class MsgChannelCloseConfirm(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PROOF_INIT_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + proof_init: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + proof_init : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... +global___MsgChannelCloseConfirm = MsgChannelCloseConfirm + +# MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response +# type. +class MsgChannelCloseConfirmResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelCloseConfirmResponse = MsgChannelCloseConfirmResponse + +# MsgRecvPacket receives incoming IBC packet +class MsgRecvPacket(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PACKET_FIELD_NUMBER: builtins.int + PROOF_COMMITMENT_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + @property + def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... + proof_commitment: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., + proof_commitment : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_commitment",b"proof_commitment",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... +global___MsgRecvPacket = MsgRecvPacket + +# MsgRecvPacketResponse defines the Msg/RecvPacket response type. +class MsgRecvPacketResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgRecvPacketResponse = MsgRecvPacketResponse + +# MsgTimeout receives timed-out packet +class MsgTimeout(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PACKET_FIELD_NUMBER: builtins.int + PROOF_UNRECEIVED_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + NEXT_SEQUENCE_RECV_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + @property + def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... + proof_unreceived: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + next_sequence_recv: builtins.int = ... + signer: typing.Text = ... + def __init__(self, + *, + packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., + proof_unreceived : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + next_sequence_recv : builtins.int = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_recv",b"next_sequence_recv",u"packet",b"packet",u"proof_height",b"proof_height",u"proof_unreceived",b"proof_unreceived",u"signer",b"signer"]) -> None: ... +global___MsgTimeout = MsgTimeout + +# MsgTimeoutResponse defines the Msg/Timeout response type. +class MsgTimeoutResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgTimeoutResponse = MsgTimeoutResponse + +# MsgTimeoutOnClose timed-out packet upon counterparty channel closure. +class MsgTimeoutOnClose(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PACKET_FIELD_NUMBER: builtins.int + PROOF_UNRECEIVED_FIELD_NUMBER: builtins.int + PROOF_CLOSE_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + NEXT_SEQUENCE_RECV_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + @property + def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... + proof_unreceived: builtins.bytes = ... + proof_close: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + next_sequence_recv: builtins.int = ... + signer: typing.Text = ... + def __init__(self, + *, + packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., + proof_unreceived : builtins.bytes = ..., + proof_close : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + next_sequence_recv : builtins.int = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_recv",b"next_sequence_recv",u"packet",b"packet",u"proof_close",b"proof_close",u"proof_height",b"proof_height",u"proof_unreceived",b"proof_unreceived",u"signer",b"signer"]) -> None: ... +global___MsgTimeoutOnClose = MsgTimeoutOnClose + +# MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. +class MsgTimeoutOnCloseResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgTimeoutOnCloseResponse = MsgTimeoutOnCloseResponse + +# MsgAcknowledgement receives incoming IBC acknowledgement +class MsgAcknowledgement(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PACKET_FIELD_NUMBER: builtins.int + ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int + PROOF_ACKED_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + @property + def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... + acknowledgement: builtins.bytes = ... + proof_acked: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., + acknowledgement : builtins.bytes = ..., + proof_acked : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"packet",b"packet",u"proof_acked",b"proof_acked",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... +global___MsgAcknowledgement = MsgAcknowledgement + +# MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. +class MsgAcknowledgementResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgAcknowledgementResponse = MsgAcknowledgementResponse diff --git a/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..bfd6a2b --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi @@ -0,0 +1,138 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the ibc/channel Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. + ChannelOpenInit:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelOpenInit, + global___MsgChannelOpenInitResponse] = ... + + # ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. + ChannelOpenTry:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelOpenTry, + global___MsgChannelOpenTryResponse] = ... + + # ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. + ChannelOpenAck:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelOpenAck, + global___MsgChannelOpenAckResponse] = ... + + # ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. + ChannelOpenConfirm:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelOpenConfirm, + global___MsgChannelOpenConfirmResponse] = ... + + # ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. + ChannelCloseInit:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelCloseInit, + global___MsgChannelCloseInitResponse] = ... + + # ChannelCloseConfirm defines a rpc handler method for + # MsgChannelCloseConfirm. + ChannelCloseConfirm:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelCloseConfirm, + global___MsgChannelCloseConfirmResponse] = ... + + # RecvPacket defines a rpc handler method for MsgRecvPacket. + RecvPacket:grpc.UnaryUnaryMultiCallable[ + global___MsgRecvPacket, + global___MsgRecvPacketResponse] = ... + + # Timeout defines a rpc handler method for MsgTimeout. + Timeout:grpc.UnaryUnaryMultiCallable[ + global___MsgTimeout, + global___MsgTimeoutResponse] = ... + + # TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. + TimeoutOnClose:grpc.UnaryUnaryMultiCallable[ + global___MsgTimeoutOnClose, + global___MsgTimeoutOnCloseResponse] = ... + + # Acknowledgement defines a rpc handler method for MsgAcknowledgement. + Acknowledgement:grpc.UnaryUnaryMultiCallable[ + global___MsgAcknowledgement, + global___MsgAcknowledgementResponse] = ... + + +# Msg defines the ibc/channel Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. + @abc.abstractmethod + def ChannelOpenInit(self, + request: global___MsgChannelOpenInit, + context: grpc.ServicerContext, + ) -> global___MsgChannelOpenInitResponse: ... + + # ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. + @abc.abstractmethod + def ChannelOpenTry(self, + request: global___MsgChannelOpenTry, + context: grpc.ServicerContext, + ) -> global___MsgChannelOpenTryResponse: ... + + # ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. + @abc.abstractmethod + def ChannelOpenAck(self, + request: global___MsgChannelOpenAck, + context: grpc.ServicerContext, + ) -> global___MsgChannelOpenAckResponse: ... + + # ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. + @abc.abstractmethod + def ChannelOpenConfirm(self, + request: global___MsgChannelOpenConfirm, + context: grpc.ServicerContext, + ) -> global___MsgChannelOpenConfirmResponse: ... + + # ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. + @abc.abstractmethod + def ChannelCloseInit(self, + request: global___MsgChannelCloseInit, + context: grpc.ServicerContext, + ) -> global___MsgChannelCloseInitResponse: ... + + # ChannelCloseConfirm defines a rpc handler method for + # MsgChannelCloseConfirm. + @abc.abstractmethod + def ChannelCloseConfirm(self, + request: global___MsgChannelCloseConfirm, + context: grpc.ServicerContext, + ) -> global___MsgChannelCloseConfirmResponse: ... + + # RecvPacket defines a rpc handler method for MsgRecvPacket. + @abc.abstractmethod + def RecvPacket(self, + request: global___MsgRecvPacket, + context: grpc.ServicerContext, + ) -> global___MsgRecvPacketResponse: ... + + # Timeout defines a rpc handler method for MsgTimeout. + @abc.abstractmethod + def Timeout(self, + request: global___MsgTimeout, + context: grpc.ServicerContext, + ) -> global___MsgTimeoutResponse: ... + + # TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. + @abc.abstractmethod + def TimeoutOnClose(self, + request: global___MsgTimeoutOnClose, + context: grpc.ServicerContext, + ) -> global___MsgTimeoutOnCloseResponse: ... + + # Acknowledgement defines a rpc handler method for MsgAcknowledgement. + @abc.abstractmethod + def Acknowledgement(self, + request: global___MsgAcknowledgement, + context: grpc.ServicerContext, + ) -> global___MsgAcknowledgementResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/client/v1/client_pb2.pyi b/pyband/proto/ibc/core/client/v1/client_pb2.pyi new file mode 100644 index 0000000..fab603e --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/client_pb2.pyi @@ -0,0 +1,174 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.upgrade.v1beta1.upgrade_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# IdentifiedClientState defines a client state with an additional client +# identifier field. +class IdentifiedClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + # client identifier + client_id: typing.Text = ... + # client state + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + client_id : typing.Text = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state"]) -> None: ... +global___IdentifiedClientState = IdentifiedClientState + +# ConsensusStateWithHeight defines a consensus state with an additional height +# field. +class ConsensusStateWithHeight(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + # consensus state height + @property + def height(self) -> global___Height: ... + # consensus state + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + height : typing.Optional[global___Height] = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"height",b"height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"height",b"height"]) -> None: ... +global___ConsensusStateWithHeight = ConsensusStateWithHeight + +# ClientConsensusStates defines all the stored consensus states for a given +# client. +class ClientConsensusStates(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CONSENSUS_STATES_FIELD_NUMBER: builtins.int + # client identifier + client_id: typing.Text = ... + # consensus states and their heights associated with the client + @property + def consensus_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConsensusStateWithHeight]: ... + def __init__(self, + *, + client_id : typing.Text = ..., + consensus_states : typing.Optional[typing.Iterable[global___ConsensusStateWithHeight]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_states",b"consensus_states"]) -> None: ... +global___ClientConsensusStates = ClientConsensusStates + +# ClientUpdateProposal is a governance proposal. If it passes, the substitute +# client's latest consensus state is copied over to the subject client. The proposal +# handler may fail if the subject and the substitute do not match in client and +# chain parameters (with exception to latest height, frozen height, and chain-id). +class ClientUpdateProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + SUBJECT_CLIENT_ID_FIELD_NUMBER: builtins.int + SUBSTITUTE_CLIENT_ID_FIELD_NUMBER: builtins.int + # the title of the update proposal + title: typing.Text = ... + # the description of the proposal + description: typing.Text = ... + # the client identifier for the client to be updated if the proposal passes + subject_client_id: typing.Text = ... + # the substitute client identifier for the client standing in for the subject + # client + substitute_client_id: typing.Text = ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + subject_client_id : typing.Text = ..., + substitute_client_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"subject_client_id",b"subject_client_id",u"substitute_client_id",b"substitute_client_id",u"title",b"title"]) -> None: ... +global___ClientUpdateProposal = ClientUpdateProposal + +# UpgradeProposal is a gov Content type for initiating an IBC breaking +# upgrade. +class UpgradeProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + PLAN_FIELD_NUMBER: builtins.int + UPGRADED_CLIENT_STATE_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + @property + def plan(self) -> cosmos.upgrade.v1beta1.upgrade_pb2.Plan: ... + # An UpgradedClientState must be provided to perform an IBC breaking upgrade. + # This will make the chain commit to the correct upgraded (self) client state + # before the upgrade occurs, so that connecting chains can verify that the + # new upgraded client is valid by verifying a proof on the previous version + # of the chain. This will allow IBC connections to persist smoothly across + # planned chain upgrades + @property + def upgraded_client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + plan : typing.Optional[cosmos.upgrade.v1beta1.upgrade_pb2.Plan] = ..., + upgraded_client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan",u"upgraded_client_state",b"upgraded_client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"plan",b"plan",u"title",b"title",u"upgraded_client_state",b"upgraded_client_state"]) -> None: ... +global___UpgradeProposal = UpgradeProposal + +# Height is a monotonically increasing data type +# that can be compared against another Height for the purposes of updating and +# freezing clients +# +# Normally the RevisionHeight is incremented at each height while keeping +# RevisionNumber the same. However some consensus algorithms may choose to +# reset the height in certain conditions e.g. hard forks, state-machine +# breaking changes In these cases, the RevisionNumber is incremented so that +# height continues to be monitonically increasing even as the RevisionHeight +# gets reset +class Height(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REVISION_NUMBER_FIELD_NUMBER: builtins.int + REVISION_HEIGHT_FIELD_NUMBER: builtins.int + # the revision that the client is currently on + revision_number: builtins.int = ... + # the height within the given revision + revision_height: builtins.int = ... + def __init__(self, + *, + revision_number : builtins.int = ..., + revision_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... +global___Height = Height + +# Params defines the set of IBC light client parameters. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWED_CLIENTS_FIELD_NUMBER: builtins.int + # allowed_clients defines the list of allowed client state types. + @property + def allowed_clients(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + allowed_clients : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowed_clients",b"allowed_clients"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi new file mode 100644 index 0000000..604fd68 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .client_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/client/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/client/v1/genesis_pb2.pyi new file mode 100644 index 0000000..3d4bad7 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/genesis_pb2.pyi @@ -0,0 +1,85 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc client submodule's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENTS_FIELD_NUMBER: builtins.int + CLIENTS_CONSENSUS_FIELD_NUMBER: builtins.int + CLIENTS_METADATA_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + CREATE_LOCALHOST_FIELD_NUMBER: builtins.int + NEXT_CLIENT_SEQUENCE_FIELD_NUMBER: builtins.int + # client states with their corresponding identifiers + @property + def clients(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.IdentifiedClientState]: ... + # consensus states from each client + @property + def clients_consensus(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.ClientConsensusStates]: ... + # metadata from each client + @property + def clients_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IdentifiedGenesisMetadata]: ... + @property + def params(self) -> ibc.core.client.v1.client_pb2.Params: ... + # create localhost on initialization + create_localhost: builtins.bool = ... + # the sequence for the next generated client identifier + next_client_sequence: builtins.int = ... + def __init__(self, + *, + clients : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.IdentifiedClientState]] = ..., + clients_consensus : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.ClientConsensusStates]] = ..., + clients_metadata : typing.Optional[typing.Iterable[global___IdentifiedGenesisMetadata]] = ..., + params : typing.Optional[ibc.core.client.v1.client_pb2.Params] = ..., + create_localhost : builtins.bool = ..., + next_client_sequence : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"clients",b"clients",u"clients_consensus",b"clients_consensus",u"clients_metadata",b"clients_metadata",u"create_localhost",b"create_localhost",u"next_client_sequence",b"next_client_sequence",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState + +# GenesisMetadata defines the genesis type for metadata that clients may return +# with ExportMetadata +class GenesisMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + # store key of metadata without clientID-prefix + key: builtins.bytes = ... + # metadata value + value: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___GenesisMetadata = GenesisMetadata + +# IdentifiedGenesisMetadata has the client metadata with the corresponding +# client id. +class IdentifiedGenesisMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CLIENT_METADATA_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + @property + def client_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GenesisMetadata]: ... + def __init__(self, + *, + client_id : typing.Text = ..., + client_metadata : typing.Optional[typing.Iterable[global___GenesisMetadata]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_metadata",b"client_metadata"]) -> None: ... +global___IdentifiedGenesisMetadata = IdentifiedGenesisMetadata diff --git a/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/client/v1/query_pb2.pyi b/pyband/proto/ibc/core/client/v1/query_pb2.pyi new file mode 100644 index 0000000..02b288d --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/query_pb2.pyi @@ -0,0 +1,285 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryClientStateRequest is the request type for the Query/ClientState RPC +# method +class QueryClientStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + # client state unique identifier + client_id: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id"]) -> None: ... +global___QueryClientStateRequest = QueryClientStateRequest + +# QueryClientStateResponse is the response type for the Query/ClientState RPC +# method. Besides the client state, it includes a proof and the height from +# which the proof was retrieved. +class QueryClientStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_STATE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # client state associated with the request identifier + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryClientStateResponse = QueryClientStateResponse + +# QueryClientStatesRequest is the request type for the Query/ClientStates RPC +# method +class QueryClientStatesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QueryClientStatesRequest = QueryClientStatesRequest + +# QueryClientStatesResponse is the response type for the Query/ClientStates RPC +# method. +class QueryClientStatesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_STATES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # list of stored ClientStates of the chain. + @property + def client_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.IdentifiedClientState]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + client_states : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.IdentifiedClientState]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_states",b"client_states",u"pagination",b"pagination"]) -> None: ... +global___QueryClientStatesResponse = QueryClientStatesResponse + +# QueryConsensusStateRequest is the request type for the Query/ConsensusState +# RPC method. Besides the consensus state, it includes a proof and the height +# from which the proof was retrieved. +class QueryConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + REVISION_NUMBER_FIELD_NUMBER: builtins.int + REVISION_HEIGHT_FIELD_NUMBER: builtins.int + LATEST_HEIGHT_FIELD_NUMBER: builtins.int + # client identifier + client_id: typing.Text = ... + # consensus state revision number + revision_number: builtins.int = ... + # consensus state revision height + revision_height: builtins.int = ... + # latest_height overrrides the height field and queries the latest stored + # ConsensusState + latest_height: builtins.bool = ... + def __init__(self, + *, + client_id : typing.Text = ..., + revision_number : builtins.int = ..., + revision_height : builtins.int = ..., + latest_height : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"latest_height",b"latest_height",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... +global___QueryConsensusStateRequest = QueryConsensusStateRequest + +# QueryConsensusStateResponse is the response type for the Query/ConsensusState +# RPC method +class QueryConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # consensus state associated with the client identifier at the given height + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryConsensusStateResponse = QueryConsensusStateResponse + +# QueryConsensusStatesRequest is the request type for the Query/ConsensusStates +# RPC method. +class QueryConsensusStatesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # client identifier + client_id: typing.Text = ... + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + client_id : typing.Text = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"pagination",b"pagination"]) -> None: ... +global___QueryConsensusStatesRequest = QueryConsensusStatesRequest + +# QueryConsensusStatesResponse is the response type for the +# Query/ConsensusStates RPC method +class QueryConsensusStatesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_STATES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # consensus states associated with the identifier + @property + def consensus_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.ConsensusStateWithHeight]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + consensus_states : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.ConsensusStateWithHeight]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_states",b"consensus_states",u"pagination",b"pagination"]) -> None: ... +global___QueryConsensusStatesResponse = QueryConsensusStatesResponse + +# QueryClientStatusRequest is the request type for the Query/ClientStatus RPC +# method +class QueryClientStatusRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + # client unique identifier + client_id: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id"]) -> None: ... +global___QueryClientStatusRequest = QueryClientStatusRequest + +# QueryClientStatusResponse is the response type for the Query/ClientStatus RPC +# method. It returns the current status of the IBC client. +class QueryClientStatusResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATUS_FIELD_NUMBER: builtins.int + status: typing.Text = ... + def __init__(self, + *, + status : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> None: ... +global___QueryClientStatusResponse = QueryClientStatusResponse + +# QueryClientParamsRequest is the request type for the Query/ClientParams RPC +# method. +class QueryClientParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryClientParamsRequest = QueryClientParamsRequest + +# QueryClientParamsResponse is the response type for the Query/ClientParams RPC +# method. +class QueryClientParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + # params defines the parameters of the module. + @property + def params(self) -> ibc.core.client.v1.client_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[ibc.core.client.v1.client_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryClientParamsResponse = QueryClientParamsResponse + +# QueryUpgradedClientStateRequest is the request type for the +# Query/UpgradedClientState RPC method +class QueryUpgradedClientStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryUpgradedClientStateRequest = QueryUpgradedClientStateRequest + +# QueryUpgradedClientStateResponse is the response type for the +# Query/UpgradedClientState RPC method. +class QueryUpgradedClientStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UPGRADED_CLIENT_STATE_FIELD_NUMBER: builtins.int + # client state associated with the request identifier + @property + def upgraded_client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + upgraded_client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"upgraded_client_state",b"upgraded_client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"upgraded_client_state",b"upgraded_client_state"]) -> None: ... +global___QueryUpgradedClientStateResponse = QueryUpgradedClientStateResponse + +# QueryUpgradedConsensusStateRequest is the request type for the +# Query/UpgradedConsensusState RPC method +class QueryUpgradedConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryUpgradedConsensusStateRequest = QueryUpgradedConsensusStateRequest + +# QueryUpgradedConsensusStateResponse is the response type for the +# Query/UpgradedConsensusState RPC method. +class QueryUpgradedConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UPGRADED_CONSENSUS_STATE_FIELD_NUMBER: builtins.int + # Consensus state associated with the request identifier + @property + def upgraded_consensus_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + upgraded_consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> None: ... +global___QueryUpgradedConsensusStateResponse = QueryUpgradedConsensusStateResponse diff --git a/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..ea22653 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi @@ -0,0 +1,116 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # ClientState queries an IBC light client. + ClientState:grpc.UnaryUnaryMultiCallable[ + global___QueryClientStateRequest, + global___QueryClientStateResponse] = ... + + # ClientStates queries all the IBC light clients of a chain. + ClientStates:grpc.UnaryUnaryMultiCallable[ + global___QueryClientStatesRequest, + global___QueryClientStatesResponse] = ... + + # ConsensusState queries a consensus state associated with a client state at + # a given height. + ConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryConsensusStateRequest, + global___QueryConsensusStateResponse] = ... + + # ConsensusStates queries all the consensus state associated with a given + # client. + ConsensusStates:grpc.UnaryUnaryMultiCallable[ + global___QueryConsensusStatesRequest, + global___QueryConsensusStatesResponse] = ... + + # Status queries the status of an IBC client. + ClientStatus:grpc.UnaryUnaryMultiCallable[ + global___QueryClientStatusRequest, + global___QueryClientStatusResponse] = ... + + # ClientParams queries all parameters of the ibc client. + ClientParams:grpc.UnaryUnaryMultiCallable[ + global___QueryClientParamsRequest, + global___QueryClientParamsResponse] = ... + + # UpgradedClientState queries an Upgraded IBC light client. + UpgradedClientState:grpc.UnaryUnaryMultiCallable[ + global___QueryUpgradedClientStateRequest, + global___QueryUpgradedClientStateResponse] = ... + + # UpgradedConsensusState queries an Upgraded IBC consensus state. + UpgradedConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryUpgradedConsensusStateRequest, + global___QueryUpgradedConsensusStateResponse] = ... + + +# Query provides defines the gRPC querier service +class QueryServicer(metaclass=abc.ABCMeta): + # ClientState queries an IBC light client. + @abc.abstractmethod + def ClientState(self, + request: global___QueryClientStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientStateResponse: ... + + # ClientStates queries all the IBC light clients of a chain. + @abc.abstractmethod + def ClientStates(self, + request: global___QueryClientStatesRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientStatesResponse: ... + + # ConsensusState queries a consensus state associated with a client state at + # a given height. + @abc.abstractmethod + def ConsensusState(self, + request: global___QueryConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryConsensusStateResponse: ... + + # ConsensusStates queries all the consensus state associated with a given + # client. + @abc.abstractmethod + def ConsensusStates(self, + request: global___QueryConsensusStatesRequest, + context: grpc.ServicerContext, + ) -> global___QueryConsensusStatesResponse: ... + + # Status queries the status of an IBC client. + @abc.abstractmethod + def ClientStatus(self, + request: global___QueryClientStatusRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientStatusResponse: ... + + # ClientParams queries all parameters of the ibc client. + @abc.abstractmethod + def ClientParams(self, + request: global___QueryClientParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientParamsResponse: ... + + # UpgradedClientState queries an Upgraded IBC light client. + @abc.abstractmethod + def UpgradedClientState(self, + request: global___QueryUpgradedClientStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryUpgradedClientStateResponse: ... + + # UpgradedConsensusState queries an Upgraded IBC consensus state. + @abc.abstractmethod + def UpgradedConsensusState(self, + request: global___QueryUpgradedConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryUpgradedConsensusStateResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/client/v1/tx_pb2.pyi b/pyband/proto/ibc/core/client/v1/tx_pb2.pyi new file mode 100644 index 0000000..9e212a6 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/tx_pb2.pyi @@ -0,0 +1,152 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgCreateClient defines a message to create an IBC client +class MsgCreateClient(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_STATE_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + # light client state + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + # consensus state associated with the client that corresponds to a given + # height. + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # signer address + signer: typing.Text = ... + def __init__(self, + *, + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state",u"signer",b"signer"]) -> None: ... +global___MsgCreateClient = MsgCreateClient + +# MsgCreateClientResponse defines the Msg/CreateClient response type. +class MsgCreateClientResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateClientResponse = MsgCreateClientResponse + +# MsgUpdateClient defines an sdk.Msg to update a IBC client state using +# the given header. +class MsgUpdateClient(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + HEADER_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + # client unique identifier + client_id: typing.Text = ... + # header to update the light client + @property + def header(self) -> google.protobuf.any_pb2.Any: ... + # signer address + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + header : typing.Optional[google.protobuf.any_pb2.Any] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"header",b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"header",b"header",u"signer",b"signer"]) -> None: ... +global___MsgUpdateClient = MsgUpdateClient + +# MsgUpdateClientResponse defines the Msg/UpdateClient response type. +class MsgUpdateClientResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgUpdateClientResponse = MsgUpdateClientResponse + +# MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client +# state +class MsgUpgradeClient(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + PROOF_UPGRADE_CLIENT_FIELD_NUMBER: builtins.int + PROOF_UPGRADE_CONSENSUS_STATE_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + # client unique identifier + client_id: typing.Text = ... + # upgraded client state + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + # upgraded consensus state, only contains enough information to serve as a + # basis of trust in update logic + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # proof that old chain committed to new client + proof_upgrade_client: builtins.bytes = ... + # proof that old chain committed to new consensus state + proof_upgrade_consensus_state: builtins.bytes = ... + # signer address + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + proof_upgrade_client : builtins.bytes = ..., + proof_upgrade_consensus_state : builtins.bytes = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state",u"consensus_state",b"consensus_state",u"proof_upgrade_client",b"proof_upgrade_client",u"proof_upgrade_consensus_state",b"proof_upgrade_consensus_state",u"signer",b"signer"]) -> None: ... +global___MsgUpgradeClient = MsgUpgradeClient + +# MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. +class MsgUpgradeClientResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgUpgradeClientResponse = MsgUpgradeClientResponse + +# MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for +# light client misbehaviour. +class MsgSubmitMisbehaviour(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + MISBEHAVIOUR_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + # client unique identifier + client_id: typing.Text = ... + # misbehaviour used for freezing the light client + @property + def misbehaviour(self) -> google.protobuf.any_pb2.Any: ... + # signer address + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + misbehaviour : typing.Optional[google.protobuf.any_pb2.Any] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"misbehaviour",b"misbehaviour"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"misbehaviour",b"misbehaviour",u"signer",b"signer"]) -> None: ... +global___MsgSubmitMisbehaviour = MsgSubmitMisbehaviour + +# MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response +# type. +class MsgSubmitMisbehaviourResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgSubmitMisbehaviourResponse = MsgSubmitMisbehaviourResponse diff --git a/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..254b929 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the ibc/client Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # CreateClient defines a rpc handler method for MsgCreateClient. + CreateClient:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateClient, + global___MsgCreateClientResponse] = ... + + # UpdateClient defines a rpc handler method for MsgUpdateClient. + UpdateClient:grpc.UnaryUnaryMultiCallable[ + global___MsgUpdateClient, + global___MsgUpdateClientResponse] = ... + + # UpgradeClient defines a rpc handler method for MsgUpgradeClient. + UpgradeClient:grpc.UnaryUnaryMultiCallable[ + global___MsgUpgradeClient, + global___MsgUpgradeClientResponse] = ... + + # SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. + SubmitMisbehaviour:grpc.UnaryUnaryMultiCallable[ + global___MsgSubmitMisbehaviour, + global___MsgSubmitMisbehaviourResponse] = ... + + +# Msg defines the ibc/client Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # CreateClient defines a rpc handler method for MsgCreateClient. + @abc.abstractmethod + def CreateClient(self, + request: global___MsgCreateClient, + context: grpc.ServicerContext, + ) -> global___MsgCreateClientResponse: ... + + # UpdateClient defines a rpc handler method for MsgUpdateClient. + @abc.abstractmethod + def UpdateClient(self, + request: global___MsgUpdateClient, + context: grpc.ServicerContext, + ) -> global___MsgUpdateClientResponse: ... + + # UpgradeClient defines a rpc handler method for MsgUpgradeClient. + @abc.abstractmethod + def UpgradeClient(self, + request: global___MsgUpgradeClient, + context: grpc.ServicerContext, + ) -> global___MsgUpgradeClientResponse: ... + + # SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. + @abc.abstractmethod + def SubmitMisbehaviour(self, + request: global___MsgSubmitMisbehaviour, + context: grpc.ServicerContext, + ) -> global___MsgSubmitMisbehaviourResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi b/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi new file mode 100644 index 0000000..89840e9 --- /dev/null +++ b/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi @@ -0,0 +1,72 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import confio.proofs_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MerkleRoot defines a merkle root hash. +# In the Cosmos SDK, the AppHash of a block header becomes the root. +class MerkleRoot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + hash: builtins.bytes = ... + def __init__(self, + *, + hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... +global___MerkleRoot = MerkleRoot + +# MerklePrefix is merkle path prefixed to the key. +# The constructed key from the Path and the key will be append(Path.KeyPath, +# append(Path.KeyPrefix, key...)) +class MerklePrefix(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_PREFIX_FIELD_NUMBER: builtins.int + key_prefix: builtins.bytes = ... + def __init__(self, + *, + key_prefix : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key_prefix",b"key_prefix"]) -> None: ... +global___MerklePrefix = MerklePrefix + +# MerklePath is the path used to verify commitment proofs, which can be an +# arbitrary structured object (defined by a commitment type). +# MerklePath is represented from root-to-leaf +class MerklePath(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_PATH_FIELD_NUMBER: builtins.int + @property + def key_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + key_path : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key_path",b"key_path"]) -> None: ... +global___MerklePath = MerklePath + +# MerkleProof is a wrapper type over a chain of CommitmentProofs. +# It demonstrates membership or non-membership for an element or set of +# elements, verifiable in conjunction with a known commitment root. Proofs +# should be succinct. +# MerkleProofs are ordered from leaf-to-root +class MerkleProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROOFS_FIELD_NUMBER: builtins.int + @property + def proofs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[confio.proofs_pb2.CommitmentProof]: ... + def __init__(self, + *, + proofs : typing.Optional[typing.Iterable[confio.proofs_pb2.CommitmentProof]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proofs",b"proofs"]) -> None: ... +global___MerkleProof = MerkleProof diff --git a/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi b/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi new file mode 100644 index 0000000..b3cc64e --- /dev/null +++ b/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .commitment_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi b/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi new file mode 100644 index 0000000..f4c9290 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi @@ -0,0 +1,214 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import ibc.core.commitment.v1.commitment_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# State defines if a connection is in one of the following states: +# INIT, TRYOPEN, OPEN or UNINITIALIZED. +class State(_State, metaclass=_StateEnumTypeWrapper): + pass +class _State: + V = typing.NewType('V', builtins.int) +class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_State.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Default State + STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) + # A connection end has just started the opening handshake. + STATE_INIT = State.V(1) + # A connection end has acknowledged the handshake step on the counterparty + # chain. + STATE_TRYOPEN = State.V(2) + # A connection end has completed the handshake. + STATE_OPEN = State.V(3) + +# Default State +STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) +# A connection end has just started the opening handshake. +STATE_INIT = State.V(1) +# A connection end has acknowledged the handshake step on the counterparty +# chain. +STATE_TRYOPEN = State.V(2) +# A connection end has completed the handshake. +STATE_OPEN = State.V(3) +global___State = State + + +# ICS03 - Connection Data Structures as defined in +# https://github.com/cosmos/ics/tree/master/spec/ics-003-connection-semantics#data-structures + +# ConnectionEnd defines a stateful object on a chain connected to another +# separate one. +# NOTE: there must only be 2 defined ConnectionEnds to establish +# a connection between two chains. +class ConnectionEnd(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + VERSIONS_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + DELAY_PERIOD_FIELD_NUMBER: builtins.int + # client associated with this connection. + client_id: typing.Text = ... + # IBC version which can be utilised to determine encodings or protocols for + # channels or packets utilising this connection. + @property + def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Version]: ... + # current state of the connection end. + state: global___State.V = ... + # counterparty chain associated with this connection. + @property + def counterparty(self) -> global___Counterparty: ... + # delay period that must pass before a consensus state can be used for + # packet-verification NOTE: delay period logic is only implemented by some + # clients. + delay_period: builtins.int = ... + def __init__(self, + *, + client_id : typing.Text = ..., + versions : typing.Optional[typing.Iterable[global___Version]] = ..., + state : global___State.V = ..., + counterparty : typing.Optional[global___Counterparty] = ..., + delay_period : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"state",b"state",u"versions",b"versions"]) -> None: ... +global___ConnectionEnd = ConnectionEnd + +# IdentifiedConnection defines a connection with additional connection +# identifier field. +class IdentifiedConnection(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ID_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + VERSIONS_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + DELAY_PERIOD_FIELD_NUMBER: builtins.int + # connection identifier. + id: typing.Text = ... + # client associated with this connection. + client_id: typing.Text = ... + # IBC version which can be utilised to determine encodings or protocols for + # channels or packets utilising this connection + @property + def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Version]: ... + # current state of the connection end. + state: global___State.V = ... + # counterparty chain associated with this connection. + @property + def counterparty(self) -> global___Counterparty: ... + # delay period associated with this connection. + delay_period: builtins.int = ... + def __init__(self, + *, + id : typing.Text = ..., + client_id : typing.Text = ..., + versions : typing.Optional[typing.Iterable[global___Version]] = ..., + state : global___State.V = ..., + counterparty : typing.Optional[global___Counterparty] = ..., + delay_period : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"id",b"id",u"state",b"state",u"versions",b"versions"]) -> None: ... +global___IdentifiedConnection = IdentifiedConnection + +# Counterparty defines the counterparty chain associated with a connection end. +class Counterparty(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CONNECTION_ID_FIELD_NUMBER: builtins.int + PREFIX_FIELD_NUMBER: builtins.int + # identifies the client on the counterparty chain associated with a given + # connection. + client_id: typing.Text = ... + # identifies the connection end on the counterparty chain associated with a + # given connection. + connection_id: typing.Text = ... + # commitment merkle prefix of the counterparty chain. + @property + def prefix(self) -> ibc.core.commitment.v1.commitment_pb2.MerklePrefix: ... + def __init__(self, + *, + client_id : typing.Text = ..., + connection_id : typing.Text = ..., + prefix : typing.Optional[ibc.core.commitment.v1.commitment_pb2.MerklePrefix] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"prefix",b"prefix"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"connection_id",b"connection_id",u"prefix",b"prefix"]) -> None: ... +global___Counterparty = Counterparty + +# ClientPaths define all the connection paths for a client state. +class ClientPaths(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATHS_FIELD_NUMBER: builtins.int + # list of connection paths + @property + def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + paths : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"paths",b"paths"]) -> None: ... +global___ClientPaths = ClientPaths + +# ConnectionPaths define all the connection paths for a given client state. +class ConnectionPaths(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + PATHS_FIELD_NUMBER: builtins.int + # client state unique identifier + client_id: typing.Text = ... + # list of connection paths + @property + def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + client_id : typing.Text = ..., + paths : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"paths",b"paths"]) -> None: ... +global___ConnectionPaths = ConnectionPaths + +# Version defines the versioning scheme used to negotiate the IBC verison in +# the connection handshake. +class Version(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IDENTIFIER_FIELD_NUMBER: builtins.int + FEATURES_FIELD_NUMBER: builtins.int + # unique version identifier + identifier: typing.Text = ... + # list of features compatible with the specified identifier + @property + def features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + identifier : typing.Text = ..., + features : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"features",b"features",u"identifier",b"identifier"]) -> None: ... +global___Version = Version + +# Params defines the set of Connection parameters. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_EXPECTED_TIME_PER_BLOCK_FIELD_NUMBER: builtins.int + # maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the + # largest amount of time that the chain might reasonably take to produce the next block under normal operating + # conditions. A safe choice is 3-5x the expected time per block. + max_expected_time_per_block: builtins.int = ... + def __init__(self, + *, + max_expected_time_per_block : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_expected_time_per_block",b"max_expected_time_per_block"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi new file mode 100644 index 0000000..1c431c3 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .connection_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi new file mode 100644 index 0000000..8855187 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi @@ -0,0 +1,39 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc connection submodule's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTIONS_FIELD_NUMBER: builtins.int + CLIENT_CONNECTION_PATHS_FIELD_NUMBER: builtins.int + NEXT_CONNECTION_SEQUENCE_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + @property + def connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]: ... + @property + def client_connection_paths(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.ConnectionPaths]: ... + # the sequence for the next generated connection identifier + next_connection_sequence: builtins.int = ... + @property + def params(self) -> ibc.core.connection.v1.connection_pb2.Params: ... + def __init__(self, + *, + connections : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]] = ..., + client_connection_paths : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.ConnectionPaths]] = ..., + next_connection_sequence : builtins.int = ..., + params : typing.Optional[ibc.core.connection.v1.connection_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_connection_paths",b"client_connection_paths",u"connections",b"connections",u"next_connection_sequence",b"next_connection_sequence",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/query_pb2.pyi b/pyband/proto/ibc/core/connection/v1/query_pb2.pyi new file mode 100644 index 0000000..d5fad51 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/query_pb2.pyi @@ -0,0 +1,224 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryConnectionRequest is the request type for the Query/Connection RPC +# method +class QueryConnectionRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + # connection unique identifier + connection_id: typing.Text = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id"]) -> None: ... +global___QueryConnectionRequest = QueryConnectionRequest + +# QueryConnectionResponse is the response type for the Query/Connection RPC +# method. Besides the connection end, it includes a proof and the height from +# which the proof was retrieved. +class QueryConnectionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # connection associated with the request identifier + @property + def connection(self) -> ibc.core.connection.v1.connection_pb2.ConnectionEnd: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + connection : typing.Optional[ibc.core.connection.v1.connection_pb2.ConnectionEnd] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryConnectionResponse = QueryConnectionResponse + +# QueryConnectionsRequest is the request type for the Query/Connections RPC +# method +class QueryConnectionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> None: ... +global___QueryConnectionsRequest = QueryConnectionsRequest + +# QueryConnectionsResponse is the response type for the Query/Connections RPC +# method. +class QueryConnectionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTIONS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of stored connections of the chain. + @property + def connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + connections : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connections",b"connections",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryConnectionsResponse = QueryConnectionsResponse + +# QueryClientConnectionsRequest is the request type for the +# Query/ClientConnections RPC method +class QueryClientConnectionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + # client identifier associated with a connection + client_id: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id"]) -> None: ... +global___QueryClientConnectionsRequest = QueryClientConnectionsRequest + +# QueryClientConnectionsResponse is the response type for the +# Query/ClientConnections RPC method +class QueryClientConnectionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_PATHS_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # slice of all the connection paths associated with a client. + @property + def connection_paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was generated + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + connection_paths : typing.Optional[typing.Iterable[typing.Text]] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_paths",b"connection_paths",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryClientConnectionsResponse = QueryClientConnectionsResponse + +# QueryConnectionClientStateRequest is the request type for the +# Query/ConnectionClientState RPC method +class QueryConnectionClientStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + # connection identifier + connection_id: typing.Text = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id"]) -> None: ... +global___QueryConnectionClientStateRequest = QueryConnectionClientStateRequest + +# QueryConnectionClientStateResponse is the response type for the +# Query/ConnectionClientState RPC method +class QueryConnectionClientStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IDENTIFIED_CLIENT_STATE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # client state associated with the channel + @property + def identified_client_state(self) -> ibc.core.client.v1.client_pb2.IdentifiedClientState: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + identified_client_state : typing.Optional[ibc.core.client.v1.client_pb2.IdentifiedClientState] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryConnectionClientStateResponse = QueryConnectionClientStateResponse + +# QueryConnectionConsensusStateRequest is the request type for the +# Query/ConnectionConsensusState RPC method +class QueryConnectionConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + REVISION_NUMBER_FIELD_NUMBER: builtins.int + REVISION_HEIGHT_FIELD_NUMBER: builtins.int + # connection identifier + connection_id: typing.Text = ... + revision_number: builtins.int = ... + revision_height: builtins.int = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + revision_number : builtins.int = ..., + revision_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... +global___QueryConnectionConsensusStateRequest = QueryConnectionConsensusStateRequest + +# QueryConnectionConsensusStateResponse is the response type for the +# Query/ConnectionConsensusState RPC method +class QueryConnectionConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # consensus state associated with the channel + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # client ID associated with the consensus state + client_id: typing.Text = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + client_id : typing.Text = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryConnectionConsensusStateResponse = QueryConnectionConsensusStateResponse diff --git a/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..cc745db --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi @@ -0,0 +1,82 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Connection queries an IBC connection end. + Connection:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionRequest, + global___QueryConnectionResponse] = ... + + # Connections queries all the IBC connections of a chain. + Connections:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionsRequest, + global___QueryConnectionsResponse] = ... + + # ClientConnections queries the connection paths associated with a client + # state. + ClientConnections:grpc.UnaryUnaryMultiCallable[ + global___QueryClientConnectionsRequest, + global___QueryClientConnectionsResponse] = ... + + # ConnectionClientState queries the client state associated with the + # connection. + ConnectionClientState:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionClientStateRequest, + global___QueryConnectionClientStateResponse] = ... + + # ConnectionConsensusState queries the consensus state associated with the + # connection. + ConnectionConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionConsensusStateRequest, + global___QueryConnectionConsensusStateResponse] = ... + + +# Query provides defines the gRPC querier service +class QueryServicer(metaclass=abc.ABCMeta): + # Connection queries an IBC connection end. + @abc.abstractmethod + def Connection(self, + request: global___QueryConnectionRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionResponse: ... + + # Connections queries all the IBC connections of a chain. + @abc.abstractmethod + def Connections(self, + request: global___QueryConnectionsRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionsResponse: ... + + # ClientConnections queries the connection paths associated with a client + # state. + @abc.abstractmethod + def ClientConnections(self, + request: global___QueryClientConnectionsRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientConnectionsResponse: ... + + # ConnectionClientState queries the client state associated with the + # connection. + @abc.abstractmethod + def ConnectionClientState(self, + request: global___QueryConnectionClientStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionClientStateResponse: ... + + # ConnectionConsensusState queries the consensus state associated with the + # connection. + @abc.abstractmethod + def ConnectionConsensusState(self, + request: global___QueryConnectionConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionConsensusStateResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi b/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi new file mode 100644 index 0000000..9df15de --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi @@ -0,0 +1,205 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgConnectionOpenInit defines the msg sent by an account on Chain A to +# initialize a connection with Chain B. +class MsgConnectionOpenInit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + DELAY_PERIOD_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + @property + def counterparty(self) -> ibc.core.connection.v1.connection_pb2.Counterparty: ... + @property + def version(self) -> ibc.core.connection.v1.connection_pb2.Version: ... + delay_period: builtins.int = ... + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + counterparty : typing.Optional[ibc.core.connection.v1.connection_pb2.Counterparty] = ..., + version : typing.Optional[ibc.core.connection.v1.connection_pb2.Version] = ..., + delay_period : builtins.int = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"signer",b"signer",u"version",b"version"]) -> None: ... +global___MsgConnectionOpenInit = MsgConnectionOpenInit + +# MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response +# type. +class MsgConnectionOpenInitResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgConnectionOpenInitResponse = MsgConnectionOpenInitResponse + +# MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a +# connection on Chain B. +class MsgConnectionOpenTry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + PREVIOUS_CONNECTION_ID_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + DELAY_PERIOD_FIELD_NUMBER: builtins.int + COUNTERPARTY_VERSIONS_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + PROOF_INIT_FIELD_NUMBER: builtins.int + PROOF_CLIENT_FIELD_NUMBER: builtins.int + PROOF_CONSENSUS_FIELD_NUMBER: builtins.int + CONSENSUS_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + # in the case of crossing hello's, when both chains call OpenInit, we need + # the connection identifier of the previous connection in state INIT + previous_connection_id: typing.Text = ... + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + @property + def counterparty(self) -> ibc.core.connection.v1.connection_pb2.Counterparty: ... + delay_period: builtins.int = ... + @property + def counterparty_versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.Version]: ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # proof of the initialization the connection on Chain A: `UNITIALIZED -> + # INIT` + proof_init: builtins.bytes = ... + # proof of client state included in message + proof_client: builtins.bytes = ... + # proof of client consensus state + proof_consensus: builtins.bytes = ... + @property + def consensus_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + previous_connection_id : typing.Text = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + counterparty : typing.Optional[ibc.core.connection.v1.connection_pb2.Counterparty] = ..., + delay_period : builtins.int = ..., + counterparty_versions : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.Version]] = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + proof_init : builtins.bytes = ..., + proof_client : builtins.bytes = ..., + proof_consensus : builtins.bytes = ..., + consensus_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"counterparty",b"counterparty",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"counterparty",b"counterparty",u"counterparty_versions",b"counterparty_versions",u"delay_period",b"delay_period",u"previous_connection_id",b"previous_connection_id",u"proof_client",b"proof_client",u"proof_consensus",b"proof_consensus",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... +global___MsgConnectionOpenTry = MsgConnectionOpenTry + +# MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. +class MsgConnectionOpenTryResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgConnectionOpenTryResponse = MsgConnectionOpenTryResponse + +# MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to +# acknowledge the change of connection state to TRYOPEN on Chain B. +class MsgConnectionOpenAck(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + COUNTERPARTY_CONNECTION_ID_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + PROOF_TRY_FIELD_NUMBER: builtins.int + PROOF_CLIENT_FIELD_NUMBER: builtins.int + PROOF_CONSENSUS_FIELD_NUMBER: builtins.int + CONSENSUS_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + connection_id: typing.Text = ... + counterparty_connection_id: typing.Text = ... + @property + def version(self) -> ibc.core.connection.v1.connection_pb2.Version: ... + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # proof of the initialization the connection on Chain B: `UNITIALIZED -> + # TRYOPEN` + proof_try: builtins.bytes = ... + # proof of client state included in message + proof_client: builtins.bytes = ... + # proof of client consensus state + proof_consensus: builtins.bytes = ... + @property + def consensus_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + counterparty_connection_id : typing.Text = ..., + version : typing.Optional[ibc.core.connection.v1.connection_pb2.Version] = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + proof_try : builtins.bytes = ..., + proof_client : builtins.bytes = ..., + proof_consensus : builtins.bytes = ..., + consensus_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"proof_height",b"proof_height",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"connection_id",b"connection_id",u"consensus_height",b"consensus_height",u"counterparty_connection_id",b"counterparty_connection_id",u"proof_client",b"proof_client",u"proof_consensus",b"proof_consensus",u"proof_height",b"proof_height",u"proof_try",b"proof_try",u"signer",b"signer",u"version",b"version"]) -> None: ... +global___MsgConnectionOpenAck = MsgConnectionOpenAck + +# MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. +class MsgConnectionOpenAckResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgConnectionOpenAckResponse = MsgConnectionOpenAckResponse + +# MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to +# acknowledge the change of connection state to OPEN on Chain A. +class MsgConnectionOpenConfirm(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + PROOF_ACK_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + connection_id: typing.Text = ... + # proof for the change of the connection state on Chain A: `INIT -> OPEN` + proof_ack: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + proof_ack : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id",u"proof_ack",b"proof_ack",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... +global___MsgConnectionOpenConfirm = MsgConnectionOpenConfirm + +# MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm +# response type. +class MsgConnectionOpenConfirmResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgConnectionOpenConfirmResponse = MsgConnectionOpenConfirmResponse diff --git a/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..981d92e --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi @@ -0,0 +1,66 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the ibc/connection Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. + ConnectionOpenInit:grpc.UnaryUnaryMultiCallable[ + global___MsgConnectionOpenInit, + global___MsgConnectionOpenInitResponse] = ... + + # ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. + ConnectionOpenTry:grpc.UnaryUnaryMultiCallable[ + global___MsgConnectionOpenTry, + global___MsgConnectionOpenTryResponse] = ... + + # ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. + ConnectionOpenAck:grpc.UnaryUnaryMultiCallable[ + global___MsgConnectionOpenAck, + global___MsgConnectionOpenAckResponse] = ... + + # ConnectionOpenConfirm defines a rpc handler method for + # MsgConnectionOpenConfirm. + ConnectionOpenConfirm:grpc.UnaryUnaryMultiCallable[ + global___MsgConnectionOpenConfirm, + global___MsgConnectionOpenConfirmResponse] = ... + + +# Msg defines the ibc/connection Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. + @abc.abstractmethod + def ConnectionOpenInit(self, + request: global___MsgConnectionOpenInit, + context: grpc.ServicerContext, + ) -> global___MsgConnectionOpenInitResponse: ... + + # ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. + @abc.abstractmethod + def ConnectionOpenTry(self, + request: global___MsgConnectionOpenTry, + context: grpc.ServicerContext, + ) -> global___MsgConnectionOpenTryResponse: ... + + # ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. + @abc.abstractmethod + def ConnectionOpenAck(self, + request: global___MsgConnectionOpenAck, + context: grpc.ServicerContext, + ) -> global___MsgConnectionOpenAckResponse: ... + + # ConnectionOpenConfirm defines a rpc handler method for + # MsgConnectionOpenConfirm. + @abc.abstractmethod + def ConnectionOpenConfirm(self, + request: global___MsgConnectionOpenConfirm, + context: grpc.ServicerContext, + ) -> global___MsgConnectionOpenConfirmResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/types/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/types/v1/genesis_pb2.pyi new file mode 100644 index 0000000..8c72673 --- /dev/null +++ b/pyband/proto/ibc/core/types/v1/genesis_pb2.pyi @@ -0,0 +1,39 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import ibc.core.channel.v1.genesis_pb2 +import ibc.core.client.v1.genesis_pb2 +import ibc.core.connection.v1.genesis_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_GENESIS_FIELD_NUMBER: builtins.int + CONNECTION_GENESIS_FIELD_NUMBER: builtins.int + CHANNEL_GENESIS_FIELD_NUMBER: builtins.int + # ICS002 - Clients genesis state + @property + def client_genesis(self) -> ibc.core.client.v1.genesis_pb2.GenesisState: ... + # ICS003 - Connections genesis state + @property + def connection_genesis(self) -> ibc.core.connection.v1.genesis_pb2.GenesisState: ... + # ICS004 - Channel genesis state + @property + def channel_genesis(self) -> ibc.core.channel.v1.genesis_pb2.GenesisState: ... + def __init__(self, + *, + client_genesis : typing.Optional[ibc.core.client.v1.genesis_pb2.GenesisState] = ..., + connection_genesis : typing.Optional[ibc.core.connection.v1.genesis_pb2.GenesisState] = ..., + channel_genesis : typing.Optional[ibc.core.channel.v1.genesis_pb2.GenesisState] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel_genesis",b"channel_genesis",u"client_genesis",b"client_genesis",u"connection_genesis",b"connection_genesis"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_genesis",b"channel_genesis",u"client_genesis",b"client_genesis",u"connection_genesis",b"connection_genesis"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi new file mode 100644 index 0000000..70810df --- /dev/null +++ b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi @@ -0,0 +1,32 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ClientState defines a loopback (localhost) client. It requires (read-only) +# access to keys outside the client prefix. +class ClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # self chain ID + chain_id: typing.Text = ... + # self latest block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + chain_id : typing.Text = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"height",b"height"]) -> None: ... +global___ClientState = ClientState diff --git a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi new file mode 100644 index 0000000..befdf61 --- /dev/null +++ b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .localhost_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi new file mode 100644 index 0000000..efedf25 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi @@ -0,0 +1,388 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# DataType defines the type of solo machine proof being created. This is done +# to preserve uniqueness of different data sign byte encodings. +class DataType(_DataType, metaclass=_DataTypeEnumTypeWrapper): + pass +class _DataType: + V = typing.NewType('V', builtins.int) +class _DataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Default State + DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) + # Data type for client state verification + DATA_TYPE_CLIENT_STATE = DataType.V(1) + # Data type for consensus state verification + DATA_TYPE_CONSENSUS_STATE = DataType.V(2) + # Data type for connection state verification + DATA_TYPE_CONNECTION_STATE = DataType.V(3) + # Data type for channel state verification + DATA_TYPE_CHANNEL_STATE = DataType.V(4) + # Data type for packet commitment verification + DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) + # Data type for packet acknowledgement verification + DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) + # Data type for packet receipt absence verification + DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) + # Data type for next sequence recv verification + DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) + # Data type for header verification + DATA_TYPE_HEADER = DataType.V(9) + +# Default State +DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) +# Data type for client state verification +DATA_TYPE_CLIENT_STATE = DataType.V(1) +# Data type for consensus state verification +DATA_TYPE_CONSENSUS_STATE = DataType.V(2) +# Data type for connection state verification +DATA_TYPE_CONNECTION_STATE = DataType.V(3) +# Data type for channel state verification +DATA_TYPE_CHANNEL_STATE = DataType.V(4) +# Data type for packet commitment verification +DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) +# Data type for packet acknowledgement verification +DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) +# Data type for packet receipt absence verification +DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) +# Data type for next sequence recv verification +DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) +# Data type for header verification +DATA_TYPE_HEADER = DataType.V(9) +global___DataType = DataType + + +# ClientState defines a solo machine client that tracks the current consensus +# state and if the client is frozen. +class ClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + FROZEN_SEQUENCE_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + ALLOW_UPDATE_AFTER_PROPOSAL_FIELD_NUMBER: builtins.int + # latest sequence of the client state + sequence: builtins.int = ... + # frozen sequence of the solo machine + frozen_sequence: builtins.int = ... + @property + def consensus_state(self) -> global___ConsensusState: ... + # when set to true, will allow governance to update a solo machine client. + # The client will be unfrozen if it is frozen. + allow_update_after_proposal: builtins.bool = ... + def __init__(self, + *, + sequence : builtins.int = ..., + frozen_sequence : builtins.int = ..., + consensus_state : typing.Optional[global___ConsensusState] = ..., + allow_update_after_proposal : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_update_after_proposal",b"allow_update_after_proposal",u"consensus_state",b"consensus_state",u"frozen_sequence",b"frozen_sequence",u"sequence",b"sequence"]) -> None: ... +global___ClientState = ClientState + +# ConsensusState defines a solo machine consensus state. The sequence of a +# consensus state is contained in the "height" key used in storing the +# consensus state. +class ConsensusState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUBLIC_KEY_FIELD_NUMBER: builtins.int + DIVERSIFIER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + # public key of the solo machine + @property + def public_key(self) -> google.protobuf.any_pb2.Any: ... + # diversifier allows the same public key to be re-used across different solo + # machine clients (potentially on different chains) without being considered + # misbehaviour. + diversifier: typing.Text = ... + timestamp: builtins.int = ... + def __init__(self, + *, + public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + diversifier : typing.Text = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"public_key",b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"diversifier",b"diversifier",u"public_key",b"public_key",u"timestamp",b"timestamp"]) -> None: ... +global___ConsensusState = ConsensusState + +# Header defines a solo machine consensus header +class Header(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + NEW_PUBLIC_KEY_FIELD_NUMBER: builtins.int + NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int + # sequence to update solo machine public key at + sequence: builtins.int = ... + timestamp: builtins.int = ... + signature: builtins.bytes = ... + @property + def new_public_key(self) -> google.protobuf.any_pb2.Any: ... + new_diversifier: typing.Text = ... + def __init__(self, + *, + sequence : builtins.int = ..., + timestamp : builtins.int = ..., + signature : builtins.bytes = ..., + new_public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + new_diversifier : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"new_public_key",b"new_public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_public_key",b"new_public_key",u"sequence",b"sequence",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... +global___Header = Header + +# Misbehaviour defines misbehaviour for a solo machine which consists +# of a sequence and two signatures over different messages at that sequence. +class Misbehaviour(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + SIGNATURE_ONE_FIELD_NUMBER: builtins.int + SIGNATURE_TWO_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + sequence: builtins.int = ... + @property + def signature_one(self) -> global___SignatureAndData: ... + @property + def signature_two(self) -> global___SignatureAndData: ... + def __init__(self, + *, + client_id : typing.Text = ..., + sequence : builtins.int = ..., + signature_one : typing.Optional[global___SignatureAndData] = ..., + signature_two : typing.Optional[global___SignatureAndData] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"sequence",b"sequence",u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> None: ... +global___Misbehaviour = Misbehaviour + +# SignatureAndData contains a signature and the data signed over to create that +# signature. +class SignatureAndData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURE_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + signature: builtins.bytes = ... + data_type: global___DataType.V = ... + data: builtins.bytes = ... + timestamp: builtins.int = ... + def __init__(self, + *, + signature : builtins.bytes = ..., + data_type : global___DataType.V = ..., + data : builtins.bytes = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... +global___SignatureAndData = SignatureAndData + +# TimestampedSignatureData contains the signature data and the timestamp of the +# signature. +class TimestampedSignatureData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURE_DATA_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + signature_data: builtins.bytes = ... + timestamp: builtins.int = ... + def __init__(self, + *, + signature_data : builtins.bytes = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signature_data",b"signature_data",u"timestamp",b"timestamp"]) -> None: ... +global___TimestampedSignatureData = TimestampedSignatureData + +# SignBytes defines the signed bytes used for signature verification. +class SignBytes(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + DIVERSIFIER_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + sequence: builtins.int = ... + timestamp: builtins.int = ... + diversifier: typing.Text = ... + # type of the data used + data_type: global___DataType.V = ... + # marshaled data + data: builtins.bytes = ... + def __init__(self, + *, + sequence : builtins.int = ..., + timestamp : builtins.int = ..., + diversifier : typing.Text = ..., + data_type : global___DataType.V = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"diversifier",b"diversifier",u"sequence",b"sequence",u"timestamp",b"timestamp"]) -> None: ... +global___SignBytes = SignBytes + +# HeaderData returns the SignBytes data for update verification. +class HeaderData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NEW_PUB_KEY_FIELD_NUMBER: builtins.int + NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int + # header public key + @property + def new_pub_key(self) -> google.protobuf.any_pb2.Any: ... + # header diversifier + new_diversifier: typing.Text = ... + def __init__(self, + *, + new_pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + new_diversifier : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"new_pub_key",b"new_pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_pub_key",b"new_pub_key"]) -> None: ... +global___HeaderData = HeaderData + +# ClientStateData returns the SignBytes data for client state verification. +class ClientStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + path : builtins.bytes = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"path",b"path"]) -> None: ... +global___ClientStateData = ClientStateData + +# ConsensusStateData returns the SignBytes data for consensus state +# verification. +class ConsensusStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + path : builtins.bytes = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"path",b"path"]) -> None: ... +global___ConsensusStateData = ConsensusStateData + +# ConnectionStateData returns the SignBytes data for connection state +# verification. +class ConnectionStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CONNECTION_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def connection(self) -> ibc.core.connection.v1.connection_pb2.ConnectionEnd: ... + def __init__(self, + *, + path : builtins.bytes = ..., + connection : typing.Optional[ibc.core.connection.v1.connection_pb2.ConnectionEnd] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"connection",b"connection"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"path",b"path"]) -> None: ... +global___ConnectionStateData = ConnectionStateData + +# ChannelStateData returns the SignBytes data for channel state +# verification. +class ChannelStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CHANNEL_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + def __init__(self, + *, + path : builtins.bytes = ..., + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"path",b"path"]) -> None: ... +global___ChannelStateData = ChannelStateData + +# PacketCommitmentData returns the SignBytes data for packet commitment +# verification. +class PacketCommitmentData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + COMMITMENT_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + commitment: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + commitment : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commitment",b"commitment",u"path",b"path"]) -> None: ... +global___PacketCommitmentData = PacketCommitmentData + +# PacketAcknowledgementData returns the SignBytes data for acknowledgement +# verification. +class PacketAcknowledgementData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + acknowledgement: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + acknowledgement : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"path",b"path"]) -> None: ... +global___PacketAcknowledgementData = PacketAcknowledgementData + +# PacketReceiptAbsenceData returns the SignBytes data for +# packet receipt absence verification. +class PacketReceiptAbsenceData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"path",b"path"]) -> None: ... +global___PacketReceiptAbsenceData = PacketReceiptAbsenceData + +# NextSequenceRecvData returns the SignBytes data for verification of the next +# sequence to be received. +class NextSequenceRecvData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + NEXT_SEQ_RECV_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + next_seq_recv: builtins.int = ... + def __init__(self, + *, + path : builtins.bytes = ..., + next_seq_recv : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_seq_recv",b"next_seq_recv",u"path",b"path"]) -> None: ... +global___NextSequenceRecvData = NextSequenceRecvData diff --git a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi new file mode 100644 index 0000000..7b3f6d9 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .solomachine_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.pyi b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.pyi new file mode 100644 index 0000000..da4ddd8 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.pyi @@ -0,0 +1,388 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# DataType defines the type of solo machine proof being created. This is done +# to preserve uniqueness of different data sign byte encodings. +class DataType(_DataType, metaclass=_DataTypeEnumTypeWrapper): + pass +class _DataType: + V = typing.NewType('V', builtins.int) +class _DataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Default State + DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) + # Data type for client state verification + DATA_TYPE_CLIENT_STATE = DataType.V(1) + # Data type for consensus state verification + DATA_TYPE_CONSENSUS_STATE = DataType.V(2) + # Data type for connection state verification + DATA_TYPE_CONNECTION_STATE = DataType.V(3) + # Data type for channel state verification + DATA_TYPE_CHANNEL_STATE = DataType.V(4) + # Data type for packet commitment verification + DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) + # Data type for packet acknowledgement verification + DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) + # Data type for packet receipt absence verification + DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) + # Data type for next sequence recv verification + DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) + # Data type for header verification + DATA_TYPE_HEADER = DataType.V(9) + +# Default State +DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) +# Data type for client state verification +DATA_TYPE_CLIENT_STATE = DataType.V(1) +# Data type for consensus state verification +DATA_TYPE_CONSENSUS_STATE = DataType.V(2) +# Data type for connection state verification +DATA_TYPE_CONNECTION_STATE = DataType.V(3) +# Data type for channel state verification +DATA_TYPE_CHANNEL_STATE = DataType.V(4) +# Data type for packet commitment verification +DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) +# Data type for packet acknowledgement verification +DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) +# Data type for packet receipt absence verification +DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) +# Data type for next sequence recv verification +DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) +# Data type for header verification +DATA_TYPE_HEADER = DataType.V(9) +global___DataType = DataType + + +# ClientState defines a solo machine client that tracks the current consensus +# state and if the client is frozen. +class ClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + IS_FROZEN_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + ALLOW_UPDATE_AFTER_PROPOSAL_FIELD_NUMBER: builtins.int + # latest sequence of the client state + sequence: builtins.int = ... + # frozen sequence of the solo machine + is_frozen: builtins.bool = ... + @property + def consensus_state(self) -> global___ConsensusState: ... + # when set to true, will allow governance to update a solo machine client. + # The client will be unfrozen if it is frozen. + allow_update_after_proposal: builtins.bool = ... + def __init__(self, + *, + sequence : builtins.int = ..., + is_frozen : builtins.bool = ..., + consensus_state : typing.Optional[global___ConsensusState] = ..., + allow_update_after_proposal : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_update_after_proposal",b"allow_update_after_proposal",u"consensus_state",b"consensus_state",u"is_frozen",b"is_frozen",u"sequence",b"sequence"]) -> None: ... +global___ClientState = ClientState + +# ConsensusState defines a solo machine consensus state. The sequence of a +# consensus state is contained in the "height" key used in storing the +# consensus state. +class ConsensusState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUBLIC_KEY_FIELD_NUMBER: builtins.int + DIVERSIFIER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + # public key of the solo machine + @property + def public_key(self) -> google.protobuf.any_pb2.Any: ... + # diversifier allows the same public key to be re-used across different solo + # machine clients (potentially on different chains) without being considered + # misbehaviour. + diversifier: typing.Text = ... + timestamp: builtins.int = ... + def __init__(self, + *, + public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + diversifier : typing.Text = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"public_key",b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"diversifier",b"diversifier",u"public_key",b"public_key",u"timestamp",b"timestamp"]) -> None: ... +global___ConsensusState = ConsensusState + +# Header defines a solo machine consensus header +class Header(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + NEW_PUBLIC_KEY_FIELD_NUMBER: builtins.int + NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int + # sequence to update solo machine public key at + sequence: builtins.int = ... + timestamp: builtins.int = ... + signature: builtins.bytes = ... + @property + def new_public_key(self) -> google.protobuf.any_pb2.Any: ... + new_diversifier: typing.Text = ... + def __init__(self, + *, + sequence : builtins.int = ..., + timestamp : builtins.int = ..., + signature : builtins.bytes = ..., + new_public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + new_diversifier : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"new_public_key",b"new_public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_public_key",b"new_public_key",u"sequence",b"sequence",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... +global___Header = Header + +# Misbehaviour defines misbehaviour for a solo machine which consists +# of a sequence and two signatures over different messages at that sequence. +class Misbehaviour(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + SIGNATURE_ONE_FIELD_NUMBER: builtins.int + SIGNATURE_TWO_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + sequence: builtins.int = ... + @property + def signature_one(self) -> global___SignatureAndData: ... + @property + def signature_two(self) -> global___SignatureAndData: ... + def __init__(self, + *, + client_id : typing.Text = ..., + sequence : builtins.int = ..., + signature_one : typing.Optional[global___SignatureAndData] = ..., + signature_two : typing.Optional[global___SignatureAndData] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"sequence",b"sequence",u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> None: ... +global___Misbehaviour = Misbehaviour + +# SignatureAndData contains a signature and the data signed over to create that +# signature. +class SignatureAndData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURE_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + signature: builtins.bytes = ... + data_type: global___DataType.V = ... + data: builtins.bytes = ... + timestamp: builtins.int = ... + def __init__(self, + *, + signature : builtins.bytes = ..., + data_type : global___DataType.V = ..., + data : builtins.bytes = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... +global___SignatureAndData = SignatureAndData + +# TimestampedSignatureData contains the signature data and the timestamp of the +# signature. +class TimestampedSignatureData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURE_DATA_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + signature_data: builtins.bytes = ... + timestamp: builtins.int = ... + def __init__(self, + *, + signature_data : builtins.bytes = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signature_data",b"signature_data",u"timestamp",b"timestamp"]) -> None: ... +global___TimestampedSignatureData = TimestampedSignatureData + +# SignBytes defines the signed bytes used for signature verification. +class SignBytes(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + DIVERSIFIER_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + sequence: builtins.int = ... + timestamp: builtins.int = ... + diversifier: typing.Text = ... + # type of the data used + data_type: global___DataType.V = ... + # marshaled data + data: builtins.bytes = ... + def __init__(self, + *, + sequence : builtins.int = ..., + timestamp : builtins.int = ..., + diversifier : typing.Text = ..., + data_type : global___DataType.V = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"diversifier",b"diversifier",u"sequence",b"sequence",u"timestamp",b"timestamp"]) -> None: ... +global___SignBytes = SignBytes + +# HeaderData returns the SignBytes data for update verification. +class HeaderData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NEW_PUB_KEY_FIELD_NUMBER: builtins.int + NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int + # header public key + @property + def new_pub_key(self) -> google.protobuf.any_pb2.Any: ... + # header diversifier + new_diversifier: typing.Text = ... + def __init__(self, + *, + new_pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + new_diversifier : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"new_pub_key",b"new_pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_pub_key",b"new_pub_key"]) -> None: ... +global___HeaderData = HeaderData + +# ClientStateData returns the SignBytes data for client state verification. +class ClientStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + path : builtins.bytes = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"path",b"path"]) -> None: ... +global___ClientStateData = ClientStateData + +# ConsensusStateData returns the SignBytes data for consensus state +# verification. +class ConsensusStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + path : builtins.bytes = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"path",b"path"]) -> None: ... +global___ConsensusStateData = ConsensusStateData + +# ConnectionStateData returns the SignBytes data for connection state +# verification. +class ConnectionStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CONNECTION_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def connection(self) -> ibc.core.connection.v1.connection_pb2.ConnectionEnd: ... + def __init__(self, + *, + path : builtins.bytes = ..., + connection : typing.Optional[ibc.core.connection.v1.connection_pb2.ConnectionEnd] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"connection",b"connection"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"path",b"path"]) -> None: ... +global___ConnectionStateData = ConnectionStateData + +# ChannelStateData returns the SignBytes data for channel state +# verification. +class ChannelStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CHANNEL_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + def __init__(self, + *, + path : builtins.bytes = ..., + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"path",b"path"]) -> None: ... +global___ChannelStateData = ChannelStateData + +# PacketCommitmentData returns the SignBytes data for packet commitment +# verification. +class PacketCommitmentData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + COMMITMENT_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + commitment: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + commitment : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commitment",b"commitment",u"path",b"path"]) -> None: ... +global___PacketCommitmentData = PacketCommitmentData + +# PacketAcknowledgementData returns the SignBytes data for acknowledgement +# verification. +class PacketAcknowledgementData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + acknowledgement: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + acknowledgement : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"path",b"path"]) -> None: ... +global___PacketAcknowledgementData = PacketAcknowledgementData + +# PacketReceiptAbsenceData returns the SignBytes data for +# packet receipt absence verification. +class PacketReceiptAbsenceData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"path",b"path"]) -> None: ... +global___PacketReceiptAbsenceData = PacketReceiptAbsenceData + +# NextSequenceRecvData returns the SignBytes data for verification of the next +# sequence to be received. +class NextSequenceRecvData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + NEXT_SEQ_RECV_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + next_seq_recv: builtins.int = ... + def __init__(self, + *, + path : builtins.bytes = ..., + next_seq_recv : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_seq_recv",b"next_seq_recv",u"path",b"path"]) -> None: ... +global___NextSequenceRecvData = NextSequenceRecvData diff --git a/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.pyi new file mode 100644 index 0000000..7b3f6d9 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .solomachine_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi new file mode 100644 index 0000000..56e9d36 --- /dev/null +++ b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi @@ -0,0 +1,188 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import confio.proofs_pb2 +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import ibc.core.client.v1.client_pb2 +import ibc.core.commitment.v1.commitment_pb2 +import tendermint.types.types_pb2 +import tendermint.types.validator_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ClientState from Tendermint tracks the current validator set, latest height, +# and a possible frozen height. +class ClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + TRUST_LEVEL_FIELD_NUMBER: builtins.int + TRUSTING_PERIOD_FIELD_NUMBER: builtins.int + UNBONDING_PERIOD_FIELD_NUMBER: builtins.int + MAX_CLOCK_DRIFT_FIELD_NUMBER: builtins.int + FROZEN_HEIGHT_FIELD_NUMBER: builtins.int + LATEST_HEIGHT_FIELD_NUMBER: builtins.int + PROOF_SPECS_FIELD_NUMBER: builtins.int + UPGRADE_PATH_FIELD_NUMBER: builtins.int + ALLOW_UPDATE_AFTER_EXPIRY_FIELD_NUMBER: builtins.int + ALLOW_UPDATE_AFTER_MISBEHAVIOUR_FIELD_NUMBER: builtins.int + chain_id: typing.Text = ... + @property + def trust_level(self) -> global___Fraction: ... + # duration of the period since the LastestTimestamp during which the + # submitted headers are valid for upgrade + @property + def trusting_period(self) -> google.protobuf.duration_pb2.Duration: ... + # duration of the staking unbonding period + @property + def unbonding_period(self) -> google.protobuf.duration_pb2.Duration: ... + # defines how much new (untrusted) header's Time can drift into the future. + @property + def max_clock_drift(self) -> google.protobuf.duration_pb2.Duration: ... + # Block height when the client was frozen due to a misbehaviour + @property + def frozen_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # Latest height the client was updated to + @property + def latest_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # Proof specifications used in verifying counterparty state + @property + def proof_specs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[confio.proofs_pb2.ProofSpec]: ... + # Path at which next upgraded client will be committed. + # Each element corresponds to the key for a single CommitmentProof in the + # chained proof. NOTE: ClientState must stored under + # `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored + # under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using + # the default upgrade module, upgrade_path should be []string{"upgrade", + # "upgradedIBCState"}` + @property + def upgrade_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # This flag, when set to true, will allow governance to recover a client + # which has expired + allow_update_after_expiry: builtins.bool = ... + # This flag, when set to true, will allow governance to unfreeze a client + # whose chain has experienced a misbehaviour event + allow_update_after_misbehaviour: builtins.bool = ... + def __init__(self, + *, + chain_id : typing.Text = ..., + trust_level : typing.Optional[global___Fraction] = ..., + trusting_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + unbonding_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + max_clock_drift : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + frozen_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + latest_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + proof_specs : typing.Optional[typing.Iterable[confio.proofs_pb2.ProofSpec]] = ..., + upgrade_path : typing.Optional[typing.Iterable[typing.Text]] = ..., + allow_update_after_expiry : builtins.bool = ..., + allow_update_after_misbehaviour : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"frozen_height",b"frozen_height",u"latest_height",b"latest_height",u"max_clock_drift",b"max_clock_drift",u"trust_level",b"trust_level",u"trusting_period",b"trusting_period",u"unbonding_period",b"unbonding_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_update_after_expiry",b"allow_update_after_expiry",u"allow_update_after_misbehaviour",b"allow_update_after_misbehaviour",u"chain_id",b"chain_id",u"frozen_height",b"frozen_height",u"latest_height",b"latest_height",u"max_clock_drift",b"max_clock_drift",u"proof_specs",b"proof_specs",u"trust_level",b"trust_level",u"trusting_period",b"trusting_period",u"unbonding_period",b"unbonding_period",u"upgrade_path",b"upgrade_path"]) -> None: ... +global___ClientState = ClientState + +# ConsensusState defines the consensus state from Tendermint. +class ConsensusState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TIMESTAMP_FIELD_NUMBER: builtins.int + ROOT_FIELD_NUMBER: builtins.int + NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int + # timestamp that corresponds to the block height in which the ConsensusState + # was stored. + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # commitment root (i.e app hash) + @property + def root(self) -> ibc.core.commitment.v1.commitment_pb2.MerkleRoot: ... + next_validators_hash: builtins.bytes = ... + def __init__(self, + *, + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + root : typing.Optional[ibc.core.commitment.v1.commitment_pb2.MerkleRoot] = ..., + next_validators_hash : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"root",b"root",u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_validators_hash",b"next_validators_hash",u"root",b"root",u"timestamp",b"timestamp"]) -> None: ... +global___ConsensusState = ConsensusState + +# Misbehaviour is a wrapper over two conflicting Headers +# that implements Misbehaviour interface expected by ICS-02 +class Misbehaviour(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + HEADER_1_FIELD_NUMBER: builtins.int + HEADER_2_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + @property + def header_1(self) -> global___Header: ... + @property + def header_2(self) -> global___Header: ... + def __init__(self, + *, + client_id : typing.Text = ..., + header_1 : typing.Optional[global___Header] = ..., + header_2 : typing.Optional[global___Header] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"header_1",b"header_1",u"header_2",b"header_2"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"header_1",b"header_1",u"header_2",b"header_2"]) -> None: ... +global___Misbehaviour = Misbehaviour + +# Header defines the Tendermint client consensus Header. +# It encapsulates all the information necessary to update from a trusted +# Tendermint ConsensusState. The inclusion of TrustedHeight and +# TrustedValidators allows this update to process correctly, so long as the +# ConsensusState for the TrustedHeight exists, this removes race conditions +# among relayers The SignedHeader and ValidatorSet are the new untrusted update +# fields for the client. The TrustedHeight is the height of a stored +# ConsensusState on the client that will be used to verify the new untrusted +# header. The Trusted ConsensusState must be within the unbonding period of +# current time in order to correctly verify, and the TrustedValidators must +# hash to TrustedConsensusState.NextValidatorsHash since that is the last +# trusted validator set at the TrustedHeight. +class Header(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNED_HEADER_FIELD_NUMBER: builtins.int + VALIDATOR_SET_FIELD_NUMBER: builtins.int + TRUSTED_HEIGHT_FIELD_NUMBER: builtins.int + TRUSTED_VALIDATORS_FIELD_NUMBER: builtins.int + @property + def signed_header(self) -> tendermint.types.types_pb2.SignedHeader: ... + @property + def validator_set(self) -> tendermint.types.validator_pb2.ValidatorSet: ... + @property + def trusted_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + @property + def trusted_validators(self) -> tendermint.types.validator_pb2.ValidatorSet: ... + def __init__(self, + *, + signed_header : typing.Optional[tendermint.types.types_pb2.SignedHeader] = ..., + validator_set : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., + trusted_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + trusted_validators : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"trusted_height",b"trusted_height",u"trusted_validators",b"trusted_validators",u"validator_set",b"validator_set"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"trusted_height",b"trusted_height",u"trusted_validators",b"trusted_validators",u"validator_set",b"validator_set"]) -> None: ... +global___Header = Header + +# Fraction defines the protobuf message type for tmmath.Fraction that only +# supports positive values. +class Fraction(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NUMERATOR_FIELD_NUMBER: builtins.int + DENOMINATOR_FIELD_NUMBER: builtins.int + numerator: builtins.int = ... + denominator: builtins.int = ... + def __init__(self, + *, + numerator : builtins.int = ..., + denominator : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denominator",b"denominator",u"numerator",b"numerator"]) -> None: ... +global___Fraction = Fraction diff --git a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi new file mode 100644 index 0000000..1e81e8c --- /dev/null +++ b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .tendermint_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/genesis_pb2.pyi b/pyband/proto/oracle/v1/genesis_pb2.pyi new file mode 100644 index 0000000..da09879 --- /dev/null +++ b/pyband/proto/oracle/v1/genesis_pb2.pyi @@ -0,0 +1,39 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import oracle.v1.oracle_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the oracle module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + DATA_SOURCES_FIELD_NUMBER: builtins.int + ORACLE_SCRIPTS_FIELD_NUMBER: builtins.int + # Params defines all the paramaters of the module. + @property + def params(self) -> oracle.v1.oracle_pb2.Params: ... + # DataSources are data sources to be installed during genesis phase + @property + def data_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.DataSource]: ... + # OracleScripts are list of oracle scripts to be installed during genesis + # phase + @property + def oracle_scripts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.OracleScript]: ... + def __init__(self, + *, + params : typing.Optional[oracle.v1.oracle_pb2.Params] = ..., + data_sources : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.DataSource]] = ..., + oracle_scripts : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.OracleScript]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_sources",b"data_sources",u"oracle_scripts",b"oracle_scripts",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi b/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/oracle_pb2.pyi b/pyband/proto/oracle/v1/oracle_pb2.pyi new file mode 100644 index 0000000..3805caf --- /dev/null +++ b/pyband/proto/oracle/v1/oracle_pb2.pyi @@ -0,0 +1,614 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ResolveStatus encodes the status of an oracle request. +class ResolveStatus(_ResolveStatus, metaclass=_ResolveStatusEnumTypeWrapper): + pass +class _ResolveStatus: + V = typing.NewType('V', builtins.int) +class _ResolveStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResolveStatus.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Open - the request is not yet resolved. + RESOLVE_STATUS_OPEN_UNSPECIFIED = ResolveStatus.V(0) + # Success - the request has been resolved successfully with no errors. + RESOLVE_STATUS_SUCCESS = ResolveStatus.V(1) + # Failure - an error occured during the request's resolve call. + RESOLVE_STATUS_FAILURE = ResolveStatus.V(2) + # Expired - the request does not get enough reports from validator within the + # timeframe. + RESOLVE_STATUS_EXPIRED = ResolveStatus.V(3) + +# Open - the request is not yet resolved. +RESOLVE_STATUS_OPEN_UNSPECIFIED = ResolveStatus.V(0) +# Success - the request has been resolved successfully with no errors. +RESOLVE_STATUS_SUCCESS = ResolveStatus.V(1) +# Failure - an error occured during the request's resolve call. +RESOLVE_STATUS_FAILURE = ResolveStatus.V(2) +# Expired - the request does not get enough reports from validator within the +# timeframe. +RESOLVE_STATUS_EXPIRED = ResolveStatus.V(3) +global___ResolveStatus = ResolveStatus + + +# DataSource is the data structure for storing data sources in the storage. +class DataSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OWNER_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + FILENAME_FIELD_NUMBER: builtins.int + TREASURY_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + # Owner is an address of the account who own the data source + owner: typing.Text = ... + # Name is data source name used for display + name: typing.Text = ... + # Description is data source description used for display + description: typing.Text = ... + # Filename is string of file name used as reference for locating + # data source file stored in bandchain nodes + filename: typing.Text = ... + # Treasury is the account address who receive data source fee from requester. + treasury: typing.Text = ... + # Fee is the data source fee per ask_count that data provider will receive + # from requester. + @property + def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + owner : typing.Text = ..., + name : typing.Text = ..., + description : typing.Text = ..., + filename : typing.Text = ..., + treasury : typing.Text = ..., + fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"fee",b"fee",u"filename",b"filename",u"name",b"name",u"owner",b"owner",u"treasury",b"treasury"]) -> None: ... +global___DataSource = DataSource + +# OracleScript is the data structure for storing oracle scripts in the storage. +class OracleScript(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OWNER_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + FILENAME_FIELD_NUMBER: builtins.int + SCHEMA_FIELD_NUMBER: builtins.int + SOURCE_CODE_URL_FIELD_NUMBER: builtins.int + # Owner is an address of the account who own the oracle script + owner: typing.Text = ... + # Name is oracle script name used for display + name: typing.Text = ... + # Description is oracle script description used for display + description: typing.Text = ... + # Filename is string of file name used as reference for locating + # compiled oracle script WASM file stored in bandchain nodes + filename: typing.Text = ... + # Schema is the schema of the oracle script input/output + # which is formatted in OBI format e.g. + # "{symbol:string,multiplier:u64}/{px:u64}" + schema: typing.Text = ... + # SourceCodeURL is the URL of oracle script's source code. + # It is recommendded to store source code on IPFS and get its URL to preserve + # decentralization. + source_code_url: typing.Text = ... + def __init__(self, + *, + owner : typing.Text = ..., + name : typing.Text = ..., + description : typing.Text = ..., + filename : typing.Text = ..., + schema : typing.Text = ..., + source_code_url : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"filename",b"filename",u"name",b"name",u"owner",b"owner",u"schema",b"schema",u"source_code_url",b"source_code_url"]) -> None: ... +global___OracleScript = OracleScript + +# RawRequest is the data structure for storing raw requests in the storage. +class RawRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXTERNAL_ID_FIELD_NUMBER: builtins.int + DATA_SOURCE_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + # ExternalID is an ID of the raw request + external_id: builtins.int = ... + # DataSourceID is an ID of data source script that relates to the raw request + data_source_id: builtins.int = ... + # Calldata is the data used as argument params for executing data source + # script + calldata: builtins.bytes = ... + def __init__(self, + *, + external_id : builtins.int = ..., + data_source_id : builtins.int = ..., + calldata : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"calldata",b"calldata",u"data_source_id",b"data_source_id",u"external_id",b"external_id"]) -> None: ... +global___RawRequest = RawRequest + +# RawRequest is the data structure for storing raw reporter in the storage. +class RawReport(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXTERNAL_ID_FIELD_NUMBER: builtins.int + EXIT_CODE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + # ExternalID is an ID of the raw request + external_id: builtins.int = ... + # ExitCode is status code provided by validators to specify error, if any. + # Exit code is usually filled by the exit code returned from execution of + # specified data source script. With code 0 means there is no error. + exit_code: builtins.int = ... + # Data is raw result provided by validators. + # It is usually filled by the result from execution of specified data source + # script. + data: builtins.bytes = ... + def __init__(self, + *, + external_id : builtins.int = ..., + exit_code : builtins.int = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"exit_code",b"exit_code",u"external_id",b"external_id"]) -> None: ... +global___RawReport = RawReport + +# Request is the data structure for storing requests in the storage. +class Request(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + REQUESTED_VALIDATORS_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + REQUEST_HEIGHT_FIELD_NUMBER: builtins.int + REQUEST_TIME_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + RAW_REQUESTS_FIELD_NUMBER: builtins.int + IBC_CHANNEL_FIELD_NUMBER: builtins.int + EXECUTE_GAS_FIELD_NUMBER: builtins.int + # OracleScriptID is ID of an oracle script + oracle_script_id: builtins.int = ... + # Calldata is the data used as argument params for the oracle script + calldata: builtins.bytes = ... + # RequestedValidators is a list of validator addresses that are assigned for + # fulfilling the request + @property + def requested_validators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # MinCount is minimum number of validators required for fulfilling the + # request + min_count: builtins.int = ... + # RequestHeight is block height that the request has been created + request_height: builtins.int = ... + # RequestTime is timestamp of the chain's block which contains the request + request_time: builtins.int = ... + # ClientID is arbitrary id provided by requester. + # It is used by client-side for referencing the request + client_id: typing.Text = ... + # RawRequests is a list of raw requests specified by execution of oracle + # script + @property + def raw_requests(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RawRequest]: ... + # IBCChannel is an IBC channel info of the other chain, which contains a + # channel and a port to allow bandchain connect to that chain. This field + # allows other chain be able to request data from bandchain via IBC. + @property + def ibc_channel(self) -> global___IBCChannel: ... + # ExecuteGas is amount of gas to reserve for executing + execute_gas: builtins.int = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + calldata : builtins.bytes = ..., + requested_validators : typing.Optional[typing.Iterable[typing.Text]] = ..., + min_count : builtins.int = ..., + request_height : builtins.int = ..., + request_time : builtins.int = ..., + client_id : typing.Text = ..., + raw_requests : typing.Optional[typing.Iterable[global___RawRequest]] = ..., + ibc_channel : typing.Optional[global___IBCChannel] = ..., + execute_gas : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"ibc_channel",b"ibc_channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"ibc_channel",b"ibc_channel",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"raw_requests",b"raw_requests",u"request_height",b"request_height",u"request_time",b"request_time",u"requested_validators",b"requested_validators"]) -> None: ... +global___Request = Request + +# Report is the data structure for storing reports in the storage. +class Report(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + IN_BEFORE_RESOLVE_FIELD_NUMBER: builtins.int + RAW_REPORTS_FIELD_NUMBER: builtins.int + # Validator is a validator address who submit the report + validator: typing.Text = ... + # InBeforeResolve indicates whether the report is submitted before the + # request resolved + in_before_resolve: builtins.bool = ... + # RawReports is list of raw reports provided by the validator. + # Each raw report has different external ID + @property + def raw_reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RawReport]: ... + def __init__(self, + *, + validator : typing.Text = ..., + in_before_resolve : builtins.bool = ..., + raw_reports : typing.Optional[typing.Iterable[global___RawReport]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"in_before_resolve",b"in_before_resolve",u"raw_reports",b"raw_reports",u"validator",b"validator"]) -> None: ... +global___Report = Report + +# OracleRequestPacketData encodes an oracle request sent from other blockchains +# to BandChain. +class OracleRequestPacketData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + FEE_LIMIT_FIELD_NUMBER: builtins.int + PREPARE_GAS_FIELD_NUMBER: builtins.int + EXECUTE_GAS_FIELD_NUMBER: builtins.int + # ClientID is the unique identifier of this oracle request, as specified by + # the client. This same unique ID will be sent back to the requester with the + # oracle response. + client_id: typing.Text = ... + # OracleScriptID is the unique identifier of the oracle script to be + # executed. + oracle_script_id: builtins.int = ... + # Calldata is the OBI-encoded calldata bytes available for oracle executor to + # read. + calldata: builtins.bytes = ... + # AskCount is the number of validators that are requested to respond to this + # oracle request. Higher value means more security, at a higher gas cost. + ask_count: builtins.int = ... + # MinCount is the minimum number of validators necessary for the request to + # proceed to the execution phase. Higher value means more security, at the + # cost of liveness. + min_count: builtins.int = ... + # FeeLimit is the maximum tokens that will be paid to all data source + # providers. + @property + def fee_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # PrepareGas is amount of gas to pay to prepare raw requests + prepare_gas: builtins.int = ... + # ExecuteGas is amount of gas to reserve for executing + execute_gas: builtins.int = ... + def __init__(self, + *, + client_id : typing.Text = ..., + oracle_script_id : builtins.int = ..., + calldata : builtins.bytes = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + fee_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + prepare_gas : builtins.int = ..., + execute_gas : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"fee_limit",b"fee_limit",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"prepare_gas",b"prepare_gas"]) -> None: ... +global___OracleRequestPacketData = OracleRequestPacketData + +# OracleRequestPacketAcknowledgement encodes an oracle request acknowledgement +# send back to requester chain. +class OracleRequestPacketAcknowledgement(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_ID_FIELD_NUMBER: builtins.int + # RequestID is BandChain's unique identifier for this oracle request. + request_id: builtins.int = ... + def __init__(self, + *, + request_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request_id",b"request_id"]) -> None: ... +global___OracleRequestPacketAcknowledgement = OracleRequestPacketAcknowledgement + +# OracleResponsePacketData encodes an oracle response from BandChain to the +# requester. +class OracleResponsePacketData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + ANS_COUNT_FIELD_NUMBER: builtins.int + REQUEST_TIME_FIELD_NUMBER: builtins.int + RESOLVE_TIME_FIELD_NUMBER: builtins.int + RESOLVE_STATUS_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + # ClientID is the unique identifier matched with that of the oracle request + # packet. + client_id: typing.Text = ... + # RequestID is BandChain's unique identifier for this oracle request. + request_id: builtins.int = ... + # AnsCount is the number of validators among to the asked validators that + # actually responded to this oracle request prior to this oracle request + # being resolved. + ans_count: builtins.int = ... + # RequestTime is the UNIX epoch time at which the request was sent to + # BandChain. + request_time: builtins.int = ... + # ResolveTime is the UNIX epoch time at which the request was resolved to the + # final result. + resolve_time: builtins.int = ... + # ResolveStatus is the status of this oracle request, which can be OK, + # FAILURE, or EXPIRED. + resolve_status: global___ResolveStatus.V = ... + # Result is the final aggregated value encoded in OBI format. Only available + # if status if OK. + result: builtins.bytes = ... + def __init__(self, + *, + client_id : typing.Text = ..., + request_id : builtins.int = ..., + ans_count : builtins.int = ..., + request_time : builtins.int = ..., + resolve_time : builtins.int = ..., + resolve_status : global___ResolveStatus.V = ..., + result : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ans_count",b"ans_count",u"client_id",b"client_id",u"request_id",b"request_id",u"request_time",b"request_time",u"resolve_status",b"resolve_status",u"resolve_time",b"resolve_time",u"result",b"result"]) -> None: ... +global___OracleResponsePacketData = OracleResponsePacketData + +# Result encodes a result of request and store in chain +class Result(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + ANS_COUNT_FIELD_NUMBER: builtins.int + REQUEST_TIME_FIELD_NUMBER: builtins.int + RESOLVE_TIME_FIELD_NUMBER: builtins.int + RESOLVE_STATUS_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + # ClientID is the unique identifier of this oracle request, as specified by + # the client. This same unique ID will be sent back to the requester with the + # oracle response. + client_id: typing.Text = ... + # OracleScriptID is the unique identifier of the oracle script to be + # executed. + oracle_script_id: builtins.int = ... + # Calldata is the calldata bytes available for oracle executor to read. + calldata: builtins.bytes = ... + # AskCount is the number of validators that are requested to respond to this + # oracle request. Higher value means more security, at a higher gas cost. + ask_count: builtins.int = ... + # MinCount is the minimum number of validators necessary for the request to + # proceed to the execution phase. Higher value means more security, at the + # cost of liveness. + min_count: builtins.int = ... + # RequestID is BandChain's unique identifier for this oracle request. + request_id: builtins.int = ... + # AnsCount is the number of validators among to the asked validators that + # actually responded to this oracle request prior to this oracle request + # being resolved. + ans_count: builtins.int = ... + # RequestTime is the UNIX epoch time at which the request was sent to + # BandChain. + request_time: builtins.int = ... + # ResolveTime is the UNIX epoch time at which the request was resolved to the + # final result. + resolve_time: builtins.int = ... + # ResolveStatus is the status of this oracle request, which can be OK, + # FAILURE, or EXPIRED. + resolve_status: global___ResolveStatus.V = ... + # Result is the final aggregated value only available if status if OK. + result: builtins.bytes = ... + def __init__(self, + *, + client_id : typing.Text = ..., + oracle_script_id : builtins.int = ..., + calldata : builtins.bytes = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + request_id : builtins.int = ..., + ans_count : builtins.int = ..., + request_time : builtins.int = ..., + resolve_time : builtins.int = ..., + resolve_status : global___ResolveStatus.V = ..., + result : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ans_count",b"ans_count",u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"request_id",b"request_id",u"request_time",b"request_time",u"resolve_status",b"resolve_status",u"resolve_time",b"resolve_time",u"result",b"result"]) -> None: ... +global___Result = Result + +# ValidatorStatus maintains whether a validator is an active oracle provider. +class ValidatorStatus(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IS_ACTIVE_FIELD_NUMBER: builtins.int + SINCE_FIELD_NUMBER: builtins.int + # IsActive is a boolean indicating active status of validator. + # The validator will be deactivated when they are unable to send reports + # to fulfill oracle request before the request expired. + is_active: builtins.bool = ... + # Since is a block timestamp when validator has been activated/deactivated + @property + def since(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + is_active : builtins.bool = ..., + since : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"since",b"since"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"is_active",b"is_active",u"since",b"since"]) -> None: ... +global___ValidatorStatus = ValidatorStatus + +# ActiveValidator is information of currently active validator +class ActiveValidator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + # Address is a validator address + address: typing.Text = ... + # Power is an amount of token that the validator is holding + power: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + power : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... +global___ActiveValidator = ActiveValidator + +# Params is the data structure that keeps the parameters of the oracle module. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_RAW_REQUEST_COUNT_FIELD_NUMBER: builtins.int + MAX_ASK_COUNT_FIELD_NUMBER: builtins.int + MAX_CALLDATA_SIZE_FIELD_NUMBER: builtins.int + MAX_REPORT_DATA_SIZE_FIELD_NUMBER: builtins.int + EXPIRATION_BLOCK_COUNT_FIELD_NUMBER: builtins.int + BASE_OWASM_GAS_FIELD_NUMBER: builtins.int + PER_VALIDATOR_REQUEST_GAS_FIELD_NUMBER: builtins.int + SAMPLING_TRY_COUNT_FIELD_NUMBER: builtins.int + ORACLE_REWARD_PERCENTAGE_FIELD_NUMBER: builtins.int + INACTIVE_PENALTY_DURATION_FIELD_NUMBER: builtins.int + IBC_REQUEST_ENABLED_FIELD_NUMBER: builtins.int + # MaxRawRequestCount is the maximum number of data source raw requests a + # request can make. + max_raw_request_count: builtins.int = ... + # MaxAskCount is the maximum number of validators a request can target. + max_ask_count: builtins.int = ... + # MaxCalldataSize is the maximum size limit of calldata (bytes) in a request. + max_calldata_size: builtins.int = ... + # MaxReportDataSize is the maximum size limit of report data (bytes) in a + # report. + max_report_data_size: builtins.int = ... + # ExpirationBlockCount is the number of blocks a request stays valid before + # it gets expired due to insufficient reports. + expiration_block_count: builtins.int = ... + # BaseOwasmGas is the base amount of Cosmos-SDK gas charged for owasm + # execution. + base_owasm_gas: builtins.int = ... + # PerValidatorRequestGas is the amount of Cosmos-SDK gas charged per + # requested validator. + per_validator_request_gas: builtins.int = ... + # SamplingTryCount the number of validator sampling tries to pick the highest + # voting power subset of validators to perform an oracle task. + sampling_try_count: builtins.int = ... + # OracleRewardPercentage is the percentage of block rewards allocated to + # active oracle validators. + oracle_reward_percentage: builtins.int = ... + # InactivePenaltyDuration is the duration period where a validator cannot + # activate back after missing an oracle report. + inactive_penalty_duration: builtins.int = ... + # IBCRequestEnabled is a flag indicating whether sending oracle request via + # IBC is allowed + ibc_request_enabled: builtins.bool = ... + def __init__(self, + *, + max_raw_request_count : builtins.int = ..., + max_ask_count : builtins.int = ..., + max_calldata_size : builtins.int = ..., + max_report_data_size : builtins.int = ..., + expiration_block_count : builtins.int = ..., + base_owasm_gas : builtins.int = ..., + per_validator_request_gas : builtins.int = ..., + sampling_try_count : builtins.int = ..., + oracle_reward_percentage : builtins.int = ..., + inactive_penalty_duration : builtins.int = ..., + ibc_request_enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_owasm_gas",b"base_owasm_gas",u"expiration_block_count",b"expiration_block_count",u"ibc_request_enabled",b"ibc_request_enabled",u"inactive_penalty_duration",b"inactive_penalty_duration",u"max_ask_count",b"max_ask_count",u"max_calldata_size",b"max_calldata_size",u"max_raw_request_count",b"max_raw_request_count",u"max_report_data_size",b"max_report_data_size",u"oracle_reward_percentage",b"oracle_reward_percentage",u"per_validator_request_gas",b"per_validator_request_gas",u"sampling_try_count",b"sampling_try_count"]) -> None: ... +global___Params = Params + +# PendingResolveList is a list of requests that are waiting to be resolved +class PendingResolveList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_IDS_FIELD_NUMBER: builtins.int + # RequestIDs is a list of request IDs that are waiting to be resolved + @property + def request_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + request_ids : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request_ids",b"request_ids"]) -> None: ... +global___PendingResolveList = PendingResolveList + +# IBCChannel is information of IBC protocol to allow communicating with other +# chain +class IBCChannel(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # PortID is port ID used for sending response packet when request is + # resolved. + port_id: typing.Text = ... + # ChannelID is channel ID used for sending response packet when request is + # resolved. + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___IBCChannel = IBCChannel + +# RequestVerification is a message that is constructed and signed by a reporter +# to be used as a part of verification of oracle request. +class RequestVerification(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + EXTERNAL_ID_FIELD_NUMBER: builtins.int + # ChainID is the ID of targeted chain + chain_id: typing.Text = ... + # Validator is an validator address + validator: typing.Text = ... + # RequestID is the targeted request ID + request_id: builtins.int = ... + # ExternalID is the oracle's external ID of data source + external_id: builtins.int = ... + def __init__(self, + *, + chain_id : typing.Text = ..., + validator : typing.Text = ..., + request_id : builtins.int = ..., + external_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"external_id",b"external_id",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... +global___RequestVerification = RequestVerification + +# PriceResult is a result from standard price reference +class PriceResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SYMBOL_FIELD_NUMBER: builtins.int + MULTIPLIER_FIELD_NUMBER: builtins.int + PX_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + RESOLVE_TIME_FIELD_NUMBER: builtins.int + # Symbol is unit of data indicating what the data is. It is price currencies + # for this case. + symbol: typing.Text = ... + # Multiplier is a number used for left-shifting value to eliminate decimal + # digits + multiplier: builtins.int = ... + # Px is the actual data, which is rate number multiplied by the multiplier. + px: builtins.int = ... + # RequestID is oracle request ID that contains this price + request_id: builtins.int = ... + # ResolveTime is epoch timestamp indicating the time when the request had + # been resolved + resolve_time: builtins.int = ... + def __init__(self, + *, + symbol : typing.Text = ..., + multiplier : builtins.int = ..., + px : builtins.int = ..., + request_id : builtins.int = ..., + resolve_time : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"multiplier",b"multiplier",u"px",b"px",u"request_id",b"request_id",u"resolve_time",b"resolve_time",u"symbol",b"symbol"]) -> None: ... +global___PriceResult = PriceResult diff --git a/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi b/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi new file mode 100644 index 0000000..1306f22 --- /dev/null +++ b/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .oracle_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/query_pb2.pyi b/pyband/proto/oracle/v1/query_pb2.pyi new file mode 100644 index 0000000..1a75efb --- /dev/null +++ b/pyband/proto/oracle/v1/query_pb2.pyi @@ -0,0 +1,473 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import oracle.v1.oracle_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryCountsRequest is request type for the Query/Count RPC method. +class QueryCountsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryCountsRequest = QueryCountsRequest + +# QueryCountsResponse is response type for the Query/Count RPC method. +class QueryCountsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_SOURCE_COUNT_FIELD_NUMBER: builtins.int + ORACLE_SCRIPT_COUNT_FIELD_NUMBER: builtins.int + REQUEST_COUNT_FIELD_NUMBER: builtins.int + # DataSourceCount is total number of data sources available on the chain + data_source_count: builtins.int = ... + # OracleScriptCount is total number of oracle scripts available on the chain + oracle_script_count: builtins.int = ... + # RequestCount is total number of requests submitted to the chain + request_count: builtins.int = ... + def __init__(self, + *, + data_source_count : builtins.int = ..., + oracle_script_count : builtins.int = ..., + request_count : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_source_count",b"data_source_count",u"oracle_script_count",b"oracle_script_count",u"request_count",b"request_count"]) -> None: ... +global___QueryCountsResponse = QueryCountsResponse + +# QueryDataRequest is request type for the Query/Data RPC method. +class QueryDataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_HASH_FIELD_NUMBER: builtins.int + # DataHash is SHA256 hash of the file's content, which can be data source or + # oracle script + data_hash: typing.Text = ... + def __init__(self, + *, + data_hash : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_hash",b"data_hash"]) -> None: ... +global___QueryDataRequest = QueryDataRequest + +# QueryDataResponse is response type for the Query/Data RPC method. +class QueryDataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + # Data is file's content, which can be data source or oracle script + data: builtins.bytes = ... + def __init__(self, + *, + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data"]) -> None: ... +global___QueryDataResponse = QueryDataResponse + +# QueryDataSourceRequest is request type for the Query/DataSource RPC method. +class QueryDataSourceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_SOURCE_ID_FIELD_NUMBER: builtins.int + # DataSourceID is ID of a data source script + data_source_id: builtins.int = ... + def __init__(self, + *, + data_source_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_source_id",b"data_source_id"]) -> None: ... +global___QueryDataSourceRequest = QueryDataSourceRequest + +# QueryDataSourceResponse is response type for the Query/DataSource RPC method. +class QueryDataSourceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_SOURCE_FIELD_NUMBER: builtins.int + # DataSource is summary information of a data source + @property + def data_source(self) -> oracle.v1.oracle_pb2.DataSource: ... + def __init__(self, + *, + data_source : typing.Optional[oracle.v1.oracle_pb2.DataSource] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"data_source",b"data_source"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_source",b"data_source"]) -> None: ... +global___QueryDataSourceResponse = QueryDataSourceResponse + +# QueryOracleScriptRequest is request type for the Query/OracleScript RPC +# method. +class QueryOracleScriptRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + # OracleScriptID is ID of an oracle script + oracle_script_id: builtins.int = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"oracle_script_id",b"oracle_script_id"]) -> None: ... +global___QueryOracleScriptRequest = QueryOracleScriptRequest + +# QueryOracleScriptResponse is response type for the Query/OracleScript RPC +# method. +class QueryOracleScriptResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_FIELD_NUMBER: builtins.int + # OracleScript is summary information of an oracle script + @property + def oracle_script(self) -> oracle.v1.oracle_pb2.OracleScript: ... + def __init__(self, + *, + oracle_script : typing.Optional[oracle.v1.oracle_pb2.OracleScript] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"oracle_script",b"oracle_script"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"oracle_script",b"oracle_script"]) -> None: ... +global___QueryOracleScriptResponse = QueryOracleScriptResponse + +# QueryRequestRequest is request type for the Query/Request RPC method. +class QueryRequestRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_ID_FIELD_NUMBER: builtins.int + # RequestID is ID of an oracle request + request_id: builtins.int = ... + def __init__(self, + *, + request_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request_id",b"request_id"]) -> None: ... +global___QueryRequestRequest = QueryRequestRequest + +# QueryRequestResponse is response type for the Query/Request RPC method. +class QueryRequestResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_FIELD_NUMBER: builtins.int + REPORTS_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + # Request is an oracle request + @property + def request(self) -> oracle.v1.oracle_pb2.Request: ... + # Reports is list of result data as raw reports that are fulfilled by + # assigned validators + @property + def reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.Report]: ... + # Result is a final form of result data + @property + def result(self) -> oracle.v1.oracle_pb2.Result: ... + def __init__(self, + *, + request : typing.Optional[oracle.v1.oracle_pb2.Request] = ..., + reports : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.Report]] = ..., + result : typing.Optional[oracle.v1.oracle_pb2.Result] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"request",b"request",u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"reports",b"reports",u"request",b"request",u"result",b"result"]) -> None: ... +global___QueryRequestResponse = QueryRequestResponse + +# QueryPendingRequestRequest is request type for the Query/PendingRequests RPC +# method. +class QueryPendingRequestsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # ValidatorAddress is address of a validator + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryPendingRequestsRequest = QueryPendingRequestsRequest + +# QueryPendingRequestResponse is response type for the Query/PendingRequests +# RPC method. +class QueryPendingRequestsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_IDS_FIELD_NUMBER: builtins.int + # RequestIDs is a list of pending request IDs assigned to the given validator + @property + def request_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + request_ids : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request_ids",b"request_ids"]) -> None: ... +global___QueryPendingRequestsResponse = QueryPendingRequestsResponse + +# QueryParamsRequest is request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + # pagination defines an optional pagination for the request. + @property + def params(self) -> oracle.v1.oracle_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[oracle.v1.oracle_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse + +# QueryValidatorRequest is request type for the Query/Validator RPC method. +class QueryValidatorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # ValidatorAddress is address of a validator + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryValidatorRequest = QueryValidatorRequest + +# QueryValidatorResponse is response type for the Query/Validator RPC method. +class QueryValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATUS_FIELD_NUMBER: builtins.int + # Status is status of a validator e.g. active/inactive + @property + def status(self) -> oracle.v1.oracle_pb2.ValidatorStatus: ... + def __init__(self, + *, + status : typing.Optional[oracle.v1.oracle_pb2.ValidatorStatus] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> None: ... +global___QueryValidatorResponse = QueryValidatorResponse + +# QueryIsReporterRequest is request type for the Query/Reporter RPC method. +class QueryIsReporterRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + REPORTER_ADDRESS_FIELD_NUMBER: builtins.int + # ValidatorAddress is a validator address + validator_address: typing.Text = ... + # ReporterAddress is a candidate account + reporter_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + reporter_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"reporter_address",b"reporter_address",u"validator_address",b"validator_address"]) -> None: ... +global___QueryIsReporterRequest = QueryIsReporterRequest + +# QueryIsReporterResponse is response type for the Query/Reporter RPC method. +class QueryIsReporterResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IS_REPORTER_FIELD_NUMBER: builtins.int + # IsReporter is true if this account has been granted by validator + is_reporter: builtins.bool = ... + def __init__(self, + *, + is_reporter : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"is_reporter",b"is_reporter"]) -> None: ... +global___QueryIsReporterResponse = QueryIsReporterResponse + +# QueryReportersRequest is request type for the Query/Reporters RPC method. +class QueryReportersRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # ValidatorAddress is a validator address + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryReportersRequest = QueryReportersRequest + +# QueryReportersResponse is response type for the Query/Reporters RPC method. +class QueryReportersResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REPORTER_FIELD_NUMBER: builtins.int + # Reporter is a list of account addresses of reporters + @property + def reporter(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + reporter : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"reporter",b"reporter"]) -> None: ... +global___QueryReportersResponse = QueryReportersResponse + +# QueryActiveValidatorsRequest is request type for the Query/ActiveValidators +# RPC method. +class QueryActiveValidatorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryActiveValidatorsRequest = QueryActiveValidatorsRequest + +# QueryActiveValidatorsResponse is response type for the Query/ActiveValidators +# RPC method. +class QueryActiveValidatorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + # Validators is a list of active validators + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.ActiveValidator]: ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.ActiveValidator]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validators",b"validators"]) -> None: ... +global___QueryActiveValidatorsResponse = QueryActiveValidatorsResponse + +# QueryRequestSearchRequest is request type for the Query/RequestSearch RPC +# method. +class QueryRequestSearchRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + # OracleScriptID is ID of an oracle script + oracle_script_id: builtins.int = ... + # Calldata is OBI-encoded data in hex format as argument params for the + # oracle script + calldata: typing.Text = ... + # AskCount is number of validators allowed for fulfilling the request + ask_count: builtins.int = ... + # MinCount is number of validators required for fulfilling the request + min_count: builtins.int = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + calldata : typing.Text = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id"]) -> None: ... +global___QueryRequestSearchRequest = QueryRequestSearchRequest + +# QueryRequestSearchResponse is response type for the Query/RequestSearch RPC +# method. +class QueryRequestSearchResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_FIELD_NUMBER: builtins.int + # Request is details of an oracle request + @property + def request(self) -> global___QueryRequestResponse: ... + def __init__(self, + *, + request : typing.Optional[global___QueryRequestResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"request",b"request"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request",b"request"]) -> None: ... +global___QueryRequestSearchResponse = QueryRequestSearchResponse + +# QueryRequestPriceRequest is request type for the Query/RequestPrice RPC +# method. +class QueryRequestPriceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SYMBOLS_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + # Symbol is unit of data indicating what the data is + @property + def symbols(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # AskCount is number of validators allowed for fulfilling the request + ask_count: builtins.int = ... + # MinCount is number of validators required for fulfilling the request + min_count: builtins.int = ... + def __init__(self, + *, + symbols : typing.Optional[typing.Iterable[typing.Text]] = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"min_count",b"min_count",u"symbols",b"symbols"]) -> None: ... +global___QueryRequestPriceRequest = QueryRequestPriceRequest + +# QueryRequestPriceResponse is response type for the Query/RequestPrice RPC +# method. +class QueryRequestPriceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PRICE_RESULTS_FIELD_NUMBER: builtins.int + # PriceResult is a list of price results for given symbols + @property + def price_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.PriceResult]: ... + def __init__(self, + *, + price_results : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.PriceResult]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"price_results",b"price_results"]) -> None: ... +global___QueryRequestPriceResponse = QueryRequestPriceResponse + +# QueryRequestVerificationRequest is request type for the +# Query/RequestVerification RPC +class QueryRequestVerificationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + EXTERNAL_ID_FIELD_NUMBER: builtins.int + REPORTER_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + # ChainID is the chain ID to identify which chain ID is used for the + # verification + chain_id: typing.Text = ... + # Validator is a validator address + validator: typing.Text = ... + # RequestID is oracle request ID + request_id: builtins.int = ... + # ExternalID is an oracle's external ID + external_id: builtins.int = ... + # Reporter is an bech32-encoded public key of the reporter authorized by the + # validator + reporter: typing.Text = ... + # Signature is a signature signed by the reporter using reporter's private + # key + signature: builtins.bytes = ... + def __init__(self, + *, + chain_id : typing.Text = ..., + validator : typing.Text = ..., + request_id : builtins.int = ..., + external_id : builtins.int = ..., + reporter : typing.Text = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"external_id",b"external_id",u"reporter",b"reporter",u"request_id",b"request_id",u"signature",b"signature",u"validator",b"validator"]) -> None: ... +global___QueryRequestVerificationRequest = QueryRequestVerificationRequest + +# QueryRequestVerificationResponse is response type for the +# Query/RequestVerification RPC +class QueryRequestVerificationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + EXTERNAL_ID_FIELD_NUMBER: builtins.int + DATA_SOURCE_ID_FIELD_NUMBER: builtins.int + # ChainID is the targeted chain ID + chain_id: typing.Text = ... + # Validator is the targeted validator address + validator: typing.Text = ... + # RequestID is the ID of targeted request + request_id: builtins.int = ... + # ExternalID is the ID of targeted oracle's external data source + external_id: builtins.int = ... + # DataSourceID is the ID of a data source that relates to the targeted + # external ID + data_source_id: builtins.int = ... + def __init__(self, + *, + chain_id : typing.Text = ..., + validator : typing.Text = ..., + request_id : builtins.int = ..., + external_id : builtins.int = ..., + data_source_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"data_source_id",b"data_source_id",u"external_id",b"external_id",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... +global___QueryRequestVerificationResponse = QueryRequestVerificationResponse diff --git a/pyband/proto/oracle/v1/query_pb2_grpc.pyi b/pyband/proto/oracle/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..288f2fc --- /dev/null +++ b/pyband/proto/oracle/v1/query_pb2_grpc.pyi @@ -0,0 +1,194 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Counts queries the number of existing data sources, oracle scripts, and + # requests. + Counts:grpc.UnaryUnaryMultiCallable[ + global___QueryCountsRequest, + global___QueryCountsResponse] = ... + + # Data queries content of the data source or oracle script for given SHA256 + # file hash. + Data:grpc.UnaryUnaryMultiCallable[ + global___QueryDataRequest, + global___QueryDataResponse] = ... + + # DataSource queries data source summary info for given data source id. + DataSource:grpc.UnaryUnaryMultiCallable[ + global___QueryDataSourceRequest, + global___QueryDataSourceResponse] = ... + + # OracleScript queries oracle script summary info for given oracle script id. + OracleScript:grpc.UnaryUnaryMultiCallable[ + global___QueryOracleScriptRequest, + global___QueryOracleScriptResponse] = ... + + # Request queries request info for given request id. + Request:grpc.UnaryUnaryMultiCallable[ + global___QueryRequestRequest, + global___QueryRequestResponse] = ... + + # PendingRequests queries list of pending request IDs assigned to given + # validator. + PendingRequests:grpc.UnaryUnaryMultiCallable[ + global___QueryPendingRequestsRequest, + global___QueryPendingRequestsResponse] = ... + + # Validator queries properties of given validator address. + Validator:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorRequest, + global___QueryValidatorResponse] = ... + + # IsReporter queries grant of account on this validator. + IsReporter:grpc.UnaryUnaryMultiCallable[ + global___QueryIsReporterRequest, + global___QueryIsReporterResponse] = ... + + # Reporters queries all reporters associated with given validator address. + Reporters:grpc.UnaryUnaryMultiCallable[ + global___QueryReportersRequest, + global___QueryReportersResponse] = ... + + # ActiveValidators queries all active oracle validators. + ActiveValidators:grpc.UnaryUnaryMultiCallable[ + global___QueryActiveValidatorsRequest, + global___QueryActiveValidatorsResponse] = ... + + # Params queries parameters used for runnning bandchain network. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # RequestSearch queries the latest request that match search criteria. + RequestSearch:grpc.UnaryUnaryMultiCallable[ + global___QueryRequestSearchRequest, + global___QueryRequestSearchResponse] = ... + + # RequestPrice queries the latest price on standard price reference oracle + # script. + RequestPrice:grpc.UnaryUnaryMultiCallable[ + global___QueryRequestPriceRequest, + global___QueryRequestPriceResponse] = ... + + # RequestVerification verifies a request to make sure that + # all information that will be used to report the data is valid + RequestVerification:grpc.UnaryUnaryMultiCallable[ + global___QueryRequestVerificationRequest, + global___QueryRequestVerificationResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Counts queries the number of existing data sources, oracle scripts, and + # requests. + @abc.abstractmethod + def Counts(self, + request: global___QueryCountsRequest, + context: grpc.ServicerContext, + ) -> global___QueryCountsResponse: ... + + # Data queries content of the data source or oracle script for given SHA256 + # file hash. + @abc.abstractmethod + def Data(self, + request: global___QueryDataRequest, + context: grpc.ServicerContext, + ) -> global___QueryDataResponse: ... + + # DataSource queries data source summary info for given data source id. + @abc.abstractmethod + def DataSource(self, + request: global___QueryDataSourceRequest, + context: grpc.ServicerContext, + ) -> global___QueryDataSourceResponse: ... + + # OracleScript queries oracle script summary info for given oracle script id. + @abc.abstractmethod + def OracleScript(self, + request: global___QueryOracleScriptRequest, + context: grpc.ServicerContext, + ) -> global___QueryOracleScriptResponse: ... + + # Request queries request info for given request id. + @abc.abstractmethod + def Request(self, + request: global___QueryRequestRequest, + context: grpc.ServicerContext, + ) -> global___QueryRequestResponse: ... + + # PendingRequests queries list of pending request IDs assigned to given + # validator. + @abc.abstractmethod + def PendingRequests(self, + request: global___QueryPendingRequestsRequest, + context: grpc.ServicerContext, + ) -> global___QueryPendingRequestsResponse: ... + + # Validator queries properties of given validator address. + @abc.abstractmethod + def Validator(self, + request: global___QueryValidatorRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorResponse: ... + + # IsReporter queries grant of account on this validator. + @abc.abstractmethod + def IsReporter(self, + request: global___QueryIsReporterRequest, + context: grpc.ServicerContext, + ) -> global___QueryIsReporterResponse: ... + + # Reporters queries all reporters associated with given validator address. + @abc.abstractmethod + def Reporters(self, + request: global___QueryReportersRequest, + context: grpc.ServicerContext, + ) -> global___QueryReportersResponse: ... + + # ActiveValidators queries all active oracle validators. + @abc.abstractmethod + def ActiveValidators(self, + request: global___QueryActiveValidatorsRequest, + context: grpc.ServicerContext, + ) -> global___QueryActiveValidatorsResponse: ... + + # Params queries parameters used for runnning bandchain network. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # RequestSearch queries the latest request that match search criteria. + @abc.abstractmethod + def RequestSearch(self, + request: global___QueryRequestSearchRequest, + context: grpc.ServicerContext, + ) -> global___QueryRequestSearchResponse: ... + + # RequestPrice queries the latest price on standard price reference oracle + # script. + @abc.abstractmethod + def RequestPrice(self, + request: global___QueryRequestPriceRequest, + context: grpc.ServicerContext, + ) -> global___QueryRequestPriceResponse: ... + + # RequestVerification verifies a request to make sure that + # all information that will be used to report the data is valid + @abc.abstractmethod + def RequestVerification(self, + request: global___QueryRequestVerificationRequest, + context: grpc.ServicerContext, + ) -> global___QueryRequestVerificationResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/oracle/v1/tx_pb2.pyi b/pyband/proto/oracle/v1/tx_pb2.pyi new file mode 100644 index 0000000..acf29de --- /dev/null +++ b/pyband/proto/oracle/v1/tx_pb2.pyi @@ -0,0 +1,323 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.v1beta1.coin_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import oracle.v1.oracle_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgRequestData is a message for sending a data oracle request. +class MsgRequestData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + FEE_LIMIT_FIELD_NUMBER: builtins.int + PREPARE_GAS_FIELD_NUMBER: builtins.int + EXECUTE_GAS_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # OracleScriptID is the identifier of the oracle script to be called. + oracle_script_id: builtins.int = ... + # Calldata is the OBI-encoded call parameters for the oracle script. + calldata: builtins.bytes = ... + # AskCount is the number of validators to perform the oracle task. + ask_count: builtins.int = ... + # MinCount is the minimum number of validators sufficient to resolve the + # oracle tasks. + min_count: builtins.int = ... + # ClientID is the client-provided unique identifier to track the request. + client_id: typing.Text = ... + # FeeLimit is the maximum tokens that will be paid to all data source + # providers. + @property + def fee_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # PrepareGas is amount of gas to pay to prepare raw requests + prepare_gas: builtins.int = ... + # ExecuteGas is amount of gas to reserve for executing + execute_gas: builtins.int = ... + # Sender is an account address of message sender. + sender: typing.Text = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + calldata : builtins.bytes = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + client_id : typing.Text = ..., + fee_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + prepare_gas : builtins.int = ..., + execute_gas : builtins.int = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"fee_limit",b"fee_limit",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"prepare_gas",b"prepare_gas",u"sender",b"sender"]) -> None: ... +global___MsgRequestData = MsgRequestData + +# MsgRequestDataResponse is response data for MsgRequestData message +class MsgRequestDataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgRequestDataResponse = MsgRequestDataResponse + +# MsgReportData is a message for reporting to a data request by a validator. +class MsgReportData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_ID_FIELD_NUMBER: builtins.int + RAW_REPORTS_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + # RequestID is the identifier of the request to be reported to. + request_id: builtins.int = ... + # RawReports is the list of report information provided by data sources + # identified by external ID + @property + def raw_reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.RawReport]: ... + # Validator is the address of the validator that owns this report. + validator: typing.Text = ... + def __init__(self, + *, + request_id : builtins.int = ..., + raw_reports : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.RawReport]] = ..., + validator : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"raw_reports",b"raw_reports",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... +global___MsgReportData = MsgReportData + +# MsgReportDataResponse is response data for MsgReportData message +class MsgReportDataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgReportDataResponse = MsgReportDataResponse + +# MsgCreateDataSource is a message for creating a new data source. +class MsgCreateDataSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + EXECUTABLE_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + TREASURY_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # Name is the name of this data source used for display (optional). + name: typing.Text = ... + # Description is the description of this data source used for display + # (optional). + description: typing.Text = ... + # Executable is the content of executable script or binary file to be run by + # validators upon execution. + executable: builtins.bytes = ... + # Fee is the data source fee per ask_count that data provider will receive + # from requester. + @property + def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # Treasury is the account address who receive data source fee from requester. + treasury: typing.Text = ... + # Owner is the account address who is allowed to make further changes to the + # data source. + owner: typing.Text = ... + # Sender is the signer of this message. + sender: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + description : typing.Text = ..., + executable : builtins.bytes = ..., + fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + treasury : typing.Text = ..., + owner : typing.Text = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"executable",b"executable",u"fee",b"fee",u"name",b"name",u"owner",b"owner",u"sender",b"sender",u"treasury",b"treasury"]) -> None: ... +global___MsgCreateDataSource = MsgCreateDataSource + +# MsgCreateDataSourceResponse is response data for MsgCreateDataSource message +class MsgCreateDataSourceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateDataSourceResponse = MsgCreateDataSourceResponse + +# MsgEditDataSource is a message for editing an existing data source. +class MsgEditDataSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_SOURCE_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + EXECUTABLE_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + TREASURY_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # DataSourceID is the unique identifier of the data source to be edited. + data_source_id: builtins.int = ... + # Name is the name of this data source used for display (optional). + name: typing.Text = ... + # Description is the description of this data source used for display + # (optional). + description: typing.Text = ... + # Executable is the executable script or binary to be run by validators upon + # execution. + executable: builtins.bytes = ... + # Fee is the data source fee per ask_count that data provider will receive + # from requester. + @property + def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # Treasury is the address who receive data source fee from requester. + treasury: typing.Text = ... + # Owner is the address who is allowed to make further changes to the data + # source. + owner: typing.Text = ... + # Sender is the signer of this message. Must be the current data source's + # owner. + sender: typing.Text = ... + def __init__(self, + *, + data_source_id : builtins.int = ..., + name : typing.Text = ..., + description : typing.Text = ..., + executable : builtins.bytes = ..., + fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + treasury : typing.Text = ..., + owner : typing.Text = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_source_id",b"data_source_id",u"description",b"description",u"executable",b"executable",u"fee",b"fee",u"name",b"name",u"owner",b"owner",u"sender",b"sender",u"treasury",b"treasury"]) -> None: ... +global___MsgEditDataSource = MsgEditDataSource + +# MsgEditDataSourceResponse is response data for MsgEditDataSource message +class MsgEditDataSourceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgEditDataSourceResponse = MsgEditDataSourceResponse + +# MsgCreateOracleScript is a message for creating an oracle script. +class MsgCreateOracleScript(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + SCHEMA_FIELD_NUMBER: builtins.int + SOURCE_CODE_URL_FIELD_NUMBER: builtins.int + CODE_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # Name is the name of this oracle script used for display (optional). + name: typing.Text = ... + # Description is the description of this oracle script used for display + # (optional). + description: typing.Text = ... + # Schema is the OBI schema of this oracle script (optional). + schema: typing.Text = ... + # SourceCodeURL is the absolute URI to the script's source code (optional). + source_code_url: typing.Text = ... + # Code is the oracle WebAssembly binary code. Can be raw of gzip compressed. + code: builtins.bytes = ... + # Owner is the address who is allowed to make further changes to the oracle + # script. + owner: typing.Text = ... + # Sender is the signer of this message. + sender: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + description : typing.Text = ..., + schema : typing.Text = ..., + source_code_url : typing.Text = ..., + code : builtins.bytes = ..., + owner : typing.Text = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"description",b"description",u"name",b"name",u"owner",b"owner",u"schema",b"schema",u"sender",b"sender",u"source_code_url",b"source_code_url"]) -> None: ... +global___MsgCreateOracleScript = MsgCreateOracleScript + +# MsgCreateOracleScriptResponse is response data for MsgCreateOracleScript +# message +class MsgCreateOracleScriptResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateOracleScriptResponse = MsgCreateOracleScriptResponse + +# MsgEditOracleScript is a message for editing an existing oracle script. +class MsgEditOracleScript(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + SCHEMA_FIELD_NUMBER: builtins.int + SOURCE_CODE_URL_FIELD_NUMBER: builtins.int + CODE_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # OracleScriptID is the unique identifier of the oracle script to be edited. + oracle_script_id: builtins.int = ... + # Name is the name of this oracle script used for display (optional). + name: typing.Text = ... + # Description is the description of this oracle script used for display + # (optional). + description: typing.Text = ... + # Schema is the OBI schema of this oracle script (optional). + schema: typing.Text = ... + # SourceCodeURL is the absolute URI to the script's source code (optional). + source_code_url: typing.Text = ... + # Code is the oracle WebAssembly binary code. Can be raw of gzip compressed. + code: builtins.bytes = ... + # Owner is an account address who is allowed to make further changes to the + # oracle script. + owner: typing.Text = ... + # Sender is an account address who sign this message. Must be the current + # oracle script's owner. + sender: typing.Text = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + name : typing.Text = ..., + description : typing.Text = ..., + schema : typing.Text = ..., + source_code_url : typing.Text = ..., + code : builtins.bytes = ..., + owner : typing.Text = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"description",b"description",u"name",b"name",u"oracle_script_id",b"oracle_script_id",u"owner",b"owner",u"schema",b"schema",u"sender",b"sender",u"source_code_url",b"source_code_url"]) -> None: ... +global___MsgEditOracleScript = MsgEditOracleScript + +# MsgEditOracleScriptResponse is response data for MsgEditOracleScript message +class MsgEditOracleScriptResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgEditOracleScriptResponse = MsgEditOracleScriptResponse + +# MsgEditOracleScript is a message for activating a validator to become an +# oracle provider. However, the activation can be revoked once the validator +# is unable to provide data to fulfill requests +class MsgActivate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + # Validator is the validator address who sign this message and request to be + # activated. + validator: typing.Text = ... + def __init__(self, + *, + validator : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... +global___MsgActivate = MsgActivate + +# MsgActivateResponse is response data for MsgActivate message +class MsgActivateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgActivateResponse = MsgActivateResponse diff --git a/pyband/proto/oracle/v1/tx_pb2_grpc.pyi b/pyband/proto/oracle/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..c39ed74 --- /dev/null +++ b/pyband/proto/oracle/v1/tx_pb2_grpc.pyi @@ -0,0 +1,100 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the oracle Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # RequestData defines a method for submitting a new request. + RequestData:grpc.UnaryUnaryMultiCallable[ + global___MsgRequestData, + global___MsgRequestDataResponse] = ... + + # ReportData defines a method for reporting a data to resolve the request. + ReportData:grpc.UnaryUnaryMultiCallable[ + global___MsgReportData, + global___MsgReportDataResponse] = ... + + # CreateDataSource defines a method for creating a new data source. + CreateDataSource:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateDataSource, + global___MsgCreateDataSourceResponse] = ... + + # EditDataSource defines a method for editing an existing data source. + EditDataSource:grpc.UnaryUnaryMultiCallable[ + global___MsgEditDataSource, + global___MsgEditDataSourceResponse] = ... + + # CreateOracleScript defines a method for creating a new oracle script. + CreateOracleScript:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateOracleScript, + global___MsgCreateOracleScriptResponse] = ... + + # EditOracleScript defines a method for editing an existing oracle script. + EditOracleScript:grpc.UnaryUnaryMultiCallable[ + global___MsgEditOracleScript, + global___MsgEditOracleScriptResponse] = ... + + # Activate defines a method for applying to be an oracle validator. + Activate:grpc.UnaryUnaryMultiCallable[ + global___MsgActivate, + global___MsgActivateResponse] = ... + + +# Msg defines the oracle Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # RequestData defines a method for submitting a new request. + @abc.abstractmethod + def RequestData(self, + request: global___MsgRequestData, + context: grpc.ServicerContext, + ) -> global___MsgRequestDataResponse: ... + + # ReportData defines a method for reporting a data to resolve the request. + @abc.abstractmethod + def ReportData(self, + request: global___MsgReportData, + context: grpc.ServicerContext, + ) -> global___MsgReportDataResponse: ... + + # CreateDataSource defines a method for creating a new data source. + @abc.abstractmethod + def CreateDataSource(self, + request: global___MsgCreateDataSource, + context: grpc.ServicerContext, + ) -> global___MsgCreateDataSourceResponse: ... + + # EditDataSource defines a method for editing an existing data source. + @abc.abstractmethod + def EditDataSource(self, + request: global___MsgEditDataSource, + context: grpc.ServicerContext, + ) -> global___MsgEditDataSourceResponse: ... + + # CreateOracleScript defines a method for creating a new oracle script. + @abc.abstractmethod + def CreateOracleScript(self, + request: global___MsgCreateOracleScript, + context: grpc.ServicerContext, + ) -> global___MsgCreateOracleScriptResponse: ... + + # EditOracleScript defines a method for editing an existing oracle script. + @abc.abstractmethod + def EditOracleScript(self, + request: global___MsgEditOracleScript, + context: grpc.ServicerContext, + ) -> global___MsgEditOracleScriptResponse: ... + + # Activate defines a method for applying to be an oracle validator. + @abc.abstractmethod + def Activate(self, + request: global___MsgActivate, + context: grpc.ServicerContext, + ) -> global___MsgActivateResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/tendermint/abci/types_pb2.pyi b/pyband/proto/tendermint/abci/types_pb2.pyi new file mode 100644 index 0000000..922a12c --- /dev/null +++ b/pyband/proto/tendermint/abci/types_pb2.pyi @@ -0,0 +1,1039 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import tendermint.crypto.keys_pb2 +import tendermint.crypto.proof_pb2 +import tendermint.types.params_pb2 +import tendermint.types.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class CheckTxType(_CheckTxType, metaclass=_CheckTxTypeEnumTypeWrapper): + pass +class _CheckTxType: + V = typing.NewType('V', builtins.int) +class _CheckTxTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CheckTxType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + NEW = CheckTxType.V(0) + RECHECK = CheckTxType.V(1) + +NEW = CheckTxType.V(0) +RECHECK = CheckTxType.V(1) +global___CheckTxType = CheckTxType + + +class EvidenceType(_EvidenceType, metaclass=_EvidenceTypeEnumTypeWrapper): + pass +class _EvidenceType: + V = typing.NewType('V', builtins.int) +class _EvidenceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EvidenceType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + UNKNOWN = EvidenceType.V(0) + DUPLICATE_VOTE = EvidenceType.V(1) + LIGHT_CLIENT_ATTACK = EvidenceType.V(2) + +UNKNOWN = EvidenceType.V(0) +DUPLICATE_VOTE = EvidenceType.V(1) +LIGHT_CLIENT_ATTACK = EvidenceType.V(2) +global___EvidenceType = EvidenceType + + +# This file is copied from http://github.com/tendermint/abci +# NOTE: When using custom types, mind the warnings. +# https://github.com/gogo/protobuf/blob/master/custom_types.md#warnings-and-issues + +#---------------------------------------- +# Request types + +class Request(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ECHO_FIELD_NUMBER: builtins.int + FLUSH_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + SET_OPTION_FIELD_NUMBER: builtins.int + INIT_CHAIN_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + BEGIN_BLOCK_FIELD_NUMBER: builtins.int + CHECK_TX_FIELD_NUMBER: builtins.int + DELIVER_TX_FIELD_NUMBER: builtins.int + END_BLOCK_FIELD_NUMBER: builtins.int + COMMIT_FIELD_NUMBER: builtins.int + LIST_SNAPSHOTS_FIELD_NUMBER: builtins.int + OFFER_SNAPSHOT_FIELD_NUMBER: builtins.int + LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int + APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int + @property + def echo(self) -> global___RequestEcho: ... + @property + def flush(self) -> global___RequestFlush: ... + @property + def info(self) -> global___RequestInfo: ... + @property + def set_option(self) -> global___RequestSetOption: ... + @property + def init_chain(self) -> global___RequestInitChain: ... + @property + def query(self) -> global___RequestQuery: ... + @property + def begin_block(self) -> global___RequestBeginBlock: ... + @property + def check_tx(self) -> global___RequestCheckTx: ... + @property + def deliver_tx(self) -> global___RequestDeliverTx: ... + @property + def end_block(self) -> global___RequestEndBlock: ... + @property + def commit(self) -> global___RequestCommit: ... + @property + def list_snapshots(self) -> global___RequestListSnapshots: ... + @property + def offer_snapshot(self) -> global___RequestOfferSnapshot: ... + @property + def load_snapshot_chunk(self) -> global___RequestLoadSnapshotChunk: ... + @property + def apply_snapshot_chunk(self) -> global___RequestApplySnapshotChunk: ... + def __init__(self, + *, + echo : typing.Optional[global___RequestEcho] = ..., + flush : typing.Optional[global___RequestFlush] = ..., + info : typing.Optional[global___RequestInfo] = ..., + set_option : typing.Optional[global___RequestSetOption] = ..., + init_chain : typing.Optional[global___RequestInitChain] = ..., + query : typing.Optional[global___RequestQuery] = ..., + begin_block : typing.Optional[global___RequestBeginBlock] = ..., + check_tx : typing.Optional[global___RequestCheckTx] = ..., + deliver_tx : typing.Optional[global___RequestDeliverTx] = ..., + end_block : typing.Optional[global___RequestEndBlock] = ..., + commit : typing.Optional[global___RequestCommit] = ..., + list_snapshots : typing.Optional[global___RequestListSnapshots] = ..., + offer_snapshot : typing.Optional[global___RequestOfferSnapshot] = ..., + load_snapshot_chunk : typing.Optional[global___RequestLoadSnapshotChunk] = ..., + apply_snapshot_chunk : typing.Optional[global___RequestApplySnapshotChunk] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"value",b"value"]) -> typing.Optional[typing_extensions.Literal["echo","flush","info","set_option","init_chain","query","begin_block","check_tx","deliver_tx","end_block","commit","list_snapshots","offer_snapshot","load_snapshot_chunk","apply_snapshot_chunk"]]: ... +global___Request = Request + +class RequestEcho(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MESSAGE_FIELD_NUMBER: builtins.int + message: typing.Text = ... + def __init__(self, + *, + message : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"message",b"message"]) -> None: ... +global___RequestEcho = RequestEcho + +class RequestFlush(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___RequestFlush = RequestFlush + +class RequestInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VERSION_FIELD_NUMBER: builtins.int + BLOCK_VERSION_FIELD_NUMBER: builtins.int + P2P_VERSION_FIELD_NUMBER: builtins.int + version: typing.Text = ... + block_version: builtins.int = ... + p2p_version: builtins.int = ... + def __init__(self, + *, + version : typing.Text = ..., + block_version : builtins.int = ..., + p2p_version : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_version",b"block_version",u"p2p_version",b"p2p_version",u"version",b"version"]) -> None: ... +global___RequestInfo = RequestInfo + +# nondeterministic +class RequestSetOption(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... + value: typing.Text = ... + def __init__(self, + *, + key : typing.Text = ..., + value : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___RequestSetOption = RequestSetOption + +class RequestInitChain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TIME_FIELD_NUMBER: builtins.int + CHAIN_ID_FIELD_NUMBER: builtins.int + CONSENSUS_PARAMS_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + APP_STATE_BYTES_FIELD_NUMBER: builtins.int + INITIAL_HEIGHT_FIELD_NUMBER: builtins.int + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + chain_id: typing.Text = ... + @property + def consensus_params(self) -> global___ConsensusParams: ... + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... + app_state_bytes: builtins.bytes = ... + initial_height: builtins.int = ... + def __init__(self, + *, + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + chain_id : typing.Text = ..., + consensus_params : typing.Optional[global___ConsensusParams] = ..., + validators : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., + app_state_bytes : builtins.bytes = ..., + initial_height : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_params",b"consensus_params",u"time",b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_state_bytes",b"app_state_bytes",u"chain_id",b"chain_id",u"consensus_params",b"consensus_params",u"initial_height",b"initial_height",u"time",b"time",u"validators",b"validators"]) -> None: ... +global___RequestInitChain = RequestInitChain + +class RequestQuery(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + PROVE_FIELD_NUMBER: builtins.int + data: builtins.bytes = ... + path: typing.Text = ... + height: builtins.int = ... + prove: builtins.bool = ... + def __init__(self, + *, + data : builtins.bytes = ..., + path : typing.Text = ..., + height : builtins.int = ..., + prove : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"height",b"height",u"path",b"path",u"prove",b"prove"]) -> None: ... +global___RequestQuery = RequestQuery + +class RequestBeginBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + HEADER_FIELD_NUMBER: builtins.int + LAST_COMMIT_INFO_FIELD_NUMBER: builtins.int + BYZANTINE_VALIDATORS_FIELD_NUMBER: builtins.int + hash: builtins.bytes = ... + @property + def header(self) -> tendermint.types.types_pb2.Header: ... + @property + def last_commit_info(self) -> global___LastCommitInfo: ... + @property + def byzantine_validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Evidence]: ... + def __init__(self, + *, + hash : builtins.bytes = ..., + header : typing.Optional[tendermint.types.types_pb2.Header] = ..., + last_commit_info : typing.Optional[global___LastCommitInfo] = ..., + byzantine_validators : typing.Optional[typing.Iterable[global___Evidence]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"header",b"header",u"last_commit_info",b"last_commit_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"byzantine_validators",b"byzantine_validators",u"hash",b"hash",u"header",b"header",u"last_commit_info",b"last_commit_info"]) -> None: ... +global___RequestBeginBlock = RequestBeginBlock + +class RequestCheckTx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + tx: builtins.bytes = ... + type: global___CheckTxType.V = ... + def __init__(self, + *, + tx : builtins.bytes = ..., + type : global___CheckTxType.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"type",b"type"]) -> None: ... +global___RequestCheckTx = RequestCheckTx + +class RequestDeliverTx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_FIELD_NUMBER: builtins.int + tx: builtins.bytes = ... + def __init__(self, + *, + tx : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> None: ... +global___RequestDeliverTx = RequestDeliverTx + +class RequestEndBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + height: builtins.int = ... + def __init__(self, + *, + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... +global___RequestEndBlock = RequestEndBlock + +class RequestCommit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___RequestCommit = RequestCommit + +# lists available snapshots +class RequestListSnapshots(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___RequestListSnapshots = RequestListSnapshots + +# offers a snapshot to the application +class RequestOfferSnapshot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SNAPSHOT_FIELD_NUMBER: builtins.int + APP_HASH_FIELD_NUMBER: builtins.int + # snapshot offered by peers + @property + def snapshot(self) -> global___Snapshot: ... + # light client-verified app hash for snapshot height + app_hash: builtins.bytes = ... + def __init__(self, + *, + snapshot : typing.Optional[global___Snapshot] = ..., + app_hash : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"snapshot",b"snapshot"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"snapshot",b"snapshot"]) -> None: ... +global___RequestOfferSnapshot = RequestOfferSnapshot + +# loads a snapshot chunk +class RequestLoadSnapshotChunk(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + CHUNK_FIELD_NUMBER: builtins.int + height: builtins.int = ... + format: builtins.int = ... + chunk: builtins.int = ... + def __init__(self, + *, + height : builtins.int = ..., + format : builtins.int = ..., + chunk : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunk",b"chunk",u"format",b"format",u"height",b"height"]) -> None: ... +global___RequestLoadSnapshotChunk = RequestLoadSnapshotChunk + +# Applies a snapshot chunk +class RequestApplySnapshotChunk(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + CHUNK_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + index: builtins.int = ... + chunk: builtins.bytes = ... + sender: typing.Text = ... + def __init__(self, + *, + index : builtins.int = ..., + chunk : builtins.bytes = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunk",b"chunk",u"index",b"index",u"sender",b"sender"]) -> None: ... +global___RequestApplySnapshotChunk = RequestApplySnapshotChunk + +#---------------------------------------- +# Response types + +class Response(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXCEPTION_FIELD_NUMBER: builtins.int + ECHO_FIELD_NUMBER: builtins.int + FLUSH_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + SET_OPTION_FIELD_NUMBER: builtins.int + INIT_CHAIN_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + BEGIN_BLOCK_FIELD_NUMBER: builtins.int + CHECK_TX_FIELD_NUMBER: builtins.int + DELIVER_TX_FIELD_NUMBER: builtins.int + END_BLOCK_FIELD_NUMBER: builtins.int + COMMIT_FIELD_NUMBER: builtins.int + LIST_SNAPSHOTS_FIELD_NUMBER: builtins.int + OFFER_SNAPSHOT_FIELD_NUMBER: builtins.int + LOAD_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int + APPLY_SNAPSHOT_CHUNK_FIELD_NUMBER: builtins.int + @property + def exception(self) -> global___ResponseException: ... + @property + def echo(self) -> global___ResponseEcho: ... + @property + def flush(self) -> global___ResponseFlush: ... + @property + def info(self) -> global___ResponseInfo: ... + @property + def set_option(self) -> global___ResponseSetOption: ... + @property + def init_chain(self) -> global___ResponseInitChain: ... + @property + def query(self) -> global___ResponseQuery: ... + @property + def begin_block(self) -> global___ResponseBeginBlock: ... + @property + def check_tx(self) -> global___ResponseCheckTx: ... + @property + def deliver_tx(self) -> global___ResponseDeliverTx: ... + @property + def end_block(self) -> global___ResponseEndBlock: ... + @property + def commit(self) -> global___ResponseCommit: ... + @property + def list_snapshots(self) -> global___ResponseListSnapshots: ... + @property + def offer_snapshot(self) -> global___ResponseOfferSnapshot: ... + @property + def load_snapshot_chunk(self) -> global___ResponseLoadSnapshotChunk: ... + @property + def apply_snapshot_chunk(self) -> global___ResponseApplySnapshotChunk: ... + def __init__(self, + *, + exception : typing.Optional[global___ResponseException] = ..., + echo : typing.Optional[global___ResponseEcho] = ..., + flush : typing.Optional[global___ResponseFlush] = ..., + info : typing.Optional[global___ResponseInfo] = ..., + set_option : typing.Optional[global___ResponseSetOption] = ..., + init_chain : typing.Optional[global___ResponseInitChain] = ..., + query : typing.Optional[global___ResponseQuery] = ..., + begin_block : typing.Optional[global___ResponseBeginBlock] = ..., + check_tx : typing.Optional[global___ResponseCheckTx] = ..., + deliver_tx : typing.Optional[global___ResponseDeliverTx] = ..., + end_block : typing.Optional[global___ResponseEndBlock] = ..., + commit : typing.Optional[global___ResponseCommit] = ..., + list_snapshots : typing.Optional[global___ResponseListSnapshots] = ..., + offer_snapshot : typing.Optional[global___ResponseOfferSnapshot] = ..., + load_snapshot_chunk : typing.Optional[global___ResponseLoadSnapshotChunk] = ..., + apply_snapshot_chunk : typing.Optional[global___ResponseApplySnapshotChunk] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"exception",b"exception",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"exception",b"exception",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"value",b"value"]) -> typing.Optional[typing_extensions.Literal["exception","echo","flush","info","set_option","init_chain","query","begin_block","check_tx","deliver_tx","end_block","commit","list_snapshots","offer_snapshot","load_snapshot_chunk","apply_snapshot_chunk"]]: ... +global___Response = Response + +# nondeterministic +class ResponseException(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ERROR_FIELD_NUMBER: builtins.int + error: typing.Text = ... + def __init__(self, + *, + error : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"error",b"error"]) -> None: ... +global___ResponseException = ResponseException + +class ResponseEcho(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MESSAGE_FIELD_NUMBER: builtins.int + message: typing.Text = ... + def __init__(self, + *, + message : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"message",b"message"]) -> None: ... +global___ResponseEcho = ResponseEcho + +class ResponseFlush(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___ResponseFlush = ResponseFlush + +class ResponseInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + APP_VERSION_FIELD_NUMBER: builtins.int + LAST_BLOCK_HEIGHT_FIELD_NUMBER: builtins.int + LAST_BLOCK_APP_HASH_FIELD_NUMBER: builtins.int + data: typing.Text = ... + version: typing.Text = ... + app_version: builtins.int = ... + last_block_height: builtins.int = ... + last_block_app_hash: builtins.bytes = ... + def __init__(self, + *, + data : typing.Text = ..., + version : typing.Text = ..., + app_version : builtins.int = ..., + last_block_height : builtins.int = ..., + last_block_app_hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_version",b"app_version",u"data",b"data",u"last_block_app_hash",b"last_block_app_hash",u"last_block_height",b"last_block_height",u"version",b"version"]) -> None: ... +global___ResponseInfo = ResponseInfo + +# nondeterministic +class ResponseSetOption(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CODE_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + code: builtins.int = ... + # bytes data = 2; + log: typing.Text = ... + info: typing.Text = ... + def __init__(self, + *, + code : builtins.int = ..., + log : typing.Text = ..., + info : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"info",b"info",u"log",b"log"]) -> None: ... +global___ResponseSetOption = ResponseSetOption + +class ResponseInitChain(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_PARAMS_FIELD_NUMBER: builtins.int + VALIDATORS_FIELD_NUMBER: builtins.int + APP_HASH_FIELD_NUMBER: builtins.int + @property + def consensus_params(self) -> global___ConsensusParams: ... + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... + app_hash: builtins.bytes = ... + def __init__(self, + *, + consensus_params : typing.Optional[global___ConsensusParams] = ..., + validators : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., + app_hash : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_params",b"consensus_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"consensus_params",b"consensus_params",u"validators",b"validators"]) -> None: ... +global___ResponseInitChain = ResponseInitChain + +class ResponseQuery(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CODE_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + PROOF_OPS_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + code: builtins.int = ... + # bytes data = 2; // use "value" instead. + # nondeterministic + log: typing.Text = ... + # nondeterministic + info: typing.Text = ... + index: builtins.int = ... + key: builtins.bytes = ... + value: builtins.bytes = ... + @property + def proof_ops(self) -> tendermint.crypto.proof_pb2.ProofOps: ... + height: builtins.int = ... + codespace: typing.Text = ... + def __init__(self, + *, + code : builtins.int = ..., + log : typing.Text = ..., + info : typing.Text = ..., + index : builtins.int = ..., + key : builtins.bytes = ..., + value : builtins.bytes = ..., + proof_ops : typing.Optional[tendermint.crypto.proof_pb2.ProofOps] = ..., + height : builtins.int = ..., + codespace : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_ops",b"proof_ops"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"height",b"height",u"index",b"index",u"info",b"info",u"key",b"key",u"log",b"log",u"proof_ops",b"proof_ops",u"value",b"value"]) -> None: ... +global___ResponseQuery = ResponseQuery + +class ResponseBeginBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVENTS_FIELD_NUMBER: builtins.int + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + def __init__(self, + *, + events : typing.Optional[typing.Iterable[global___Event]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events"]) -> None: ... +global___ResponseBeginBlock = ResponseBeginBlock + +class ResponseCheckTx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CODE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + code: builtins.int = ... + data: builtins.bytes = ... + # nondeterministic + log: typing.Text = ... + # nondeterministic + info: typing.Text = ... + gas_wanted: builtins.int = ... + gas_used: builtins.int = ... + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + codespace: typing.Text = ... + def __init__(self, + *, + code : builtins.int = ..., + data : builtins.bytes = ..., + log : typing.Text = ..., + info : typing.Text = ..., + gas_wanted : builtins.int = ..., + gas_used : builtins.int = ..., + events : typing.Optional[typing.Iterable[global___Event]] = ..., + codespace : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"events",b"events",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"info",b"info",u"log",b"log"]) -> None: ... +global___ResponseCheckTx = ResponseCheckTx + +class ResponseDeliverTx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CODE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + CODESPACE_FIELD_NUMBER: builtins.int + code: builtins.int = ... + data: builtins.bytes = ... + # nondeterministic + log: typing.Text = ... + # nondeterministic + info: typing.Text = ... + gas_wanted: builtins.int = ... + gas_used: builtins.int = ... + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + codespace: typing.Text = ... + def __init__(self, + *, + code : builtins.int = ..., + data : builtins.bytes = ..., + log : typing.Text = ..., + info : typing.Text = ..., + gas_wanted : builtins.int = ..., + gas_used : builtins.int = ..., + events : typing.Optional[typing.Iterable[global___Event]] = ..., + codespace : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"events",b"events",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"info",b"info",u"log",b"log"]) -> None: ... +global___ResponseDeliverTx = ResponseDeliverTx + +class ResponseEndBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_UPDATES_FIELD_NUMBER: builtins.int + CONSENSUS_PARAM_UPDATES_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + @property + def validator_updates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... + @property + def consensus_param_updates(self) -> global___ConsensusParams: ... + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + def __init__(self, + *, + validator_updates : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., + consensus_param_updates : typing.Optional[global___ConsensusParams] = ..., + events : typing.Optional[typing.Iterable[global___Event]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_param_updates",b"consensus_param_updates"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_param_updates",b"consensus_param_updates",u"events",b"events",u"validator_updates",b"validator_updates"]) -> None: ... +global___ResponseEndBlock = ResponseEndBlock + +class ResponseCommit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + RETAIN_HEIGHT_FIELD_NUMBER: builtins.int + # reserve 1 + data: builtins.bytes = ... + retain_height: builtins.int = ... + def __init__(self, + *, + data : builtins.bytes = ..., + retain_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"retain_height",b"retain_height"]) -> None: ... +global___ResponseCommit = ResponseCommit + +class ResponseListSnapshots(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SNAPSHOTS_FIELD_NUMBER: builtins.int + @property + def snapshots(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Snapshot]: ... + def __init__(self, + *, + snapshots : typing.Optional[typing.Iterable[global___Snapshot]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"snapshots",b"snapshots"]) -> None: ... +global___ResponseListSnapshots = ResponseListSnapshots + +class ResponseOfferSnapshot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Result(_Result, metaclass=_ResultEnumTypeWrapper): + pass + class _Result: + V = typing.NewType('V', builtins.int) + class _ResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Result.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Unknown result, abort all snapshot restoration + UNKNOWN = ResponseOfferSnapshot.Result.V(0) + # Snapshot accepted, apply chunks + ACCEPT = ResponseOfferSnapshot.Result.V(1) + # Abort all snapshot restoration + ABORT = ResponseOfferSnapshot.Result.V(2) + # Reject this specific snapshot, try others + REJECT = ResponseOfferSnapshot.Result.V(3) + # Reject all snapshots of this format, try others + REJECT_FORMAT = ResponseOfferSnapshot.Result.V(4) + # Reject all snapshots from the sender(s), try others + REJECT_SENDER = ResponseOfferSnapshot.Result.V(5) + + # Unknown result, abort all snapshot restoration + UNKNOWN = ResponseOfferSnapshot.Result.V(0) + # Snapshot accepted, apply chunks + ACCEPT = ResponseOfferSnapshot.Result.V(1) + # Abort all snapshot restoration + ABORT = ResponseOfferSnapshot.Result.V(2) + # Reject this specific snapshot, try others + REJECT = ResponseOfferSnapshot.Result.V(3) + # Reject all snapshots of this format, try others + REJECT_FORMAT = ResponseOfferSnapshot.Result.V(4) + # Reject all snapshots from the sender(s), try others + REJECT_SENDER = ResponseOfferSnapshot.Result.V(5) + + RESULT_FIELD_NUMBER: builtins.int + result: global___ResponseOfferSnapshot.Result.V = ... + def __init__(self, + *, + result : global___ResponseOfferSnapshot.Result.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"result",b"result"]) -> None: ... +global___ResponseOfferSnapshot = ResponseOfferSnapshot + +class ResponseLoadSnapshotChunk(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHUNK_FIELD_NUMBER: builtins.int + chunk: builtins.bytes = ... + def __init__(self, + *, + chunk : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunk",b"chunk"]) -> None: ... +global___ResponseLoadSnapshotChunk = ResponseLoadSnapshotChunk + +class ResponseApplySnapshotChunk(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Result(_Result, metaclass=_ResultEnumTypeWrapper): + pass + class _Result: + V = typing.NewType('V', builtins.int) + class _ResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Result.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Unknown result, abort all snapshot restoration + UNKNOWN = ResponseApplySnapshotChunk.Result.V(0) + # Chunk successfully accepted + ACCEPT = ResponseApplySnapshotChunk.Result.V(1) + # Abort all snapshot restoration + ABORT = ResponseApplySnapshotChunk.Result.V(2) + # Retry chunk (combine with refetch and reject) + RETRY = ResponseApplySnapshotChunk.Result.V(3) + # Retry snapshot (combine with refetch and reject) + RETRY_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(4) + # Reject this snapshot, try others + REJECT_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(5) + + # Unknown result, abort all snapshot restoration + UNKNOWN = ResponseApplySnapshotChunk.Result.V(0) + # Chunk successfully accepted + ACCEPT = ResponseApplySnapshotChunk.Result.V(1) + # Abort all snapshot restoration + ABORT = ResponseApplySnapshotChunk.Result.V(2) + # Retry chunk (combine with refetch and reject) + RETRY = ResponseApplySnapshotChunk.Result.V(3) + # Retry snapshot (combine with refetch and reject) + RETRY_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(4) + # Reject this snapshot, try others + REJECT_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(5) + + RESULT_FIELD_NUMBER: builtins.int + REFETCH_CHUNKS_FIELD_NUMBER: builtins.int + REJECT_SENDERS_FIELD_NUMBER: builtins.int + result: global___ResponseApplySnapshotChunk.Result.V = ... + # Chunks to refetch and reapply + @property + def refetch_chunks(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + # Chunk senders to reject and ban + @property + def reject_senders(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + result : global___ResponseApplySnapshotChunk.Result.V = ..., + refetch_chunks : typing.Optional[typing.Iterable[builtins.int]] = ..., + reject_senders : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"refetch_chunks",b"refetch_chunks",u"reject_senders",b"reject_senders",u"result",b"result"]) -> None: ... +global___ResponseApplySnapshotChunk = ResponseApplySnapshotChunk + +#---------------------------------------- +# Misc. + +# ConsensusParams contains all consensus-relevant parameters +# that can be adjusted by the abci app +class ConsensusParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + @property + def block(self) -> global___BlockParams: ... + @property + def evidence(self) -> tendermint.types.params_pb2.EvidenceParams: ... + @property + def validator(self) -> tendermint.types.params_pb2.ValidatorParams: ... + @property + def version(self) -> tendermint.types.params_pb2.VersionParams: ... + def __init__(self, + *, + block : typing.Optional[global___BlockParams] = ..., + evidence : typing.Optional[tendermint.types.params_pb2.EvidenceParams] = ..., + validator : typing.Optional[tendermint.types.params_pb2.ValidatorParams] = ..., + version : typing.Optional[tendermint.types.params_pb2.VersionParams] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> None: ... +global___ConsensusParams = ConsensusParams + +# BlockParams contains limits on the block size. +class BlockParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_BYTES_FIELD_NUMBER: builtins.int + MAX_GAS_FIELD_NUMBER: builtins.int + # Note: must be greater than 0 + max_bytes: builtins.int = ... + # Note: must be greater or equal to -1 + max_gas: builtins.int = ... + def __init__(self, + *, + max_bytes : builtins.int = ..., + max_gas : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_bytes",b"max_bytes",u"max_gas",b"max_gas"]) -> None: ... +global___BlockParams = BlockParams + +class LastCommitInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ROUND_FIELD_NUMBER: builtins.int + VOTES_FIELD_NUMBER: builtins.int + round: builtins.int = ... + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VoteInfo]: ... + def __init__(self, + *, + round : builtins.int = ..., + votes : typing.Optional[typing.Iterable[global___VoteInfo]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"round",b"round",u"votes",b"votes"]) -> None: ... +global___LastCommitInfo = LastCommitInfo + +# Event allows application developers to attach additional information to +# ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. +# Later, transactions may be queried using these events. +class Event(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + type: typing.Text = ... + @property + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EventAttribute]: ... + def __init__(self, + *, + type : typing.Text = ..., + attributes : typing.Optional[typing.Iterable[global___EventAttribute]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"type",b"type"]) -> None: ... +global___Event = Event + +# EventAttribute is a single key-value pair, associated with an event. +class EventAttribute(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + value: builtins.bytes = ... + # nondeterministic + index: builtins.bool = ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + index : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"key",b"key",u"value",b"value"]) -> None: ... +global___EventAttribute = EventAttribute + +# TxResult contains results of executing the transaction. +# +# One usage is indexing transaction results. +class TxResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + TX_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + height: builtins.int = ... + index: builtins.int = ... + tx: builtins.bytes = ... + @property + def result(self) -> global___ResponseDeliverTx: ... + def __init__(self, + *, + height : builtins.int = ..., + index : builtins.int = ..., + tx : builtins.bytes = ..., + result : typing.Optional[global___ResponseDeliverTx] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"index",b"index",u"result",b"result",u"tx",b"tx"]) -> None: ... +global___TxResult = TxResult + +#---------------------------------------- +# Blockchain Types + +# Validator +class Validator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + # The first 20 bytes of SHA256(public key) + address: builtins.bytes = ... + # PubKey pub_key = 2 [(gogoproto.nullable)=false]; + # The voting power + power: builtins.int = ... + def __init__(self, + *, + address : builtins.bytes = ..., + power : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... +global___Validator = Validator + +# ValidatorUpdate +class ValidatorUpdate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUB_KEY_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + @property + def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... + power: builtins.int = ... + def __init__(self, + *, + pub_key : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., + power : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"power",b"power",u"pub_key",b"pub_key"]) -> None: ... +global___ValidatorUpdate = ValidatorUpdate + +# VoteInfo +class VoteInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + SIGNED_LAST_BLOCK_FIELD_NUMBER: builtins.int + @property + def validator(self) -> global___Validator: ... + signed_last_block: builtins.bool = ... + def __init__(self, + *, + validator : typing.Optional[global___Validator] = ..., + signed_last_block : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signed_last_block",b"signed_last_block",u"validator",b"validator"]) -> None: ... +global___VoteInfo = VoteInfo + +class Evidence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int + type: global___EvidenceType.V = ... + # The offending validator + @property + def validator(self) -> global___Validator: ... + # The height when the offense occurred + height: builtins.int = ... + # The corresponding time where the offense occurred + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # Total voting power of the validator set in case the ABCI application does + # not store historical validators. + # https://github.com/tendermint/tendermint/issues/4581 + total_voting_power: builtins.int = ... + def __init__(self, + *, + type : global___EvidenceType.V = ..., + validator : typing.Optional[global___Validator] = ..., + height : builtins.int = ..., + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + total_voting_power : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"time",b"time",u"validator",b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"time",b"time",u"total_voting_power",b"total_voting_power",u"type",b"type",u"validator",b"validator"]) -> None: ... +global___Evidence = Evidence + +#---------------------------------------- +# State Sync Types + +class Snapshot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + CHUNKS_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + # The height at which the snapshot was taken + height: builtins.int = ... + # The application-specific snapshot format + format: builtins.int = ... + # Number of chunks in the snapshot + chunks: builtins.int = ... + # Arbitrary snapshot hash, equal only if identical + hash: builtins.bytes = ... + # Arbitrary application metadata + metadata: builtins.bytes = ... + def __init__(self, + *, + height : builtins.int = ..., + format : builtins.int = ..., + chunks : builtins.int = ..., + hash : builtins.bytes = ..., + metadata : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunks",b"chunks",u"format",b"format",u"hash",b"hash",u"height",b"height",u"metadata",b"metadata"]) -> None: ... +global___Snapshot = Snapshot diff --git a/pyband/proto/tendermint/abci/types_pb2_grpc.pyi b/pyband/proto/tendermint/abci/types_pb2_grpc.pyi new file mode 100644 index 0000000..0e48ee2 --- /dev/null +++ b/pyband/proto/tendermint/abci/types_pb2_grpc.pyi @@ -0,0 +1,170 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .types_pb2 import * +#---------------------------------------- +# Service Definition + +class ABCIApplicationStub: + def __init__(self, channel: grpc.Channel) -> None: ... + Echo:grpc.UnaryUnaryMultiCallable[ + global___RequestEcho, + global___ResponseEcho] = ... + + Flush:grpc.UnaryUnaryMultiCallable[ + global___RequestFlush, + global___ResponseFlush] = ... + + Info:grpc.UnaryUnaryMultiCallable[ + global___RequestInfo, + global___ResponseInfo] = ... + + SetOption:grpc.UnaryUnaryMultiCallable[ + global___RequestSetOption, + global___ResponseSetOption] = ... + + DeliverTx:grpc.UnaryUnaryMultiCallable[ + global___RequestDeliverTx, + global___ResponseDeliverTx] = ... + + CheckTx:grpc.UnaryUnaryMultiCallable[ + global___RequestCheckTx, + global___ResponseCheckTx] = ... + + Query:grpc.UnaryUnaryMultiCallable[ + global___RequestQuery, + global___ResponseQuery] = ... + + Commit:grpc.UnaryUnaryMultiCallable[ + global___RequestCommit, + global___ResponseCommit] = ... + + InitChain:grpc.UnaryUnaryMultiCallable[ + global___RequestInitChain, + global___ResponseInitChain] = ... + + BeginBlock:grpc.UnaryUnaryMultiCallable[ + global___RequestBeginBlock, + global___ResponseBeginBlock] = ... + + EndBlock:grpc.UnaryUnaryMultiCallable[ + global___RequestEndBlock, + global___ResponseEndBlock] = ... + + ListSnapshots:grpc.UnaryUnaryMultiCallable[ + global___RequestListSnapshots, + global___ResponseListSnapshots] = ... + + OfferSnapshot:grpc.UnaryUnaryMultiCallable[ + global___RequestOfferSnapshot, + global___ResponseOfferSnapshot] = ... + + LoadSnapshotChunk:grpc.UnaryUnaryMultiCallable[ + global___RequestLoadSnapshotChunk, + global___ResponseLoadSnapshotChunk] = ... + + ApplySnapshotChunk:grpc.UnaryUnaryMultiCallable[ + global___RequestApplySnapshotChunk, + global___ResponseApplySnapshotChunk] = ... + + +#---------------------------------------- +# Service Definition + +class ABCIApplicationServicer(metaclass=abc.ABCMeta): + @abc.abstractmethod + def Echo(self, + request: global___RequestEcho, + context: grpc.ServicerContext, + ) -> global___ResponseEcho: ... + + @abc.abstractmethod + def Flush(self, + request: global___RequestFlush, + context: grpc.ServicerContext, + ) -> global___ResponseFlush: ... + + @abc.abstractmethod + def Info(self, + request: global___RequestInfo, + context: grpc.ServicerContext, + ) -> global___ResponseInfo: ... + + @abc.abstractmethod + def SetOption(self, + request: global___RequestSetOption, + context: grpc.ServicerContext, + ) -> global___ResponseSetOption: ... + + @abc.abstractmethod + def DeliverTx(self, + request: global___RequestDeliverTx, + context: grpc.ServicerContext, + ) -> global___ResponseDeliverTx: ... + + @abc.abstractmethod + def CheckTx(self, + request: global___RequestCheckTx, + context: grpc.ServicerContext, + ) -> global___ResponseCheckTx: ... + + @abc.abstractmethod + def Query(self, + request: global___RequestQuery, + context: grpc.ServicerContext, + ) -> global___ResponseQuery: ... + + @abc.abstractmethod + def Commit(self, + request: global___RequestCommit, + context: grpc.ServicerContext, + ) -> global___ResponseCommit: ... + + @abc.abstractmethod + def InitChain(self, + request: global___RequestInitChain, + context: grpc.ServicerContext, + ) -> global___ResponseInitChain: ... + + @abc.abstractmethod + def BeginBlock(self, + request: global___RequestBeginBlock, + context: grpc.ServicerContext, + ) -> global___ResponseBeginBlock: ... + + @abc.abstractmethod + def EndBlock(self, + request: global___RequestEndBlock, + context: grpc.ServicerContext, + ) -> global___ResponseEndBlock: ... + + @abc.abstractmethod + def ListSnapshots(self, + request: global___RequestListSnapshots, + context: grpc.ServicerContext, + ) -> global___ResponseListSnapshots: ... + + @abc.abstractmethod + def OfferSnapshot(self, + request: global___RequestOfferSnapshot, + context: grpc.ServicerContext, + ) -> global___ResponseOfferSnapshot: ... + + @abc.abstractmethod + def LoadSnapshotChunk(self, + request: global___RequestLoadSnapshotChunk, + context: grpc.ServicerContext, + ) -> global___ResponseLoadSnapshotChunk: ... + + @abc.abstractmethod + def ApplySnapshotChunk(self, + request: global___RequestApplySnapshotChunk, + context: grpc.ServicerContext, + ) -> global___ResponseApplySnapshotChunk: ... + + +def add_ABCIApplicationServicer_to_server(servicer: ABCIApplicationServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/tendermint/crypto/keys_pb2.pyi b/pyband/proto/tendermint/crypto/keys_pb2.pyi new file mode 100644 index 0000000..1216a50 --- /dev/null +++ b/pyband/proto/tendermint/crypto/keys_pb2.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# PublicKey defines the keys available for use with Tendermint Validators +class PublicKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ED25519_FIELD_NUMBER: builtins.int + SECP256K1_FIELD_NUMBER: builtins.int + ed25519: builtins.bytes = ... + secp256k1: builtins.bytes = ... + def __init__(self, + *, + ed25519 : builtins.bytes = ..., + secp256k1 : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"ed25519",b"ed25519",u"secp256k1",b"secp256k1",u"sum",b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ed25519",b"ed25519",u"secp256k1",b"secp256k1",u"sum",b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["ed25519","secp256k1"]]: ... +global___PublicKey = PublicKey diff --git a/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi b/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/crypto/proof_pb2.pyi b/pyband/proto/tendermint/crypto/proof_pb2.pyi new file mode 100644 index 0000000..db5ab20 --- /dev/null +++ b/pyband/proto/tendermint/crypto/proof_pb2.pyi @@ -0,0 +1,101 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class Proof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TOTAL_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + LEAF_HASH_FIELD_NUMBER: builtins.int + AUNTS_FIELD_NUMBER: builtins.int + total: builtins.int = ... + index: builtins.int = ... + leaf_hash: builtins.bytes = ... + @property + def aunts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + total : builtins.int = ..., + index : builtins.int = ..., + leaf_hash : builtins.bytes = ..., + aunts : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"aunts",b"aunts",u"index",b"index",u"leaf_hash",b"leaf_hash",u"total",b"total"]) -> None: ... +global___Proof = Proof + +class ValueOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + # Encoded in ProofOp.Key. + key: builtins.bytes = ... + # To encode in ProofOp.Data + @property + def proof(self) -> global___Proof: ... + def __init__(self, + *, + key : builtins.bytes = ..., + proof : typing.Optional[global___Proof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"proof",b"proof"]) -> None: ... +global___ValueOp = ValueOp + +class DominoOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + INPUT_FIELD_NUMBER: builtins.int + OUTPUT_FIELD_NUMBER: builtins.int + key: typing.Text = ... + input: typing.Text = ... + output: typing.Text = ... + def __init__(self, + *, + key : typing.Text = ..., + input : typing.Text = ..., + output : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"input",b"input",u"key",b"key",u"output",b"output"]) -> None: ... +global___DominoOp = DominoOp + +# ProofOp defines an operation used for calculating Merkle root +# The data could be arbitrary format, providing nessecary data +# for example neighbouring node hash +class ProofOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + type: typing.Text = ... + key: builtins.bytes = ... + data: builtins.bytes = ... + def __init__(self, + *, + type : typing.Text = ..., + key : builtins.bytes = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"key",b"key",u"type",b"type"]) -> None: ... +global___ProofOp = ProofOp + +# ProofOps is Merkle proof defined by the list of ProofOps +class ProofOps(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OPS_FIELD_NUMBER: builtins.int + @property + def ops(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProofOp]: ... + def __init__(self, + *, + ops : typing.Optional[typing.Iterable[global___ProofOp]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ops",b"ops"]) -> None: ... +global___ProofOps = ProofOps diff --git a/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi b/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi new file mode 100644 index 0000000..abce8b9 --- /dev/null +++ b/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .proof_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/libs/bits/types_pb2.pyi b/pyband/proto/tendermint/libs/bits/types_pb2.pyi new file mode 100644 index 0000000..cbd1c84 --- /dev/null +++ b/pyband/proto/tendermint/libs/bits/types_pb2.pyi @@ -0,0 +1,27 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class BitArray(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BITS_FIELD_NUMBER: builtins.int + ELEMS_FIELD_NUMBER: builtins.int + bits: builtins.int = ... + @property + def elems(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + bits : builtins.int = ..., + elems : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bits",b"bits",u"elems",b"elems"]) -> None: ... +global___BitArray = BitArray diff --git a/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi b/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi new file mode 100644 index 0000000..7bed339 --- /dev/null +++ b/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/p2p/types_pb2.pyi b/pyband/proto/tendermint/p2p/types_pb2.pyi new file mode 100644 index 0000000..37c3cb8 --- /dev/null +++ b/pyband/proto/tendermint/p2p/types_pb2.pyi @@ -0,0 +1,94 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class NetAddress(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ID_FIELD_NUMBER: builtins.int + IP_FIELD_NUMBER: builtins.int + PORT_FIELD_NUMBER: builtins.int + id: typing.Text = ... + ip: typing.Text = ... + port: builtins.int = ... + def __init__(self, + *, + id : typing.Text = ..., + ip : typing.Text = ..., + port : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"id",b"id",u"ip",b"ip",u"port",b"port"]) -> None: ... +global___NetAddress = NetAddress + +class ProtocolVersion(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + P2P_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + APP_FIELD_NUMBER: builtins.int + p2p: builtins.int = ... + block: builtins.int = ... + app: builtins.int = ... + def __init__(self, + *, + p2p : builtins.int = ..., + block : builtins.int = ..., + app : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app",b"app",u"block",b"block",u"p2p",b"p2p"]) -> None: ... +global___ProtocolVersion = ProtocolVersion + +class DefaultNodeInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROTOCOL_VERSION_FIELD_NUMBER: builtins.int + DEFAULT_NODE_ID_FIELD_NUMBER: builtins.int + LISTEN_ADDR_FIELD_NUMBER: builtins.int + NETWORK_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + CHANNELS_FIELD_NUMBER: builtins.int + MONIKER_FIELD_NUMBER: builtins.int + OTHER_FIELD_NUMBER: builtins.int + @property + def protocol_version(self) -> global___ProtocolVersion: ... + default_node_id: typing.Text = ... + listen_addr: typing.Text = ... + network: typing.Text = ... + version: typing.Text = ... + channels: builtins.bytes = ... + moniker: typing.Text = ... + @property + def other(self) -> global___DefaultNodeInfoOther: ... + def __init__(self, + *, + protocol_version : typing.Optional[global___ProtocolVersion] = ..., + default_node_id : typing.Text = ..., + listen_addr : typing.Text = ..., + network : typing.Text = ..., + version : typing.Text = ..., + channels : builtins.bytes = ..., + moniker : typing.Text = ..., + other : typing.Optional[global___DefaultNodeInfoOther] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"other",b"other",u"protocol_version",b"protocol_version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"default_node_id",b"default_node_id",u"listen_addr",b"listen_addr",u"moniker",b"moniker",u"network",b"network",u"other",b"other",u"protocol_version",b"protocol_version",u"version",b"version"]) -> None: ... +global___DefaultNodeInfo = DefaultNodeInfo + +class DefaultNodeInfoOther(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_INDEX_FIELD_NUMBER: builtins.int + RPC_ADDRESS_FIELD_NUMBER: builtins.int + tx_index: typing.Text = ... + rpc_address: typing.Text = ... + def __init__(self, + *, + tx_index : typing.Text = ..., + rpc_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rpc_address",b"rpc_address",u"tx_index",b"tx_index"]) -> None: ... +global___DefaultNodeInfoOther = DefaultNodeInfoOther diff --git a/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi b/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi new file mode 100644 index 0000000..7bed339 --- /dev/null +++ b/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/block_pb2.pyi b/pyband/proto/tendermint/types/block_pb2.pyi new file mode 100644 index 0000000..1e4f187 --- /dev/null +++ b/pyband/proto/tendermint/types/block_pb2.pyi @@ -0,0 +1,38 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import tendermint.types.evidence_pb2 +import tendermint.types.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class Block(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEADER_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + LAST_COMMIT_FIELD_NUMBER: builtins.int + @property + def header(self) -> tendermint.types.types_pb2.Header: ... + @property + def data(self) -> tendermint.types.types_pb2.Data: ... + @property + def evidence(self) -> tendermint.types.evidence_pb2.EvidenceList: ... + @property + def last_commit(self) -> tendermint.types.types_pb2.Commit: ... + def __init__(self, + *, + header : typing.Optional[tendermint.types.types_pb2.Header] = ..., + data : typing.Optional[tendermint.types.types_pb2.Data] = ..., + evidence : typing.Optional[tendermint.types.evidence_pb2.EvidenceList] = ..., + last_commit : typing.Optional[tendermint.types.types_pb2.Commit] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"data",b"data",u"evidence",b"evidence",u"header",b"header",u"last_commit",b"last_commit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"evidence",b"evidence",u"header",b"header",u"last_commit",b"last_commit"]) -> None: ... +global___Block = Block diff --git a/pyband/proto/tendermint/types/block_pb2_grpc.pyi b/pyband/proto/tendermint/types/block_pb2_grpc.pyi new file mode 100644 index 0000000..80740df --- /dev/null +++ b/pyband/proto/tendermint/types/block_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .block_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/evidence_pb2.pyi b/pyband/proto/tendermint/types/evidence_pb2.pyi new file mode 100644 index 0000000..d1c633f --- /dev/null +++ b/pyband/proto/tendermint/types/evidence_pb2.pyi @@ -0,0 +1,101 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import tendermint.types.types_pb2 +import tendermint.types.validator_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class Evidence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DUPLICATE_VOTE_EVIDENCE_FIELD_NUMBER: builtins.int + LIGHT_CLIENT_ATTACK_EVIDENCE_FIELD_NUMBER: builtins.int + @property + def duplicate_vote_evidence(self) -> global___DuplicateVoteEvidence: ... + @property + def light_client_attack_evidence(self) -> global___LightClientAttackEvidence: ... + def __init__(self, + *, + duplicate_vote_evidence : typing.Optional[global___DuplicateVoteEvidence] = ..., + light_client_attack_evidence : typing.Optional[global___LightClientAttackEvidence] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"duplicate_vote_evidence",b"duplicate_vote_evidence",u"light_client_attack_evidence",b"light_client_attack_evidence",u"sum",b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"duplicate_vote_evidence",b"duplicate_vote_evidence",u"light_client_attack_evidence",b"light_client_attack_evidence",u"sum",b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["duplicate_vote_evidence","light_client_attack_evidence"]]: ... +global___Evidence = Evidence + +# DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. +class DuplicateVoteEvidence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VOTE_A_FIELD_NUMBER: builtins.int + VOTE_B_FIELD_NUMBER: builtins.int + TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int + VALIDATOR_POWER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + @property + def vote_a(self) -> tendermint.types.types_pb2.Vote: ... + @property + def vote_b(self) -> tendermint.types.types_pb2.Vote: ... + total_voting_power: builtins.int = ... + validator_power: builtins.int = ... + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + vote_a : typing.Optional[tendermint.types.types_pb2.Vote] = ..., + vote_b : typing.Optional[tendermint.types.types_pb2.Vote] = ..., + total_voting_power : builtins.int = ..., + validator_power : builtins.int = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp",u"vote_a",b"vote_a",u"vote_b",b"vote_b"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp",u"total_voting_power",b"total_voting_power",u"validator_power",b"validator_power",u"vote_a",b"vote_a",u"vote_b",b"vote_b"]) -> None: ... +global___DuplicateVoteEvidence = DuplicateVoteEvidence + +# LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. +class LightClientAttackEvidence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONFLICTING_BLOCK_FIELD_NUMBER: builtins.int + COMMON_HEIGHT_FIELD_NUMBER: builtins.int + BYZANTINE_VALIDATORS_FIELD_NUMBER: builtins.int + TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + @property + def conflicting_block(self) -> tendermint.types.types_pb2.LightBlock: ... + common_height: builtins.int = ... + @property + def byzantine_validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.types.validator_pb2.Validator]: ... + total_voting_power: builtins.int = ... + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + conflicting_block : typing.Optional[tendermint.types.types_pb2.LightBlock] = ..., + common_height : builtins.int = ..., + byzantine_validators : typing.Optional[typing.Iterable[tendermint.types.validator_pb2.Validator]] = ..., + total_voting_power : builtins.int = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"conflicting_block",b"conflicting_block",u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"byzantine_validators",b"byzantine_validators",u"common_height",b"common_height",u"conflicting_block",b"conflicting_block",u"timestamp",b"timestamp",u"total_voting_power",b"total_voting_power"]) -> None: ... +global___LightClientAttackEvidence = LightClientAttackEvidence + +class EvidenceList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_FIELD_NUMBER: builtins.int + @property + def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Evidence]: ... + def __init__(self, + *, + evidence : typing.Optional[typing.Iterable[global___Evidence]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... +global___EvidenceList = EvidenceList diff --git a/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi b/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi new file mode 100644 index 0000000..f487a89 --- /dev/null +++ b/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .evidence_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/params_pb2.pyi b/pyband/proto/tendermint/types/params_pb2.pyi new file mode 100644 index 0000000..ce2e65e --- /dev/null +++ b/pyband/proto/tendermint/types/params_pb2.pyi @@ -0,0 +1,141 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ConsensusParams contains consensus critical parameters that determine the +# validity of blocks. +class ConsensusParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + @property + def block(self) -> global___BlockParams: ... + @property + def evidence(self) -> global___EvidenceParams: ... + @property + def validator(self) -> global___ValidatorParams: ... + @property + def version(self) -> global___VersionParams: ... + def __init__(self, + *, + block : typing.Optional[global___BlockParams] = ..., + evidence : typing.Optional[global___EvidenceParams] = ..., + validator : typing.Optional[global___ValidatorParams] = ..., + version : typing.Optional[global___VersionParams] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> None: ... +global___ConsensusParams = ConsensusParams + +# BlockParams contains limits on the block size. +class BlockParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_BYTES_FIELD_NUMBER: builtins.int + MAX_GAS_FIELD_NUMBER: builtins.int + TIME_IOTA_MS_FIELD_NUMBER: builtins.int + # Max block size, in bytes. + # Note: must be greater than 0 + max_bytes: builtins.int = ... + # Max gas per block. + # Note: must be greater or equal to -1 + max_gas: builtins.int = ... + # Minimum time increment between consecutive blocks (in milliseconds) If the + # block header timestamp is ahead of the system clock, decrease this value. + # + # Not exposed to the application. + time_iota_ms: builtins.int = ... + def __init__(self, + *, + max_bytes : builtins.int = ..., + max_gas : builtins.int = ..., + time_iota_ms : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_bytes",b"max_bytes",u"max_gas",b"max_gas",u"time_iota_ms",b"time_iota_ms"]) -> None: ... +global___BlockParams = BlockParams + +# EvidenceParams determine how we handle evidence of malfeasance. +class EvidenceParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_AGE_NUM_BLOCKS_FIELD_NUMBER: builtins.int + MAX_AGE_DURATION_FIELD_NUMBER: builtins.int + MAX_BYTES_FIELD_NUMBER: builtins.int + # Max age of evidence, in blocks. + # + # The basic formula for calculating this is: MaxAgeDuration / {average block + # time}. + max_age_num_blocks: builtins.int = ... + # Max age of evidence, in time. + # + # It should correspond with an app's "unbonding period" or other similar + # mechanism for handling [Nothing-At-Stake + # attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + @property + def max_age_duration(self) -> google.protobuf.duration_pb2.Duration: ... + # This sets the maximum size of total evidence in bytes that can be committed in a single block. + # and should fall comfortably under the max block bytes. + # Default is 1048576 or 1MB + max_bytes: builtins.int = ... + def __init__(self, + *, + max_age_num_blocks : builtins.int = ..., + max_age_duration : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + max_bytes : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"max_age_duration",b"max_age_duration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_age_duration",b"max_age_duration",u"max_age_num_blocks",b"max_age_num_blocks",u"max_bytes",b"max_bytes"]) -> None: ... +global___EvidenceParams = EvidenceParams + +# ValidatorParams restrict the public key types validators can use. +# NOTE: uses ABCI pubkey naming, not Amino names. +class ValidatorParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUB_KEY_TYPES_FIELD_NUMBER: builtins.int + @property + def pub_key_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + pub_key_types : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pub_key_types",b"pub_key_types"]) -> None: ... +global___ValidatorParams = ValidatorParams + +# VersionParams contains the ABCI application version. +class VersionParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + APP_VERSION_FIELD_NUMBER: builtins.int + app_version: builtins.int = ... + def __init__(self, + *, + app_version : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_version",b"app_version"]) -> None: ... +global___VersionParams = VersionParams + +# HashedParams is a subset of ConsensusParams. +# +# It is hashed into the Header.ConsensusHash. +class HashedParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_MAX_BYTES_FIELD_NUMBER: builtins.int + BLOCK_MAX_GAS_FIELD_NUMBER: builtins.int + block_max_bytes: builtins.int = ... + block_max_gas: builtins.int = ... + def __init__(self, + *, + block_max_bytes : builtins.int = ..., + block_max_gas : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_max_bytes",b"block_max_bytes",u"block_max_gas",b"block_max_gas"]) -> None: ... +global___HashedParams = HashedParams diff --git a/pyband/proto/tendermint/types/params_pb2_grpc.pyi b/pyband/proto/tendermint/types/params_pb2_grpc.pyi new file mode 100644 index 0000000..72a5115 --- /dev/null +++ b/pyband/proto/tendermint/types/params_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .params_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/types_pb2.pyi b/pyband/proto/tendermint/types/types_pb2.pyi new file mode 100644 index 0000000..9b43f8d --- /dev/null +++ b/pyband/proto/tendermint/types/types_pb2.pyi @@ -0,0 +1,391 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import tendermint.crypto.proof_pb2 +import tendermint.types.validator_pb2 +import tendermint.version.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BlockIdFlag indicates which BlcokID the signature is for +class BlockIDFlag(_BlockIDFlag, metaclass=_BlockIDFlagEnumTypeWrapper): + pass +class _BlockIDFlag: + V = typing.NewType('V', builtins.int) +class _BlockIDFlagEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BlockIDFlag.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + BLOCK_ID_FLAG_UNKNOWN = BlockIDFlag.V(0) + BLOCK_ID_FLAG_ABSENT = BlockIDFlag.V(1) + BLOCK_ID_FLAG_COMMIT = BlockIDFlag.V(2) + BLOCK_ID_FLAG_NIL = BlockIDFlag.V(3) + +BLOCK_ID_FLAG_UNKNOWN = BlockIDFlag.V(0) +BLOCK_ID_FLAG_ABSENT = BlockIDFlag.V(1) +BLOCK_ID_FLAG_COMMIT = BlockIDFlag.V(2) +BLOCK_ID_FLAG_NIL = BlockIDFlag.V(3) +global___BlockIDFlag = BlockIDFlag + + +# SignedMsgType is a type of signed message in the consensus. +class SignedMsgType(_SignedMsgType, metaclass=_SignedMsgTypeEnumTypeWrapper): + pass +class _SignedMsgType: + V = typing.NewType('V', builtins.int) +class _SignedMsgTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SignedMsgType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + SIGNED_MSG_TYPE_UNKNOWN = SignedMsgType.V(0) + # Votes + SIGNED_MSG_TYPE_PREVOTE = SignedMsgType.V(1) + SIGNED_MSG_TYPE_PRECOMMIT = SignedMsgType.V(2) + # Proposals + SIGNED_MSG_TYPE_PROPOSAL = SignedMsgType.V(32) + +SIGNED_MSG_TYPE_UNKNOWN = SignedMsgType.V(0) +# Votes +SIGNED_MSG_TYPE_PREVOTE = SignedMsgType.V(1) +SIGNED_MSG_TYPE_PRECOMMIT = SignedMsgType.V(2) +# Proposals +SIGNED_MSG_TYPE_PROPOSAL = SignedMsgType.V(32) +global___SignedMsgType = SignedMsgType + + +# PartsetHeader +class PartSetHeader(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TOTAL_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + total: builtins.int = ... + hash: builtins.bytes = ... + def __init__(self, + *, + total : builtins.int = ..., + hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"total",b"total"]) -> None: ... +global___PartSetHeader = PartSetHeader + +class Part(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + BYTES_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + index: builtins.int = ... + bytes: builtins.bytes = ... + @property + def proof(self) -> tendermint.crypto.proof_pb2.Proof: ... + def __init__(self, + *, + index : builtins.int = ..., + bytes : builtins.bytes = ..., + proof : typing.Optional[tendermint.crypto.proof_pb2.Proof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bytes",b"bytes",u"index",b"index",u"proof",b"proof"]) -> None: ... +global___Part = Part + +# BlockID +class BlockID(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + PART_SET_HEADER_FIELD_NUMBER: builtins.int + hash: builtins.bytes = ... + @property + def part_set_header(self) -> global___PartSetHeader: ... + def __init__(self, + *, + hash : builtins.bytes = ..., + part_set_header : typing.Optional[global___PartSetHeader] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"part_set_header",b"part_set_header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"part_set_header",b"part_set_header"]) -> None: ... +global___BlockID = BlockID + +# -------------------------------- + +# Header defines the structure of a Tendermint block header. +class Header(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VERSION_FIELD_NUMBER: builtins.int + CHAIN_ID_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + LAST_BLOCK_ID_FIELD_NUMBER: builtins.int + LAST_COMMIT_HASH_FIELD_NUMBER: builtins.int + DATA_HASH_FIELD_NUMBER: builtins.int + VALIDATORS_HASH_FIELD_NUMBER: builtins.int + NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int + CONSENSUS_HASH_FIELD_NUMBER: builtins.int + APP_HASH_FIELD_NUMBER: builtins.int + LAST_RESULTS_HASH_FIELD_NUMBER: builtins.int + EVIDENCE_HASH_FIELD_NUMBER: builtins.int + PROPOSER_ADDRESS_FIELD_NUMBER: builtins.int + # basic block info + @property + def version(self) -> tendermint.version.types_pb2.Consensus: ... + chain_id: typing.Text = ... + height: builtins.int = ... + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # prev block info + @property + def last_block_id(self) -> global___BlockID: ... + # hashes of block data + # commit from validators from the last block + last_commit_hash: builtins.bytes = ... + # transactions + data_hash: builtins.bytes = ... + # hashes from the app output from the prev block + # validators for the current block + validators_hash: builtins.bytes = ... + # validators for the next block + next_validators_hash: builtins.bytes = ... + # consensus params for current block + consensus_hash: builtins.bytes = ... + # state after txs from the previous block + app_hash: builtins.bytes = ... + # root hash of all results from the txs from the previous block + last_results_hash: builtins.bytes = ... + # consensus info + # evidence included in the block + evidence_hash: builtins.bytes = ... + # original proposer of the block + proposer_address: builtins.bytes = ... + def __init__(self, + *, + version : typing.Optional[tendermint.version.types_pb2.Consensus] = ..., + chain_id : typing.Text = ..., + height : builtins.int = ..., + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + last_block_id : typing.Optional[global___BlockID] = ..., + last_commit_hash : builtins.bytes = ..., + data_hash : builtins.bytes = ..., + validators_hash : builtins.bytes = ..., + next_validators_hash : builtins.bytes = ..., + consensus_hash : builtins.bytes = ..., + app_hash : builtins.bytes = ..., + last_results_hash : builtins.bytes = ..., + evidence_hash : builtins.bytes = ..., + proposer_address : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"last_block_id",b"last_block_id",u"time",b"time",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"chain_id",b"chain_id",u"consensus_hash",b"consensus_hash",u"data_hash",b"data_hash",u"evidence_hash",b"evidence_hash",u"height",b"height",u"last_block_id",b"last_block_id",u"last_commit_hash",b"last_commit_hash",u"last_results_hash",b"last_results_hash",u"next_validators_hash",b"next_validators_hash",u"proposer_address",b"proposer_address",u"time",b"time",u"validators_hash",b"validators_hash",u"version",b"version"]) -> None: ... +global___Header = Header + +# Data contains the set of transactions included in the block +class Data(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TXS_FIELD_NUMBER: builtins.int + # Txs that will be applied by state @ block.Height+1. + # NOTE: not all txs here are valid. We're just agreeing on the order first. + # This means that block.AppHash does not include these txs. + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + txs : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"txs",b"txs"]) -> None: ... +global___Data = Data + +# Vote represents a prevote, precommit, or commit vote from validators for +# consensus. +class Vote(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + ROUND_FIELD_NUMBER: builtins.int + BLOCK_ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_INDEX_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + type: global___SignedMsgType.V = ... + height: builtins.int = ... + round: builtins.int = ... + # zero if vote is nil. + @property + def block_id(self) -> global___BlockID: ... + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + validator_address: builtins.bytes = ... + validator_index: builtins.int = ... + signature: builtins.bytes = ... + def __init__(self, + *, + type : global___SignedMsgType.V = ..., + height : builtins.int = ..., + round : builtins.int = ..., + block_id : typing.Optional[global___BlockID] = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + validator_address : builtins.bytes = ..., + validator_index : builtins.int = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"round",b"round",u"signature",b"signature",u"timestamp",b"timestamp",u"type",b"type",u"validator_address",b"validator_address",u"validator_index",b"validator_index"]) -> None: ... +global___Vote = Vote + +# Commit contains the evidence that a block was committed by a set of validators. +class Commit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + ROUND_FIELD_NUMBER: builtins.int + BLOCK_ID_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + height: builtins.int = ... + round: builtins.int = ... + @property + def block_id(self) -> global___BlockID: ... + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommitSig]: ... + def __init__(self, + *, + height : builtins.int = ..., + round : builtins.int = ..., + block_id : typing.Optional[global___BlockID] = ..., + signatures : typing.Optional[typing.Iterable[global___CommitSig]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"round",b"round",u"signatures",b"signatures"]) -> None: ... +global___Commit = Commit + +# CommitSig is a part of the Vote included in a Commit. +class CommitSig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_ID_FLAG_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + block_id_flag: global___BlockIDFlag.V = ... + validator_address: builtins.bytes = ... + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + signature: builtins.bytes = ... + def __init__(self, + *, + block_id_flag : global___BlockIDFlag.V = ..., + validator_address : builtins.bytes = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id_flag",b"block_id_flag",u"signature",b"signature",u"timestamp",b"timestamp",u"validator_address",b"validator_address"]) -> None: ... +global___CommitSig = CommitSig + +class Proposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + ROUND_FIELD_NUMBER: builtins.int + POL_ROUND_FIELD_NUMBER: builtins.int + BLOCK_ID_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + type: global___SignedMsgType.V = ... + height: builtins.int = ... + round: builtins.int = ... + pol_round: builtins.int = ... + @property + def block_id(self) -> global___BlockID: ... + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + signature: builtins.bytes = ... + def __init__(self, + *, + type : global___SignedMsgType.V = ..., + height : builtins.int = ..., + round : builtins.int = ..., + pol_round : builtins.int = ..., + block_id : typing.Optional[global___BlockID] = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"pol_round",b"pol_round",u"round",b"round",u"signature",b"signature",u"timestamp",b"timestamp",u"type",b"type"]) -> None: ... +global___Proposal = Proposal + +class SignedHeader(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEADER_FIELD_NUMBER: builtins.int + COMMIT_FIELD_NUMBER: builtins.int + @property + def header(self) -> global___Header: ... + @property + def commit(self) -> global___Commit: ... + def __init__(self, + *, + header : typing.Optional[global___Header] = ..., + commit : typing.Optional[global___Commit] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commit",b"commit",u"header",b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commit",b"commit",u"header",b"header"]) -> None: ... +global___SignedHeader = SignedHeader + +class LightBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNED_HEADER_FIELD_NUMBER: builtins.int + VALIDATOR_SET_FIELD_NUMBER: builtins.int + @property + def signed_header(self) -> global___SignedHeader: ... + @property + def validator_set(self) -> tendermint.types.validator_pb2.ValidatorSet: ... + def __init__(self, + *, + signed_header : typing.Optional[global___SignedHeader] = ..., + validator_set : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"validator_set",b"validator_set"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"validator_set",b"validator_set"]) -> None: ... +global___LightBlock = LightBlock + +class BlockMeta(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_SIZE_FIELD_NUMBER: builtins.int + HEADER_FIELD_NUMBER: builtins.int + NUM_TXS_FIELD_NUMBER: builtins.int + @property + def block_id(self) -> global___BlockID: ... + block_size: builtins.int = ... + @property + def header(self) -> global___Header: ... + num_txs: builtins.int = ... + def __init__(self, + *, + block_id : typing.Optional[global___BlockID] = ..., + block_size : builtins.int = ..., + header : typing.Optional[global___Header] = ..., + num_txs : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"header",b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"block_size",b"block_size",u"header",b"header",u"num_txs",b"num_txs"]) -> None: ... +global___BlockMeta = BlockMeta + +# TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. +class TxProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ROOT_HASH_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + root_hash: builtins.bytes = ... + data: builtins.bytes = ... + @property + def proof(self) -> tendermint.crypto.proof_pb2.Proof: ... + def __init__(self, + *, + root_hash : builtins.bytes = ..., + data : builtins.bytes = ..., + proof : typing.Optional[tendermint.crypto.proof_pb2.Proof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"proof",b"proof",u"root_hash",b"root_hash"]) -> None: ... +global___TxProof = TxProof diff --git a/pyband/proto/tendermint/types/types_pb2_grpc.pyi b/pyband/proto/tendermint/types/types_pb2_grpc.pyi new file mode 100644 index 0000000..7bed339 --- /dev/null +++ b/pyband/proto/tendermint/types/types_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/validator_pb2.pyi b/pyband/proto/tendermint/types/validator_pb2.pyi new file mode 100644 index 0000000..1738456 --- /dev/null +++ b/pyband/proto/tendermint/types/validator_pb2.pyi @@ -0,0 +1,71 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import tendermint.crypto.keys_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class ValidatorSet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + PROPOSER_FIELD_NUMBER: builtins.int + TOTAL_VOTING_POWER_FIELD_NUMBER: builtins.int + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Validator]: ... + @property + def proposer(self) -> global___Validator: ... + total_voting_power: builtins.int = ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[global___Validator]] = ..., + proposer : typing.Optional[global___Validator] = ..., + total_voting_power : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proposer",b"proposer"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposer",b"proposer",u"total_voting_power",b"total_voting_power",u"validators",b"validators"]) -> None: ... +global___ValidatorSet = ValidatorSet + +class Validator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + PUB_KEY_FIELD_NUMBER: builtins.int + VOTING_POWER_FIELD_NUMBER: builtins.int + PROPOSER_PRIORITY_FIELD_NUMBER: builtins.int + address: builtins.bytes = ... + @property + def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... + voting_power: builtins.int = ... + proposer_priority: builtins.int = ... + def __init__(self, + *, + address : builtins.bytes = ..., + pub_key : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., + voting_power : builtins.int = ..., + proposer_priority : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"proposer_priority",b"proposer_priority",u"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... +global___Validator = Validator + +class SimpleValidator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUB_KEY_FIELD_NUMBER: builtins.int + VOTING_POWER_FIELD_NUMBER: builtins.int + @property + def pub_key(self) -> tendermint.crypto.keys_pb2.PublicKey: ... + voting_power: builtins.int = ... + def __init__(self, + *, + pub_key : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., + voting_power : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... +global___SimpleValidator = SimpleValidator diff --git a/pyband/proto/tendermint/types/validator_pb2_grpc.pyi b/pyband/proto/tendermint/types/validator_pb2_grpc.pyi new file mode 100644 index 0000000..3dafcaa --- /dev/null +++ b/pyband/proto/tendermint/types/validator_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .validator_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/version/types_pb2.pyi b/pyband/proto/tendermint/version/types_pb2.pyi new file mode 100644 index 0000000..e850c64 --- /dev/null +++ b/pyband/proto/tendermint/version/types_pb2.pyi @@ -0,0 +1,45 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# App includes the protocol and software version for the application. +# This information is included in ResponseInfo. The App.Protocol can be +# updated in ResponseEndBlock. +class App(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROTOCOL_FIELD_NUMBER: builtins.int + SOFTWARE_FIELD_NUMBER: builtins.int + protocol: builtins.int = ... + software: typing.Text = ... + def __init__(self, + *, + protocol : builtins.int = ..., + software : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"protocol",b"protocol",u"software",b"software"]) -> None: ... +global___App = App + +# Consensus captures the consensus rules for processing a block in the blockchain, +# including all blockchain data structures and the rules of the application's +# state transition machine. +class Consensus(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_FIELD_NUMBER: builtins.int + APP_FIELD_NUMBER: builtins.int + block: builtins.int = ... + app: builtins.int = ... + def __init__(self, + *, + block : builtins.int = ..., + app : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app",b"app",u"block",b"block"]) -> None: ... +global___Consensus = Consensus diff --git a/pyband/proto/tendermint/version/types_pb2_grpc.pyi b/pyband/proto/tendermint/version/types_pb2_grpc.pyi new file mode 100644 index 0000000..7bed339 --- /dev/null +++ b/pyband/proto/tendermint/version/types_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .types_pb2 import * \ No newline at end of file From 039023af2801f14bceead392602f3708a638ac9e Mon Sep 17 00:00:00 2001 From: prial Date: Mon, 6 Sep 2021 11:59:01 +0700 Subject: [PATCH 8/9] Add new gen proto from chain=2.3.0, cosmos-sdk=0.44.0, ibc-go=1.1.0 --- pyband/proto/confio/proofs_pb2.py | 5 ++-- .../proto/cosmos/upgrade/v1beta1/query_pb2.py | 28 ++++++++++--------- .../cosmos/upgrade/v1beta1/query_pb2_grpc.py | 2 ++ .../cosmos/upgrade/v1beta1/query_pb2_grpc.pyi | 4 +++ pyband/proto/google/protobuf/any_pb2.py | 6 ++-- 5 files changed, 27 insertions(+), 18 deletions(-) diff --git a/pyband/proto/confio/proofs_pb2.py b/pyband/proto/confio/proofs_pb2.py index 250a651..e6abfa5 100644 --- a/pyband/proto/confio/proofs_pb2.py +++ b/pyband/proto/confio/proofs_pb2.py @@ -18,9 +18,9 @@ name='confio/proofs.proto', package='ics23', syntax='proto3', - serialized_options=None, + serialized_options=b'Z\032github.com/confio/ics23/go', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x13\x63onfio/proofs.proto\x12\x05ics23\"g\n\x0e\x45xistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x1b\n\x04leaf\x18\x03 \x01(\x0b\x32\r.ics23.LeafOp\x12\x1c\n\x04path\x18\x04 \x03(\x0b\x32\x0e.ics23.InnerOp\"k\n\x11NonExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12#\n\x04left\x18\x02 \x01(\x0b\x32\x15.ics23.ExistenceProof\x12$\n\x05right\x18\x03 \x01(\x0b\x32\x15.ics23.ExistenceProof\"\xc7\x01\n\x0f\x43ommitmentProof\x12&\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x15.ics23.ExistenceProofH\x00\x12,\n\x08nonexist\x18\x02 \x01(\x0b\x32\x18.ics23.NonExistenceProofH\x00\x12\"\n\x05\x62\x61tch\x18\x03 \x01(\x0b\x32\x11.ics23.BatchProofH\x00\x12\x31\n\ncompressed\x18\x04 \x01(\x0b\x32\x1b.ics23.CompressedBatchProofH\x00\x42\x07\n\x05proof\"\xa0\x01\n\x06LeafOp\x12\x1b\n\x04hash\x18\x01 \x01(\x0e\x32\r.ics23.HashOp\x12\"\n\x0bprehash_key\x18\x02 \x01(\x0e\x32\r.ics23.HashOp\x12$\n\rprehash_value\x18\x03 \x01(\x0e\x32\r.ics23.HashOp\x12\x1f\n\x06length\x18\x04 \x01(\x0e\x32\x0f.ics23.LengthOp\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\"F\n\x07InnerOp\x12\x1b\n\x04hash\x18\x01 \x01(\x0e\x32\r.ics23.HashOp\x12\x0e\n\x06prefix\x18\x02 \x01(\x0c\x12\x0e\n\x06suffix\x18\x03 \x01(\x0c\"y\n\tProofSpec\x12 \n\tleaf_spec\x18\x01 \x01(\x0b\x32\r.ics23.LeafOp\x12$\n\ninner_spec\x18\x02 \x01(\x0b\x32\x10.ics23.InnerSpec\x12\x11\n\tmax_depth\x18\x03 \x01(\x05\x12\x11\n\tmin_depth\x18\x04 \x01(\x05\"\x9c\x01\n\tInnerSpec\x12\x13\n\x0b\x63hild_order\x18\x01 \x03(\x05\x12\x12\n\nchild_size\x18\x02 \x01(\x05\x12\x19\n\x11min_prefix_length\x18\x03 \x01(\x05\x12\x19\n\x11max_prefix_length\x18\x04 \x01(\x05\x12\x13\n\x0b\x65mpty_child\x18\x05 \x01(\x0c\x12\x1b\n\x04hash\x18\x06 \x01(\x0e\x32\r.ics23.HashOp\"0\n\nBatchProof\x12\"\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x11.ics23.BatchEntry\"k\n\nBatchEntry\x12&\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x15.ics23.ExistenceProofH\x00\x12,\n\x08nonexist\x18\x02 \x01(\x0b\x32\x18.ics23.NonExistenceProofH\x00\x42\x07\n\x05proof\"k\n\x14\x43ompressedBatchProof\x12,\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x1b.ics23.CompressedBatchEntry\x12%\n\rlookup_inners\x18\x02 \x03(\x0b\x32\x0e.ics23.InnerOp\"\x89\x01\n\x14\x43ompressedBatchEntry\x12\x30\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x1f.ics23.CompressedExistenceProofH\x00\x12\x36\n\x08nonexist\x18\x02 \x01(\x0b\x32\".ics23.CompressedNonExistenceProofH\x00\x42\x07\n\x05proof\"a\n\x18\x43ompressedExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x1b\n\x04leaf\x18\x03 \x01(\x0b\x32\r.ics23.LeafOp\x12\x0c\n\x04path\x18\x04 \x03(\x05\"\x89\x01\n\x1b\x43ompressedNonExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12-\n\x04left\x18\x02 \x01(\x0b\x32\x1f.ics23.CompressedExistenceProof\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x1f.ics23.CompressedExistenceProof*U\n\x06HashOp\x12\x0b\n\x07NO_HASH\x10\x00\x12\n\n\x06SHA256\x10\x01\x12\n\n\x06SHA512\x10\x02\x12\n\n\x06KECCAK\x10\x03\x12\r\n\tRIPEMD160\x10\x04\x12\x0b\n\x07\x42ITCOIN\x10\x05*\xab\x01\n\x08LengthOp\x12\r\n\tNO_PREFIX\x10\x00\x12\r\n\tVAR_PROTO\x10\x01\x12\x0b\n\x07VAR_RLP\x10\x02\x12\x0f\n\x0b\x46IXED32_BIG\x10\x03\x12\x12\n\x0e\x46IXED32_LITTLE\x10\x04\x12\x0f\n\x0b\x46IXED64_BIG\x10\x05\x12\x12\n\x0e\x46IXED64_LITTLE\x10\x06\x12\x14\n\x10REQUIRE_32_BYTES\x10\x07\x12\x14\n\x10REQUIRE_64_BYTES\x10\x08\x62\x06proto3' + serialized_pb=b'\n\x13\x63onfio/proofs.proto\x12\x05ics23\"g\n\x0e\x45xistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x1b\n\x04leaf\x18\x03 \x01(\x0b\x32\r.ics23.LeafOp\x12\x1c\n\x04path\x18\x04 \x03(\x0b\x32\x0e.ics23.InnerOp\"k\n\x11NonExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12#\n\x04left\x18\x02 \x01(\x0b\x32\x15.ics23.ExistenceProof\x12$\n\x05right\x18\x03 \x01(\x0b\x32\x15.ics23.ExistenceProof\"\xc7\x01\n\x0f\x43ommitmentProof\x12&\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x15.ics23.ExistenceProofH\x00\x12,\n\x08nonexist\x18\x02 \x01(\x0b\x32\x18.ics23.NonExistenceProofH\x00\x12\"\n\x05\x62\x61tch\x18\x03 \x01(\x0b\x32\x11.ics23.BatchProofH\x00\x12\x31\n\ncompressed\x18\x04 \x01(\x0b\x32\x1b.ics23.CompressedBatchProofH\x00\x42\x07\n\x05proof\"\xa0\x01\n\x06LeafOp\x12\x1b\n\x04hash\x18\x01 \x01(\x0e\x32\r.ics23.HashOp\x12\"\n\x0bprehash_key\x18\x02 \x01(\x0e\x32\r.ics23.HashOp\x12$\n\rprehash_value\x18\x03 \x01(\x0e\x32\r.ics23.HashOp\x12\x1f\n\x06length\x18\x04 \x01(\x0e\x32\x0f.ics23.LengthOp\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\"F\n\x07InnerOp\x12\x1b\n\x04hash\x18\x01 \x01(\x0e\x32\r.ics23.HashOp\x12\x0e\n\x06prefix\x18\x02 \x01(\x0c\x12\x0e\n\x06suffix\x18\x03 \x01(\x0c\"y\n\tProofSpec\x12 \n\tleaf_spec\x18\x01 \x01(\x0b\x32\r.ics23.LeafOp\x12$\n\ninner_spec\x18\x02 \x01(\x0b\x32\x10.ics23.InnerSpec\x12\x11\n\tmax_depth\x18\x03 \x01(\x05\x12\x11\n\tmin_depth\x18\x04 \x01(\x05\"\x9c\x01\n\tInnerSpec\x12\x13\n\x0b\x63hild_order\x18\x01 \x03(\x05\x12\x12\n\nchild_size\x18\x02 \x01(\x05\x12\x19\n\x11min_prefix_length\x18\x03 \x01(\x05\x12\x19\n\x11max_prefix_length\x18\x04 \x01(\x05\x12\x13\n\x0b\x65mpty_child\x18\x05 \x01(\x0c\x12\x1b\n\x04hash\x18\x06 \x01(\x0e\x32\r.ics23.HashOp\"0\n\nBatchProof\x12\"\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x11.ics23.BatchEntry\"k\n\nBatchEntry\x12&\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x15.ics23.ExistenceProofH\x00\x12,\n\x08nonexist\x18\x02 \x01(\x0b\x32\x18.ics23.NonExistenceProofH\x00\x42\x07\n\x05proof\"k\n\x14\x43ompressedBatchProof\x12,\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x1b.ics23.CompressedBatchEntry\x12%\n\rlookup_inners\x18\x02 \x03(\x0b\x32\x0e.ics23.InnerOp\"\x89\x01\n\x14\x43ompressedBatchEntry\x12\x30\n\x05\x65xist\x18\x01 \x01(\x0b\x32\x1f.ics23.CompressedExistenceProofH\x00\x12\x36\n\x08nonexist\x18\x02 \x01(\x0b\x32\".ics23.CompressedNonExistenceProofH\x00\x42\x07\n\x05proof\"a\n\x18\x43ompressedExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x1b\n\x04leaf\x18\x03 \x01(\x0b\x32\r.ics23.LeafOp\x12\x0c\n\x04path\x18\x04 \x03(\x05\"\x89\x01\n\x1b\x43ompressedNonExistenceProof\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12-\n\x04left\x18\x02 \x01(\x0b\x32\x1f.ics23.CompressedExistenceProof\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x1f.ics23.CompressedExistenceProof*U\n\x06HashOp\x12\x0b\n\x07NO_HASH\x10\x00\x12\n\n\x06SHA256\x10\x01\x12\n\n\x06SHA512\x10\x02\x12\n\n\x06KECCAK\x10\x03\x12\r\n\tRIPEMD160\x10\x04\x12\x0b\n\x07\x42ITCOIN\x10\x05*\xab\x01\n\x08LengthOp\x12\r\n\tNO_PREFIX\x10\x00\x12\r\n\tVAR_PROTO\x10\x01\x12\x0b\n\x07VAR_RLP\x10\x02\x12\x0f\n\x0b\x46IXED32_BIG\x10\x03\x12\x12\n\x0e\x46IXED32_LITTLE\x10\x04\x12\x0f\n\x0b\x46IXED64_BIG\x10\x05\x12\x12\n\x0e\x46IXED64_LITTLE\x10\x06\x12\x14\n\x10REQUIRE_32_BYTES\x10\x07\x12\x14\n\x10REQUIRE_64_BYTES\x10\x08\x42\x1cZ\x1agithub.com/confio/ics23/gob\x06proto3' ) _HASHOP = _descriptor.EnumDescriptor( @@ -947,4 +947,5 @@ _sym_db.RegisterMessage(CompressedNonExistenceProof) +DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope) diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.py b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.py index cc4aef1..08a6475 100644 --- a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.py +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.py @@ -22,7 +22,7 @@ syntax='proto3', serialized_options=b'Z,github.com/cosmos/cosmos-sdk/x/upgrade/types', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\"cosmos/upgrade/v1beta1/query.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a$cosmos/upgrade/v1beta1/upgrade.proto\"\x19\n\x17QueryCurrentPlanRequest\"F\n\x18QueryCurrentPlanResponse\x12*\n\x04plan\x18\x01 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.Plan\"\'\n\x17QueryAppliedPlanRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"*\n\x18QueryAppliedPlanResponse\x12\x0e\n\x06height\x18\x01 \x01(\x03\"9\n\"QueryUpgradedConsensusStateRequest\x12\x13\n\x0blast_height\x18\x01 \x01(\x03\"M\n#QueryUpgradedConsensusStateResponse\x12 \n\x18upgraded_consensus_state\x18\x02 \x01(\x0cJ\x04\x08\x01\x10\x02\"1\n\x1aQueryModuleVersionsRequest\x12\x13\n\x0bmodule_name\x18\x01 \x01(\t\"]\n\x1bQueryModuleVersionsResponse\x12>\n\x0fmodule_versions\x18\x01 \x03(\x0b\x32%.cosmos.upgrade.v1beta1.ModuleVersion2\xd9\x05\n\x05Query\x12\x9e\x01\n\x0b\x43urrentPlan\x12/.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse\",\x82\xd3\xe4\x93\x02&\x12$/cosmos/upgrade/v1beta1/current_plan\x12\xa5\x01\n\x0b\x41ppliedPlan\x12/.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/upgrade/v1beta1/applied_plan/{name}\x12\xd9\x01\n\x16UpgradedConsensusState\x12:.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest\x1a;.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse\"F\x82\xd3\xe4\x93\x02@\x12>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}\x12\xaa\x01\n\x0eModuleVersions\x12\x32.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest\x1a\x33.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/upgrade/v1beta1/module_versionsB.Z,github.com/cosmos/cosmos-sdk/x/upgrade/typesb\x06proto3' + serialized_pb=b'\n\"cosmos/upgrade/v1beta1/query.proto\x12\x16\x63osmos.upgrade.v1beta1\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a$cosmos/upgrade/v1beta1/upgrade.proto\"\x19\n\x17QueryCurrentPlanRequest\"F\n\x18QueryCurrentPlanResponse\x12*\n\x04plan\x18\x01 \x01(\x0b\x32\x1c.cosmos.upgrade.v1beta1.Plan\"\'\n\x17QueryAppliedPlanRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"*\n\x18QueryAppliedPlanResponse\x12\x0e\n\x06height\x18\x01 \x01(\x03\"=\n\"QueryUpgradedConsensusStateRequest\x12\x13\n\x0blast_height\x18\x01 \x01(\x03:\x02\x18\x01\"Q\n#QueryUpgradedConsensusStateResponse\x12 \n\x18upgraded_consensus_state\x18\x02 \x01(\x0c:\x02\x18\x01J\x04\x08\x01\x10\x02\"1\n\x1aQueryModuleVersionsRequest\x12\x13\n\x0bmodule_name\x18\x01 \x01(\t\"]\n\x1bQueryModuleVersionsResponse\x12>\n\x0fmodule_versions\x18\x01 \x03(\x0b\x32%.cosmos.upgrade.v1beta1.ModuleVersion2\xdc\x05\n\x05Query\x12\x9e\x01\n\x0b\x43urrentPlan\x12/.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse\",\x82\xd3\xe4\x93\x02&\x12$/cosmos/upgrade/v1beta1/current_plan\x12\xa5\x01\n\x0b\x41ppliedPlan\x12/.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest\x1a\x30.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse\"3\x82\xd3\xe4\x93\x02-\x12+/cosmos/upgrade/v1beta1/applied_plan/{name}\x12\xdc\x01\n\x16UpgradedConsensusState\x12:.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest\x1a;.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse\"I\x88\x02\x01\x82\xd3\xe4\x93\x02@\x12>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}\x12\xaa\x01\n\x0eModuleVersions\x12\x32.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest\x1a\x33.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/cosmos/upgrade/v1beta1/module_versionsB.Z,github.com/cosmos/cosmos-sdk/x/upgrade/typesb\x06proto3' , dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2.DESCRIPTOR,]) @@ -171,14 +171,14 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + serialized_options=b'\030\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=341, - serialized_end=398, + serialized_end=402, ) @@ -203,14 +203,14 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + serialized_options=b'\030\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=400, - serialized_end=477, + serialized_start=404, + serialized_end=485, ) @@ -241,8 +241,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=479, - serialized_end=528, + serialized_start=487, + serialized_end=536, ) @@ -273,8 +273,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=530, - serialized_end=623, + serialized_start=538, + serialized_end=631, ) _QUERYCURRENTPLANRESPONSE.fields_by_name['plan'].message_type = cosmos_dot_upgrade_dot_v1beta1_dot_upgrade__pb2._PLAN @@ -347,6 +347,8 @@ DESCRIPTOR._options = None +_QUERYUPGRADEDCONSENSUSSTATEREQUEST._options = None +_QUERYUPGRADEDCONSENSUSSTATERESPONSE._options = None _QUERY = _descriptor.ServiceDescriptor( name='Query', @@ -355,8 +357,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=626, - serialized_end=1355, + serialized_start=634, + serialized_end=1366, methods=[ _descriptor.MethodDescriptor( name='CurrentPlan', @@ -385,7 +387,7 @@ containing_service=None, input_type=_QUERYUPGRADEDCONSENSUSSTATEREQUEST, output_type=_QUERYUPGRADEDCONSENSUSSTATERESPONSE, - serialized_options=b'\202\323\344\223\002@\022>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}', + serialized_options=b'\210\002\001\202\323\344\223\002@\022>/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py index 19347ed..ab97456 100644 --- a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.py @@ -60,6 +60,8 @@ def UpgradedConsensusState(self, request, context): as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier + This rpc is deprecated now that IBC has its own replacement + (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi index 3de1341..d1b8544 100644 --- a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi @@ -23,6 +23,8 @@ class QueryStub: # as a trusted kernel for the next version of this chain. It will only be # stored at the last height of this chain. # UpgradedConsensusState RPC not supported with legacy querier + # This rpc is deprecated now that IBC has its own replacement + # (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) UpgradedConsensusState:grpc.UnaryUnaryMultiCallable[ global___QueryUpgradedConsensusStateRequest, global___QueryUpgradedConsensusStateResponse] = ... @@ -53,6 +55,8 @@ class QueryServicer(metaclass=abc.ABCMeta): # as a trusted kernel for the next version of this chain. It will only be # stored at the last height of this chain. # UpgradedConsensusState RPC not supported with legacy querier + # This rpc is deprecated now that IBC has its own replacement + # (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) @abc.abstractmethod def UpgradedConsensusState(self, request: global___QueryUpgradedConsensusStateRequest, diff --git a/pyband/proto/google/protobuf/any_pb2.py b/pyband/proto/google/protobuf/any_pb2.py index 3c476cc..557f62d 100644 --- a/pyband/proto/google/protobuf/any_pb2.py +++ b/pyband/proto/google/protobuf/any_pb2.py @@ -20,7 +20,7 @@ syntax='proto3', serialized_options=b'\n\023com.google.protobufB\010AnyProtoP\001Z\005types\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTypes\300\343\036\000', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x19google/protobuf/any.proto\x12\x0fgoogle.protobuf\x1a\x14gogoproto/gogo.proto\",\n\x03\x41ny\x12\x10\n\x08type_url\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x04\xf0\xa1\x1f\x00\x42S\n\x13\x63om.google.protobufB\x08\x41nyProtoP\x01Z\x05types\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypes\xc0\xe3\x1e\x00\x62\x06proto3' + serialized_pb=b'\n\x19google/protobuf/any.proto\x12\x0fgoogle.protobuf\x1a\x14gogoproto/gogo.proto\"8\n\x03\x41ny\x12\x10\n\x08type_url\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x10\xf0\xa1\x1f\x00\x98\xa0\x1f\x00\xb0\xa0\x1f\x00\x80\xdc \x00\x42S\n\x13\x63om.google.protobufB\x08\x41nyProtoP\x01Z\x05types\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypes\xc0\xe3\x1e\x00\x62\x06proto3' , dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,]) @@ -55,14 +55,14 @@ nested_types=[], enum_types=[ ], - serialized_options=b'\360\241\037\000', + serialized_options=b'\360\241\037\000\230\240\037\000\260\240\037\000\200\334 \000', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=68, - serialized_end=112, + serialized_end=124, ) DESCRIPTOR.message_types_by_name['Any'] = _ANY From 1ae3a349d8638e15abe3efda32a92afbcd7d03d1 Mon Sep 17 00:00:00 2001 From: prial Date: Mon, 6 Sep 2021 12:04:36 +0700 Subject: [PATCH 9/9] Add compatible version to README file --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index cc9667b..ac087dd 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ The library is available on [PyPI](https://pypi.org/project/pyband/) pip install pyband ``` +## Compatible + +Band 2.3.0, Cosmos-SDK 0.44.0, IBC-go 1.1.0 + + ## 💎 Example Usage The example code below shows how the library can be used to get the result of the latest request for the price of any cryptocurrency. In this example, we will get the latest price of the following coin - BTC, ETH, MIR, ANC, DOGE, and LUNA. The specified parameters are